DISK Remove a Storage Device: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
Line 3: | Line 3: | ||
== Linux == | == Linux == | ||
=== Removing a Storage Device === | === Removing a Storage Device === | ||
# 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/<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>'''# pvremove /dev/<device>'''</tt> | ||
# Flush any outstanding IO operations | # Flush any outstanding IO operations | ||
# | #: <tt>'''# blockdev --flushbuf /dev/<device>'''</tt> | ||
== Further Reading == | == Further Reading == |
Revision as of 18:57, 1 March 2017
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>