It is related to Check Point MGMT VM with R80.10 in my story, but you would as well want to resize Check Point gateway firewall hardware box or VM.
I was searching for a simple solution and found different ones that didn’t work for me, so here are the steps that you need to go through when you resize your CheckPoint VM disk in vCenter and then need to expand the partition inside Check Point VM in order to use the additional space.
Of course, you did choose too small HDD for your VM when you created it and now you cannot upload some hotfixes or vSEC gateway files to it because you don’t have enough space.
Get to vCenter and shut down the VM.
Get more GB to your VM and power it back up.
Login to your CheckPoint VM with SSH and get to expert mode.
Check to see that partitions of the VM stayed the same as before. We need to expand partition in order to use added space on the disk.
Use lvextend to define expansion size and of which partition.
You see, I needed more space on my /dev/mapper/vg_splat-lv_current partition. It was strange but the command for defining the extension of that partition with lvextend needed to be like in the example below.
So ditch the mapper part and add / between vg_splat and lv_current :
Start extending the partition with the resize2fs tool:
REARRANGE AVAILABLE SPACE BETWEEN PARTITIONS
If your log partition is too big and lv_current is too small, there is no need to go to VMware admin and ask for more space on the VM.
So to skip buying beers to VMware guys you can use lvm_manager to shrink one partition and expand the other. It is simple enough, just go into expert mode and type: lvm_manager
The menu will appear and ask you what you want to do. In the example below I used option 1) to list available partitions and see how many space they use. With option 2) I can go further and shrink and expand one of those partitions.
So, in short:
You see that you have 10.69 GB of free space on the disk (unpartitioned, vcenter added space):
So you add that 10G space to lw_current partition:
And apply the change: