Revision bbf74a76 doc/admin.rst

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

  

Also available in: Unified diff