Views:

To expand the VMware disk size and other VM products:

  1. In VMware management UI, expand the SPS disk size.

    Expand SPS disk size

  2. Delete the old partition and create a new one.
    1. Log on to SPS terminal as root.
    2. Execute fdisk /dev/sda.
    3. Type "d" to delete the partition.
    4. Press ENTER or type 2 to delete partition 2.

      Delete partition

    5. Type "n" to create a new partition.
    6. Press ENTER or type "p" to create primary partition.
    7. Press ENTER or type 2 to create partition 2.
    8. Press ENTER twice to select the default cylinders and use all space.

      Select the default cylinders

    9. Press "P" to print the partitions. This will list the partitions and let you verify if the block size has increased.

      Print the partitions

    10. Press "W" to write the changes.

      Write the changes

    11. Enter "shutdown -r now" to reboot the server.
  3. Resize the physical volume, logical volume, and file system.
    1. Execute "pvresize /dev/sda2" to resize the physical volume.
    2. Enter "lvdisplay" to verify the logical volume that you are extending.
      In this case, the logical volume name is /dev/sps/root.
    3. Run "lvresize -l +100%FREE /dev/sps/root" to extend the LVM.

      Extend the LVM

    4. Type "xfs_growfs /dev/sps/root" to finalize the file system size.

      Finalize the file system size

    5. Enter the command "df -h" to display the disk with the extended size.

      Display the disk with the extended size