The PowerFlex Manager virtual machine (VM) is running Logical Volume Manager (LVM) to manage its volumes. There is a separate /var/log and /var volume on the PowerFlex Manager appliance. We are going to be expanding /var by 100 GB to match the new default configuration in version 3.7.0 and higher using the following steps.
Check the size of the current virtual disk on the PowerFlex Manager VM:
Log in to PowerFlex Manager over ssh
Check the size of the virtual disk by running the following command:
lsblk
Increase the VM disk size on the PowerFlex Manager VM:
Log in to vCenter and find the PowerFlex Manager VM.
Right-click and edit settings. Change the disk size from 200 GB to 300 GB.
Navigate back to the SSH session to the PowerFlex Manager VM and perform the remaining steps to expand the filesystem:
Perform a scan to detect the changes made to the VM disk size by running this command:
echo 1>/sys/class/block/sda/device/rescan
Confirm that the changes were detected by running this command:
lsblk
Grow the partition that belongs to the expanded volume by running this command:
growpart /dev/sda 2
Check the current physical volume size by running this command:
pvdisplay
Resize the physical volume by running this command:
pvresize /dev/sda2
Verify that the physical volume size has increased by running this command:
pvdisplay
Confirm that there is now enough Free PE to extend the logical volume by running the following command. The default Free PE before making any changes is 37.26 GiB. You should see that number increased by 100 GiB.
vgdisplay
Run the following command to display all the logical volumes and find the one you are expanding. In this case we are looking for /dev/asmVG/LVvar.
lvdisplay
Resize the partition /dev/asmVG/LVvar from 80 GB to 180 GB by running the following command:
lvm lvresize -l 46080 /dev/asmVG/LVvar
The system does not yet see the filesystem changes. You can verify this by running this command:
df -h
Run the following command to commit these changes to the filesystem.
resize2fs /dev/asmVG/LVvar
Verify you can see that the filesystem size is now showing correctly by running this command:
df -h
Confirm that the Free Physical Extents and Size has been reduced by running this command:
vgdisplay
Confirm that the Current Logical Extents size has increased by running this command:
lvdisplay
You have successfully expanded the PowerFlex Manager /var filesystem by 100 GB.