LVM Disk Replacement
Jump to navigation
Jump to search
Replacing a working non-rootvg Physical Volume
- Install and configure the new physical volume.
- Add the new physical volume to the volume group.
- # extendvg <vg_name> <new_hdisk#>
- Migrate the logical volumes to the new physical volume.
- # migratepv <old_hdisk#> <new_hdisk#>
- Remove the old physical volume from the volume group.
- # reducevg <vg_name> <old_hdisk#>
- Remove the old physical volume from the system.
Replacing a non-rootvg mirrored Physical Volume
- Break the mirror.
- # unmirrorvg <vg_name> <old_hdisk#>
- Remove the disk from the volume group.
- # reducevg <vg_name> <old_hdisk#>
- Remove the old physical volume from the system.
- Install and configure the new physical volume.
- Add the new disk to the volume group.
- # extendvg <vg_name> <new_hdisk#>
- Mirror the volume group (syn in background, ensuring a copy on each disk).
- # mirrorvg -S -c2 <vg_name> <new_hdisk#>
- Synchronize the volume group.
- # syncvg -v <vg_name>