Tuesday, July 19, 2011

resize disk vmware vsphere


resize the disk from vsphere client,
in linux client do a

echo 1 > /sys/bus/scsi/devices/0\:0\:0\:0/rescan

# replace 0\:0\:0\:0 with your own disk scsi id and then

resize2fs /dev/sda

PS: In case a new disk was added to the SCSI bus you need to

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

Saturday, July 16, 2011

shrink vmware vmdk virtual disk ESXi 4

use vmware converter to create a copy of the virtual machine which needs to be powered ON for the converter to see the actual data, resize the disks also choose advanced thin for the disk type and have fun, remove the old machine later.

vmware converter helper server error

When vmware can not find the vmware helper server for conversion make sure that
1. conveter and esx server and the machine being converted are on the same lan (check the vlan property before converting)
2. the vlan on which the helper and these other machines are does have a DHCP server on, otherwise configure static IP for the helper