Revision 949bdabe man/gnt-node.sgml

b/man/gnt-node.sgml
503 503
    </refsect2>
504 504

  
505 505
    <refsect2>
506
      <title>MODIFY</title>
507
      <cmdsynopsis>
508
        <command>modify</command>
509
        <arg>-f</arg>
510
        <arg>--submit</arg>
511
        <arg>--master-candidate=<option>yes|no</option></arg>
512
        <arg>--drained=<option>yes|no</option></arg>
513
        <arg>--offline=<option>yes|no</option></arg>
514
        <arg choice="req"><replaceable>node</replaceable></arg>
515
      </cmdsynopsis>
516

  
517
      <para>
518
        This command changes the role of the node. Each options takes
519
        either a literal <literal>yes</literal> or
520
        <literal>no</literal>, and only one option should be given as
521
        <literal>yes</literal>. The meaning of the roles are described
522
        in the manpage <citerefentry>
523
        <refentrytitle>ganeti</refentrytitle> <manvolnum>7</manvolnum>
524
        </citerefentry>.
525
      </para>
526

  
527
      <para>
528
        In case a node is demoted from the master candidate role, but
529
        there are not enough new nodes for this case, the operation
530
        will be refused. To override this check, pass the
531
        <option>--force</option> option.
532
      </para>
533

  
534
      <para>
535
        Example (setting a node offline, which will demote it from
536
        master candidate role if is in that role):
537
        <screen>
538
# gnt-node modify --offline=yes node1.example.com
539
        </screen>
540
      </para>
541

  
542
      <para>Example (setting the node back to online and master candidate):
543
        <screen>
544
# gnt-node modify --offline=no --master-candidate=yes node1.example.com
545
        </screen>
546
      </para>
547

  
548
    </refsect2>
549

  
550
    <refsect2>
506 551
      <title>REMOVE</title>
507 552

  
508 553
      <cmdsynopsis>

Also available in: Unified diff