Revision 0b0dea6a
b/man/gnt-instance.sgml | ||
---|---|---|
688 | 688 |
|
689 | 689 |
<cmdsynopsis> |
690 | 690 |
<command>replace-disks</command> |
691 |
<arg choice="opt">--new-secondary <replaceable>NODE</replaceable></arg> |
|
692 |
<arg choice="req"><replaceable>instance</replaceable></arg> |
|
693 |
</cmdsynopsis> |
|
694 |
|
|
695 |
<cmdsynopsis> |
|
696 |
<command>replace-disks</command> |
|
697 |
<arg choice="req">-s</arg> |
|
691 | 698 |
<arg choice="req">--new-secondary <replaceable>NODE</replaceable></arg> |
692 | 699 |
<arg choice="req"><replaceable>instance</replaceable></arg> |
693 | 700 |
</cmdsynopsis> |
694 | 701 |
|
702 |
<cmdsynopsis> |
|
703 |
<command>replace-disks</command> |
|
704 |
<group> |
|
705 |
<arg choice="req">-s</arg> |
|
706 |
<arg choice="req">-p</arg> |
|
707 |
</group> |
|
708 |
<arg choice="req"><replaceable>instance</replaceable></arg> |
|
709 |
</cmdsynopsis> |
|
710 |
|
|
695 | 711 |
<para> |
696 |
This command does a full add and replace for both disks of |
|
697 |
an instance. It basically does an |
|
698 |
<command>addmirror</command> and |
|
699 |
<command>removemirror</command> for both disks of the |
|
700 |
instance. |
|
712 |
This command is a generalized form for adding and replacing |
|
713 |
disks. |
|
701 | 714 |
</para> |
702 | 715 |
|
703 | 716 |
<para> |
704 |
If you also want to replace the secondary node during this |
|
705 |
process (for example to fix a broken secondary node), you |
|
706 |
can do so using the <option>--new-secondary</option> option. |
|
717 |
The first form is usable with the |
|
718 |
<literal>remote_raid1</literal> disk template. This will |
|
719 |
replace the disks on both the primary and secondary node, |
|
720 |
and optionally will change the secondary node to a new one |
|
721 |
if you pass the <option>--new-secondary</option> option. |
|
707 | 722 |
</para> |
723 |
|
|
724 |
<para> |
|
725 |
The second and third forms are usable with the |
|
726 |
<literal>drbd</literal> disk template. The second form will |
|
727 |
do a secondary replacement, but as opposed to the |
|
728 |
<literal>remote_raid1</literal> will not replace the disks |
|
729 |
on the primary, therefore it will execute faster. The third |
|
730 |
form will replace the disks on either the primary |
|
731 |
(<option>-p</option>) or the secondary (<option>-s</option>) |
|
732 |
node of the instance only, without changing the node. |
|
733 |
</para> |
|
734 |
|
|
708 | 735 |
</refsect3> |
709 | 736 |
|
710 | 737 |
<refsect3> |
Also available in: Unified diff