LVM Remove a Physical Volume: Difference between revisions

From UNIX Systems Administration
Jump to navigation Jump to search
(Created page with "== Removal of a Physical Volume == # <tt>'''# diag'''</tt> # Select: <tt>'''Task Selection'''</tt> # Select: <tt>'''Hot Plug Task'''</tt> # Select: <tt>'''SCSI and SCSI Raid H...")
 
No edit summary
Line 1: Line 1:
== Removal of a Physical Volume ==
== AIX ==
=== Removal of a Physical Volume ===
# <tt>'''# diag'''</tt>
# <tt>'''# diag'''</tt>
# Select: <tt>'''Task Selection'''</tt>
# Select: <tt>'''Task Selection'''</tt>
Line 7: Line 8:
# 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-screen1instructions to complete removal.
# Follow the on-screen1instructions 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:
### <tt>'''# pvdisplay /dev/XXX#'''</tt>
## If physical volume contains any logical volumes, you will need to migrate the data off of the physical volume:
### <tt>'''# pvmove /dev/XXX#'''</tt>
## If physical volume is empty remove it from the volume group:
### <tt>'''# vgreduce GGGG /dev/XXX#'''</tt>
## Remove the physical volume from LVM:
### <tt>'''# pvremove /dev/XXX#'''</tt>


== 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 15:43, 5 January 2012

AIX

Removal of a Physical Volume

  1. # diag
  2. Select: Task Selection
  3. Select: Hot Plug Task
  4. Select: SCSI and SCSI Raid Hot Plug Manager
  5. Select: Replace/Remove a Device Attached to an SCSI Hot Swap Enclosure Device
  6. Select: Slot # of the physical volume you wish to remove.
  7. Follow the on-screen1instructions to complete removal.

Linux

Removal of a Physical Volume

  1. Removing a physical volume from a volume group:
    1. Ensure the physical volume is not being used:
      1. # pvdisplay /dev/XXX#
    2. If physical volume contains any logical volumes, you will need to migrate the data off of the physical volume:
      1. # pvmove /dev/XXX#
    3. If physical volume is empty remove it from the volume group:
      1. # vgreduce GGGG /dev/XXX#
    4. Remove the physical volume from LVM:
      1. # pvremove /dev/XXX#

Further Reading

  1. IBM pSeries and AIX Information Center