Added 2nd node to cluster

31 views
Skip to first unread message

Jonathan Bayer

unread,
Sep 27, 2012, 5:17:59 PM9/27/12
to gan...@googlegroups.com
I've finally gotten my first node up and running. This is on a RHEL6.3
system, I have a script which, once I'm done, I'll post on my blog.

In the meantime, I want to add a 2nd node. Once I've created it and
added it, how do I change the existing VMs to be a DRDB setup so that I
can migrate them from one system to another?

Thanks in advance.


JBB

Iustin Pop

unread,
Sep 28, 2012, 2:57:20 AM9/28/12
to gan...@googlegroups.com

Kirill Shevchuk

unread,
Sep 27, 2012, 6:06:50 PM9/27/12
to gan...@googlegroups.com
You will need to run:

# gnt-instance shutdown $instance
# gnt-instance modify -t drbd -n $second_node $instance
# gnt-instance start $instance

for every instance you that you want to convert. There will be
downtime for each instance while data is copied to the second node.

Somewhat riskier way is to run 'gnt-instance modify -t drbd -n
$second_node --no-wait-for-sync $instance' instead. Then you can start
instance earlier before data is fully copied, but you may have worse
performance due to heavy I/O and potentially higher chance of losing
instance data if something goes wrong.

>
> Thanks in advance.
>
>
> JBB

--
Kirill Shevchuk
cyr...@google.com

Iustin Pop

unread,
Sep 28, 2012, 4:56:32 AM9/28/12
to gan...@googlegroups.com
Kirill, that's a very nice explanation. Would you take the time to send
a patch against the docs I quoted in the other reply or against the man
pages to make more clear what are the trade-offs?

thanks,
iustin
Reply all
Reply to author
Forward
0 new messages