DISK Remove a Storage Device: Difference between revisions
Jump to navigation
Jump to search
Line 5: | Line 5: | ||
# Dismount any filesystems associated with the device | # Dismount any filesystems associated with the device | ||
# If needed, migrate any data from this device to another device | # If needed, migrate any data from this device to another device | ||
#: <tt>'''# pvmove /dev/< | #: <tt>'''# pvmove /dev/<source_device> /dev/<target_device>'''</tt> | ||
# If needed, remove any LVM configuration from the device | # If needed, remove any LVM configuration from the device | ||
#: <tt>'''# vgreduce <volume group> /dev/<device>'''</tt> | #: <tt>'''# vgreduce <volume group> /dev/<device>'''</tt> |
Revision as of 03:03, 28 January 2022
AIX
Linux
Removing a Storage Device
- Dismount any filesystems associated with the device
- If needed, migrate any data from this device to another device
- # pvmove /dev/<source_device> /dev/<target_device>
- If needed, remove any LVM configuration from the device
- # vgreduce <volume group> /dev/<device>
- # pvremove /dev/<device>
- Flush any outstanding IO operations
- # blockdev --flushbuf /dev/<device>