Recognize new virtual disks added to Linux VMs without reboot

From Notes_Wiki
Revision as of 06:55, 19 August 2018 by Saurabh (talk | contribs) (Created page with "<yambe:breadcrumb>VMWare_vSphere_or_ESXi|VMWare vSphere or ESXi</yambe:breadcrumb> =Recognize new virtual disks added to Linux VMs without reboot= It is possible that when a...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

<yambe:breadcrumb>VMWare_vSphere_or_ESXi|VMWare vSphere or ESXi</yambe:breadcrumb>

Recognize new virtual disks added to Linux VMs without reboot

It is possible that when a new virtual disk is added to a Linux VM, the same is not visible ('fdisk -l') in the VM. To recognize new virtual disks without reboot use:

echo "- - -" > /sys/class/scsi_host/host0/scan
echo "- - -" > /sys/class/scsi_host/host1/scan
echo "- - -" > /sys/class/scsi_host/host2/scan

Refer CentOS 7.x adding or removing FC multipath disks without reboot