vmware vsphere client virtual machines dynamically add disks

0x00 event

After the virtual machine to add a disk, restart the machine does not load a new disk.

As shown above, adding a 10G disk after.

In the virtual machine is not to see the newly added disk:

0x01 solve

Run the following commands, rescan SCSI (Small Computer System Interface Small Computer System Interface) bus and add a SCSI device

[root@k8sn91 ~]# ls /sys/class/scsi_host/
host0  host1  host2
[root@k8sn91 ~]# echo "- - -" > /sys/class/scsi_host/host0/scan
[root@k8sn91 ~]# echo "- - -" > /sys/class/scsi_host/host1/scan
[root@k8sn91 ~]# echo "- - -" > /sys/class/scsi_host/host2/scan

Look lsblk, you can see a 10G sdbbeen scanned out

Then it can be a normal format, partitioning.

Guess you like

Origin www.cnblogs.com/nnylee/p/11850142.html