vmstat 1 100
; device removal is not recommended if: free
can also be used to display the total memory). si
and so
columns in the vmstat
output). umount
to unmount any file systems that mounted the device. md
and LVM volume using it. If the device is a member of an LVM Volume group, then it may be necessary to move data off the device using the pvmove
command, then use the vgreduce
command to remove the physical volume, and (optionally) pvremove
to remove the LVM metadata from the disk. multipath -l
and note all the paths to the device. Afterwards, remove the multipathed device using multipath -f device
. blockdev –flushbufs device
to flush any outstanding I/O to all paths to the device. This is particularly important for raw devices, where there is no umount
or vgreduce
operation to cause an I/O flush. /dev/sd
, /dev/disk/by-path
or the major:minor
number, in applications, scripts, or utilities on the system. This is important in ensuring that different devices added in the future will not be mistaken for the current device. echo 1 > /sys/block/device-name
/device/delete
where device-name
may be sde
, for example. echo 1 > /sys/class/scsi_device/h
:c
:t
:l
/device/delete
, where h
is the HBA number, c
is the channel on the HBA, t
is the SCSI target ID, and l
is the LUN. echo "scsi remove-single-device 0 0 0 0" > /proc/scsi/scsi
, is deprecated. device-name
, HBA number, HBA channel, SCSI target ID and LUN for a device from various commands, such as lsscsi
, scsi_id
, multipath -l
, and ls -l /dev/disk/by-*
. 如果觉得我的文章对您有用,请点赞。您的支持将鼓励我继续创作!
赞0
添加新评论0 条评论