Skip to content

Expanding the PCoIP Management Console Disk SizeΒΆ

The following steps are required to expand the vdisk of the PCoIP Management Console.

Caution: Modifying virtual machine settings should only be done by qualified individuals

Modifying any virtual machine settings should only be done by qualified individuals. HP strongly recommends you do a database backup of the PCoIP Management Console and download the archive file to a safe location. You should also take a snapshot of the virtual machine prior to modifying any settings.

To expand your PCoIP Management Console disk size:

  1. Check the current disk size from the command prompt:
    df --total
    This will display the space used by each volume in /dev/mapper/vg_main-lv_root.

  2. Ensure you have allocated enough disk space.

  3. From vSphere, select the virtual machine to be modified and power it down.

  4. Determine the increased disk size.

  5. Edit the virtual machine settings to increase the vDisk and the vRAM. To do this, run sudo fdisk /dev/sda and follow these steps in order:

    1. You may get a Warning about DOS-compatible mode being deprecated. Type C to switch off DOS-compatible mode. Type U to change display units to sectors.

    2. Press P to print the partition table to identify the number of partitions. By default, there are 2: sda1 and sda2.

    3. Press N to create a new primary partition.

    4. Press P for primary.

    5. Press 3 for the partition number, depending on the output of the partition table print.

    6. Press Enter two times.

    7. Press T to change the system's partition ID.

    8. Press 3 to select the newly creation partition.

    9. Type 8e to change the Hex Code of the partition for Linux LVM.

    10. Press W to write the changes to the partition table.

  6. Run sudo init 6 to restart the virtual machine.

  7. When the virtual machine restarts, run the following commands in order:

    1. sudo pvcreate /dev/sda3 (This should create the physical volume /dev/sda3).

    2. sudo vgextend vg_main /dev/sda3 (This will extend the Volume Group VG_Main).

    3. sudo vgdisplay (This will display information about the Volume Group. Make note of the Free PE / Size. The first number is the number of free extents and will be used in the following command).

    4. sudo lvextend -l 511 /dev/mapper/vg_main-lv_root (You will get a message telling you the volume has been extended from 8.31GB to 15.97GB / 511 extents).

    5. sudo resize2fs /dev/mapper/vg_main-lv_root (This will resize the partition).

    6. sudo init 6 (this will restart the virtual machine).

  8. Power the virtual machine back on.

Note: Extending logical volume in Linux

For information on how to extend logical volume in a virtual machine running RedHat or CentOS, see https://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=1006371.