LVM Disk Replacement: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 3: | Line 3: | ||
# Add the new physical volume to the volume group. | # Add the new physical volume to the volume group. | ||
## <tt>'''# extendvg <volume group> <hdisk# of new physical volume>'''</tt> | ## <tt>'''# extendvg <volume group> <hdisk# of new physical volume>'''</tt> | ||
# If the logical volumes on the old physical volume are mirrored, break the mirror. | |||
## <tt>'''# unmirrorvg rootvg <hdisk# of old physical volume'''</tt> | |||
# Migrate the logical volumes to the new physical volume. | # Migrate the logical volumes to the new physical volume. | ||
## <tt>'''# migratepv <hdisk# of old physical volume> <hdisk# of new physical volume>'''</tt> | ## <tt>'''# migratepv <hdisk# of old physical volume> <hdisk# of new physical volume>'''</tt> | ||
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-working non-rootvg Physical Volume == | |||
# [[LVM Install a New Physical Volume|Install and configure the new physical volume.]] | |||
# [[LVM Remove a Physical Volume|Remove the old physical volume from the system.]] | |||
== Further Reading == | == Further Reading == | ||
# [http://publib.boulder.ibm.com/infocenter/pseries/v5r3/index.jsp IBM pSeries and AIX Information Center] | # [http://publib.boulder.ibm.com/infocenter/pseries/v5r3/index.jsp IBM pSeries and AIX Information Center] |
Revision as of 14:48, 4 January 2012
Replacing a working non-rootvg Physical Volume
- Install and configure the new physical volume.
- Add the new physical volume to the volume group.
- # extendvg <volume group> <hdisk# of new physical volume>
- If the logical volumes on the old physical volume are mirrored, break the mirror.
- # unmirrorvg rootvg <hdisk# of old physical volume
- Migrate the logical volumes to the new physical volume.
- # migratepv <hdisk# of old physical volume> <hdisk# of new physical volume>
- Remove the old physical volume from the volume group.
- # reducevg <volume group> <hdisk# of old physical volume>
- Remove the old physical volume from the system.