Revision bbf74a76

b/doc/admin.rst
512 512

  
513 513
Note that this will fail if the disks already exists.
514 514

  
515
Conversion of an instance's disk type
516
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
517

  
518
It is possible to convert between a non-redundant instance of type
519
``plain`` (LVM storage) and redundant ``drbd`` via the ``gnt-instance
520
modify`` command::
521

  
522
  # start with a non-redundant instance
523
  gnt-instance add -t plain ... INSTANCE
524

  
525
  # later convert it to redundant
526
  gnt-instance stop INSTANCE
527
  gnt-instance modify -t drbd INSTANCE
528
  gnt-instance start INSTANCE
529

  
530
  # and convert it back
531
  gnt-instance stop INSTANCE
532
  gnt-instance modify -t plain INSTANCE
533
  gnt-instance start INSTANCE
534

  
535
The conversion must be done while the instance is stopped, and
536
converting from plain to drbd template presents a small risk, especially
537
if the instance has multiple disks and/or if one node fails during the
538
conversion procedure). As such, it's recommended (as always) to make
539
sure that downtime for manual recovery is acceptable and that the
540
instance has up-to-date backups.
541

  
515 542
Debugging instances
516 543
+++++++++++++++++++
517 544

  
b/man/gnt-instance.sgml
1398 1398
          </group>
1399 1399

  
1400 1400
          <sbr>
1401
          <arg>-t<group choice="req">
1402
              <arg>plain</arg>
1403
              <arg>drbd</arg>
1404
            </group></arg>
1405

  
1406

  
1407
          <sbr>
1401 1408
          <arg>--submit</arg>
1402 1409
          <sbr>
1403 1410
          <arg choice="req"><replaceable>instance</replaceable></arg>
......
1417 1424
        </para>
1418 1425

  
1419 1426
        <para>
1427
          The <option>-t</option> option will change the disk template
1428
          of the instance. Currently only conversions between the
1429
          plain and drbd disk templates are supported, and the
1430
          instance must be stopped before attempting the conversion.
1431
        </para>
1432

  
1433
        <para>
1420 1434
          The <option>--disk
1421 1435
          add:size=<replaceable>SIZE</replaceable></option> option
1422 1436
          adds a disk to the instance. The <option>--disk

Also available in: Unified diff