DISK Remove a Storage Device
Jump to navigation
Jump to search
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>