Need to expand OVF disk

Is there a way to easily add more disk to the deployed vmware appliance?

Comments

  • Hi Hessa,

    to increase disk space, please do the following steps:
    • Power off the virtual machine.
    • Edit the virtual machine settings and extend the virtual disk size. For more information, see Increasing the size of a virtual disk (1004047)
    • Power on the virtual machine.
    • Identify the device name, which is by default /dev/sda, and confirm the new size by running the command:
    fdisk -l
    Delete and re-create primary partition:
    fdisk /dev/sda
    Press p to print the partition table to identify the number of partitions. By default, there are 2: sda1 and sda2.
    Press d to delete the last partition.
    Press Enter to confirm.
    Press n to create a new primary partition.
    Press p for primary.
    Press 2 for the partition number, depending on the output of the partition table print.
    Press Enter two times.
    Press t to change the system's partition ID.
    Press 2 to select the newly created partition.
    Type 8e to change the Hex Code of the partition for Linux LVM.
    Press w to write the changes to the partition table.

    Reboot the virtual machine.
    Run this command to verify that the changes were saved to the partition table and that the new partition has an 8e type:
    fdisk -l

    # Resize the physical volume
    pvresize /dev/sda2
    # resize logical volume to fill all unused space
    lvresize -l +100%FREE /dev/centos/root
    # resize XFS filesystem on /dev/centos/root
    xfs_growfs /dev/centos/root

    # check free space with
    df -h
  • Thank You! That worked perfectly.
  • I am actually trying to do this again and the disk is full. It won't let me write a partition table as the disk is in use. Is there a way to stop all the lpar2rrd process from starting at bootup?
  • Hello,

    please give us more info, which operation fails? Can you run any commands? Check lpar2rrd logs dir, you can save some space there:
    du -h /home/lpar2rrd/lpar2rrd/logs



Sign In or Register to comment.