vmware: добавление нового диска в виртуалку с centos

ls /sys/class/scsi_host/ | while read host ; do echo "- - -" > /sys/class/scsi_host/$host/scan ; done


How To Detect a New Hard Disk Without Rebooting VMware Linux Guest

Yet another method:
yum install cloud-utils-growpart sg3_utils
/bin/rescan-scsi-bus.sh -a
growpart /dev/sda 2
pvresize /dev/sda2
lvextend -l +100%FREE /dev/mapper/rhel-root

Comments powered by CComment