LVM Disk Replacement

From UNIX Systems Administration
Revision as of 15:28, 4 January 2012 by Michael Kohler (talk | contribs)
Jump to navigation Jump to search

Replacing a working non-rootvg Physical Volume

  1. Install and configure the new physical volume.
  2. Add the new physical volume to the volume group.
    1. # extendvg <vg_name> <new_hdisk#>
  3. Migrate the logical volumes to the new physical volume.
    1. # migratepv <old_hdisk#> <new_hdisk#>
  4. Remove the old physical volume from the volume group.
    1. # reducevg <vg_name> <old_hdisk#>
  5. Remove the old physical volume from the system.

Replacing a non-rootvg mirrored Physical Volume

  1. Break the mirror.
    1. # unmirrorvg <vg_name> <old_hdisk#>
  2. Remove the disk from the volume group.
    1. # reducevg <vg_name> <old_hdisk#>
  3. Remove the old physical volume from the system.
  4. Install and configure the new physical volume.
  5. Add the new disk to the volume group.
    1. # extendvg <vg_name> <new_hdisk#>
  6. Mirror the volume group (syn in background, ensuring a copy on each disk).
    1. # mirrorvg -S -c2 <vg_name> <new_hdisk#>
  7. Synchronize the volume group.
    1. # syncvg -v <vg_name>

Further Reading

  1. IBM pSeries and AIX Information Center