Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Use the lvreduce command.

Move

...

storage or logical

...

volumes (

...

LVs) between physical volumes (PVs)

Move storage

This is useful when upgrading HDDschanging physical volumes (PVs).  After adding the new HDDs, usually as a RAID 1 md array, to the volume group, the LVs can be moved from the old PV to  the new.  Finally the old PV can be removed from the VG and the old HDDs removed, usually after powering down.

...

pvmove /dev/md1 /dev/md3 

Move a logical volume (LV)

For example:

pvmove --name atlassian.blue.av-disk /dev/md1 /dev/sdb1

Rename a logical volume (LV)

...