search

Hot Plug and Unplug Disk


Hotplug Disk Drive

echo “- – -” > /sys/class/scsi_host/host2/scan
echo “- – -” > /sys/class/scsi_host/host3/scan



Scan All Host SCSI

ls /sys/class/scsi_host/ | while read host ; do echo “- – -” > /sys/class/scsi_host/$host/scan ; done

Hot Unplug the Drive

echo 1 > /sys/block/sdd/device/delete
echo 1 > /sys/block/sde/device/delete

close
Visit Us On TwitterVisit Us On GooglePlusVisit Us On Linkedin

Hi, guest!

settings

menu