How do I expand the PCoIP Management Console 2.0 - 2.4 disk size?

Rate this Article
No votes yet

Answer:
 

Note: This KB applies to PCoIP Management Console 2.0 to 2.4. All disk space issues have been resolved in release 2.5 of the PCoIP Management Console. If you are experiencing issues in Management Console 2.5 or newer open a ticket with HP Anyware Global Support Services before attempting the steps in the KB.

Earlier versions of the PCoIP Management Console (2.0 to 2.1) were released with 15 GB of hard drive space on the VM. Current releases now have have 62 GB of VM hard drive space. There maybe instances where HP Anyware Global Support Services directs you to use these instructions on later releases of the PCoIP Management Console. If you are experiencing issues with a full disk in PCoIP Management Console versions 2.4 please review Why is PCoIP Management Console 2.4.0 out of disk space?.  HP Anyware highly recommends that the PCoIP Management Console is updated to the latest GA release.

If you were using one of these earlier versions and need to increase the VM disk size, please read and follow the instructions below:

CAUTION

  • Modifying any VM settings should only be considered by qualified individuals.
  • HP Anyware strongly recommends you do a db backup of the MC and download the archive file to a safe location.
  • You should also take a snapshot of the VM prior to modifying any settings.

The steps below are required to expand the vdisk of the Management Console (MC).
Prior to modifying the disk size you can check the current disk size from the command prompt:

df --total  (this will display the space used by each volume, the volume we are concerned about is /dev/mapper/vg_main-lv_root)

  • Since you have to edit the VM settings you will need to do this first to ensure you have allocated enough disk space.
  • From vSphere select the VM to be modified and power it down.
  • Edit the VM settings to increase the vDisk and the vRAM.
  • Power the VM back on.

sudo fdisk /dev/sda

  1. You may get a Warning about DOS-compatible mode being deprecated. TypeC 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.

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

When restarted continue running the following commands in order.

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

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

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 below command. In my case there were 511 free extends).

sudo lvextend -l +511 /dev/mapper/vg_main-lv_root (You will get a message telling you the volume has been extended from from the initial size to the newly configured size, which must be the sum of the already assigned extents plus the free extents).

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

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

See also : http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=1006371