DISK Remove a Storage Device: Difference between revisions

From UNIX Systems Administration
Jump to navigation Jump to search
(Created page with "== Removing a Storage Device == # Dismount any filesystems associated with the device. # If needed, migrate any data from this device to another device. ## <tt>'''# pvmove /de...")
 
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
== Removing a Storage Device ==
== AIX ==
# Dismount any filesystems associated with the 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.
## <tt>'''# vgreduce <volume group> /dev/<device>'''</tt>
## <tt>'''# pvremove /dev/<device>'''</tt>
# Flush any outstanding IO operations.
## <tt>'''# blockdev --flushbuf /dev/<device>'''</tt>


== Linux ==
=== Removing a Storage Device ===
# Dismount any filesystems associated with the 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
#: <tt>'''# vgreduce <volume group> /dev/<device>'''</tt>
#: <tt>'''# pvremove /dev/<device>'''</tt>
# Flush any outstanding IO operations
#: <tt>'''# blockdev --flushbufs /dev/<device>'''</tt>


== Further Reading ==
== Further Reading ==
# [https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/6/html/Storage_Administration_Guide/removing_devices.html|Removing a Storage Device]
# [https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/6/html/Storage_Administration_Guide/removing_devices.html|Removing a Storage Device]


[[Category:AIX]]
[[Category:Linux]]
[[Category:Linux]]

Latest revision as of 03:35, 28 January 2022

AIX

Linux

Removing a Storage Device

  1. Dismount any filesystems associated with the device
  2. If needed, migrate any data from this device to another device
    # pvmove /dev/<source_device> /dev/<target_device>
  3. If needed, remove any LVM configuration from the device
    # vgreduce <volume group> /dev/<device>
    # pvremove /dev/<device>
  4. Flush any outstanding IO operations
    # blockdev --flushbufs /dev/<device>

Further Reading

  1. a Storage Device