1. fdisk /dev/sda
p
q
2. Extend the VMDK in vCenter
3. fdisk /dev/sda
p
q
4. If no extra space:
echo ‘1’ > /sys/class/scsi_disk/0\:0\:0\:0/device/rescan
5. fdisk /dev/sda
p
q
There is free space
6. Delete partition
d
4
n
p
4
<enter>
<enter>
t
4
8e
p
w -> write partition!
Calling ioctl() to re-read partition table.
WARNING: Re-reading the partition table failed with error 16: Device or resource busy.
The kernel still uses the old table.
The new table will be used at the next reboot.
Syncing disks.
7. partprobe -s
8. Extend
pvresize /dev/sda4
vgdisplay
lvdisplay
df -h
lvextend -L +100%FREE /dev/VGroot/LV01
lvdisplay
df -h
resize2fs /dev/VGroot/LV01 or fsadm resize /dev/VGroot/LV01
df -h