LVM Disk Replacement: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
== Replacing a working non-rootvg Physical Volume == | == rootvg == | ||
== non-rootvg == | |||
=== Replacing a working non-rootvg Physical Volume === | |||
# [[LVM Install a New Physical Volume|Install and configure the new physical volume.]] | # [[LVM Install a New Physical Volume|Install and configure the new physical volume.]] | ||
# Add the new physical volume to the volume group. | # Add the new physical volume to the volume group. | ||
Line 9: | Line 11: | ||
# [[LVM Remove a Physical Volume|Remove the old physical volume from the system.]] | # [[LVM Remove a Physical Volume|Remove the old physical volume from the system.]] | ||
== Replacing a non-rootvg | === Replacing a mirrored non-rootvg Physical Volume === | ||
# Break the mirror. | # Break the mirror. | ||
## <tt>'''# unmirrorvg <vg_name> <old_hdisk#>'''</tt> | ## <tt>'''# unmirrorvg <vg_name> <old_hdisk#>'''</tt> |
Revision as of 15:30, 4 January 2012
rootvg
non-rootvg
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 mirrored non-rootvg 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>