extend disk size for vmware disk

!!only for linux using lvm, otherwise, you can use gparted.

fdisk

create partition (command:n )

change type to 8e (for LVM2) (command:t)

write(command:w)

restart

lvm pvcreate /dev/sda3

lvm vgextend VolGroup00 /dev/sda3

lvm lvextend -L32.5G /dev/VolGroup00/LogVol00 (set a large size, and you will know how many left, and then use ---extents parameter)

resize2fs /dev/VolGroup00/LogVol00 (very slow ... )

原文地址:https://www.cnblogs.com/johnsonshu/p/2826550.html