Extend the disk partition in Check Point firewall using lvm_manager

Below is the action plan to extend /var/log partition using the available free space via lvm_manager.
Take console access to the device and execute the below command:
[Expert@MGMT:0]# fw ver
This is Check Point's software version R80.20 - Build 255
[Expert@MGMT:0]#
[Expert@MGMT:0]# df -h
Filesystem                       Size  Used Avail Use% Mounted on
/dev/mapper/vg_splat-lv_current   15G  5.9G  9.2G  40% /
/dev/sda1                        291M   25M  251M   9% /boot
tmpfs                            1.9G  4.0K  1.9G   1% /dev/shm
/dev/mapper/vg_splat-lv_log       15G  432M   15G   3% /var/log
[Expert@MGMT:0]#
As checked, /var/log/ has assighned 15G and we want to add 25GB
[Expert@MGMT:0]# lvm_manager
Select action:

1) View LVM storage overview
2) Resize lv_current/lv_log Logical Volume
3) Quit
Select action: 1
LVM overview
============
                  Size(GB)   Used(GB)   Configurable    Description
    lv_current    15         6          yes             Check Point OS and products
    lv_log        15         1          yes             Logs volume
    upgrade       17         N/A        no              Reserved for version upgrade
    swap          8          N/A        no              Swap volume size
    free          44         N/A        no              Unused space
    -------       ----
    total         99         N/A        no              Total size

press ENTER to continue.3
Select action:

1) View LVM storage overview
2) Resize lv_current/lv_log Logical Volume
3) Quit
Select action: 2
Select Logical Volume for size modification:
1) lv_current
2) lv_log
3) Cancel
Select Logical Volume: 2
LVM overview
============
                  Size(GB)   Used(GB)   Configurable    Description
    lv_current    15         6          yes             Check Point OS and products
    lv_log        15         1          yes             Logs volume
    upgrade       17         N/A        no              Reserved for version upgrade
    swap          8          N/A        no              Swap volume size
    free          44         N/A        no              Unused space
    -------       ----
    total         99         N/A        no              Total size

Resizing lv_log Logical Volume
==============================
lv_log size can be between 16G to 60G.
Enter the new size(GB) or leave blank to cancel:40

Note that all Check Point products will be shutdown during the resizing operation and the machine will be rebooted automatically at the end of the process.
This may take several minutes.
Are you sure you want to continue?(Y/N)[N]Y

Stopping Check Point products. This may take several minutes ...

Killing processes that access to the filesystem...

Unmounting logical volume ...

Checking the filesystem...
 
Mounting the filesystem...
Start resizing...
  Size of logical volume vg_splat/lv_log changed from 15.00 GiB (480 extents) to 40.00 GiB (1280 extents).
  Logical volume vg_splat/lv_log successfully resized.
meta-data=/dev/mapper/vg_splat-lv_log isize=512    agcount=4, agsize=983040 blks
         =                       sectsz=512   attr=2, projid32bit=1
         =                       crc=1        finobt=0 spinodes=0
data     =                       bsize=4096   blocks=3932160, imaxpct=25
         =                       sunit=0      swidth=0 blks
naming   =version 2              bsize=4096   ascii-ci=0 ftype=1
log      =internal               bsize=4096   blocks=2560, version=2
         =                       sectsz=512   sunit=0 blks, lazy-count=1
realtime =none                   extsz=4096   blocks=0, rtextents=0
data blocks changed from 3932160 to 10485760

********************************************************************

Operation ended successfully.

Logical Volume size changed from 15G to 40G.

Press ENTER for reboot.
Reboot ...

Broadcast message from admin@MGMT (pts/2) (Thu Sep  1 20:53:17 2022):

The system is going down for reboot NOW!

Note: The device will be rebooted after performing the above steps, as you are doing it on gateway schedule a proper downtime for the activity. Also, take an existing backup sk54100 and export it out of the appliance before proceeding with the activity.
Total activity time differs based on appliance/configuration and also on how the process of disk fragmentation happens, usually this activity takes up to 10-20 mins but to be on safer side we recommend taking the downtime of 1 hour for this activity.

Now check the partition after reboot

[Expert@MGMT:0]# fw ver
This is Check Point's software version R80.20 - Build 255
[Expert@MGMT:0]#
[Expert@MGMT:0]# df -h
Filesystem                       Size  Used Avail Use% Mounted on
/dev/mapper/vg_splat-lv_current   15G  5.9G  9.2G  40% /
/dev/sda1                        291M   25M  251M   9% /boot
tmpfs                            1.9G  4.0K  1.9G   1% /dev/shm
/dev/mapper/vg_splat-lv_log       40G  433M   40G   2% /var/log
[Expert@MGMT:0]#

Post a Comment

Cookie Consent
We serve cookies on this site to analyze traffic, remember your preferences, and optimize your experience.
Oops!
It seems there is something wrong with your internet connection. Please connect to the internet and start browsing again.
AdBlock Detected!
We have detected that you are using adblocking plugin in your browser.
The revenue we earn by the advertisements is used to manage this website, we request you to whitelist our website in your adblocking plugin.
Site is Blocked
Sorry! This site is not available in your country.