DISK Remove a Storage Device

From UNIX Systems Administration
Revision as of 20:32, 20 January 2015 by Michael Kohler (talk | contribs) (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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Removing a Storage Device

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


Further Reading

  1. a Storage Device