Scan new disk in linux code example
Example 1: Scan new disk in linux
[root@node-1 ~]# echo "- - -" > /sys/class/scsi_host/host0/scan
[root@node-1 ~]# echo "- - -" > /sys/class/scsi_host/host1/scan
[root@node-1 ~]# echo "- - -" > /sys/class/scsi_host/host2/scan
Example 2: Scan Existing disk in linux
echo "1" > /sys/class/block/sdX/device/rescan