Linux - Vmware add a new hard disk with no reboot, Linux scan new disk without reboot
Vmware add a new hard disk with no rebootThere will be always need of storage space in server when the data grows, In such situation a physical block device will be added and when the device block is added to the particular host in a cluster then the device has to be rescan. Below are are simple steps to rescan the storage blocks of a virtual machine or a Vmware server.
Basic syntax to scan disk is
# echo "1" > /sys/class/scsi_device/$host:$channel:$id:$lun/device/rescan
# echo 1 > /sys/class/scsi_device/0\:0\:1\:0/device/rescan # partprobe # dmesg | tail
If parprobe was not supported then try using diskpart
# diskpart # rescan
This will rescan your disk, once rescanning is done then you can resize your volume.
# pvresize /dev/sdX
# echo "- - -" > /sys/class/scsi_host/host#/scan # fdisk -l # tail -f /var/log/message
Simple way to scan all the host is
# cd /sys/class/scsi_device/ # for i in $(ls -1); do echo 1 > $i/device/rescan; done # partprobe; dmesg # pvresize /dev/sdX
The topic on Linux - Vmware add a new hard disk with no reboot is posted by - Guru
Hope you have enjoyed, Linux - Vmware add a new hard disk with no rebootThanks for your time