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:
-
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. -
Ensure you have allocated enough disk space.
-
From vSphere, select the virtual machine to be modified and power it down.
-
Determine the increased disk size.
-
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:-
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.
-
Press P to print the partition table to identify the number of partitions. By default, there are 2: sda1 and sda2.
-
Press N to create a new primary partition.
-
Press P for primary.
-
Press 3 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 3 to select the newly creation partition.
-
Type 8e to change the Hex Code of the partition for Linux LVM.
-
Press W to write the changes to the partition table.
-
-
Run
sudo init 6
to restart the virtual machine. -
When the virtual machine restarts, run 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 following command). -
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). -
sudo resize2fs /dev/mapper/vg_main-lv_root
(This will resize the partition). -
sudo init 6
(this will restart the virtual machine).
-
-
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.