LVM Remove a Physical Volume: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 7: | Line 7: | ||
# Select: <tt>'''Replace/Remove a Device Attached to an SCSI Hot Swap Enclosure Device'''</tt> | # Select: <tt>'''Replace/Remove a Device Attached to an SCSI Hot Swap Enclosure Device'''</tt> | ||
# Select: <tt>'''Slot #'''</tt> of the physical volume you wish to remove. | # Select: <tt>'''Slot #'''</tt> of the physical volume you wish to remove. | ||
# Follow the on- | # Follow the on-screen instructions to complete removal. | ||
== Linux == | == Linux == |
Revision as of 18:10, 26 January 2012
AIX
Removal of a Physical Volume
- # diag
- Select: Task Selection
- Select: Hot Plug Task
- Select: SCSI and SCSI Raid Hot Plug Manager
- Select: Replace/Remove a Device Attached to an SCSI Hot Swap Enclosure Device
- Select: Slot # of the physical volume you wish to remove.
- Follow the on-screen instructions to complete removal.
Linux
Removal of a Physical Volume
- Removing a physical volume from a volume group:
- Ensure the physical volume is not being used:
- # pvdisplay /dev/XXX#
- If physical volume contains any logical volumes, you will need to migrate the data off of the physical volume:
- # pvmove /dev/XXX#
- If physical volume is empty remove it from the volume group:
- # vgreduce GGGG /dev/XXX#
- Remove the physical volume from LVM:
- # pvremove /dev/XXX#
- Ensure the physical volume is not being used: