scsi
fdisk -l can not display the new disk
Rescan the SCSI Bus to Add a SCSI Device Without rebooting the VM
[root@localhost ~]# ll /sys/class/scsi_host/
total 0
lrwxrwxrwx 1 root root 0 May 26 19:19 host0 -> ../../devices/pci0000:00/0000:00:07.1/ata1/host0/scsi_host/host0
lrwxrwxrwx 1 root root 0 May 26 19:19 host1 -> ../../devices/pci0000:00/0000:00:07.1/ata2/host1/scsi_host/host1
lrwxrwxrwx 1 root root 0 May 26 19:19 host2 -> ../../devices/pci0000:00/0000:00:10.0/host2/scsi_host/host2
[root@localhost ~]#
echo "- - -" > /sys/class/scsi_host/host2/scan
[root@private-3 net]# lsscsi
[1:0:0:0] cd/dvd NECVMWar VMware IDE CDR10 1.00 /dev/sr0
[2:0:0:0] disk VMware, VMware Virtual S 1.0 /dev/sda
[2:0:1:0] disk VMware, VMware Virtual S 1.0 /dev/sdb
[root@private-3 net]# echo "scsi remove-single-device 2 0 2 0" > /proc/scsi/scsi // add-single-device