Managing Partition Sizes Through The LVM Manager On Gaia OS
Managing Partition Sizes Through The LVM Manager On Gaia OS
My Favorites
Email Subscribe
Solution
Table of Contents:
Introduction
Important Notes
Features
Common Use Cases
Instructions
LVM Manager in R77.30 and Higher Versions
LVM Manager in R77.20 and Lower Versions
Allocating Space from a Free/Unallocated Partition to 'lv_current'
Limitations
Related SecureKnowledge Articles
隱私權 - 條款
https://support.checkpoint.com/results/sk/sk95566 1/9
2024/6/18 下午2:19 Managing partition sizes through the LVM manager on Gaia OS
Introduction
To improve administrators' ability to monitor and configure the sizes of the partitions on
machines running Gaia OS, we created a dedicated tool: the LVM Manager. LVM Manager is a
command line, menu-driven tool for managing partition sizes.
LVM Manager manages logical volumes. In this article, we use the term “partition" because,
from the user's point of view, it behaves like one.
Important Notes
Do a backup/snapshot before you proceed.
For backup instructions, refer to sk108902 - Best Practices - Backup on Gaia OS.
To enter maintenance mode in the cloud virtual machine, refer to sk170732 - Maintenance
mode for Azure, AWS and Google Cloud Platform (GCP)
To increase the timeout value to boot into the Maintenance Mode, refer to sk128112 - How
to increase the timeout value to boot into maintenance mode.
It is not necessary to allocate disk space to the reserved backup/upgrade partition when
you increase the "log" partition.
Features
https://support.checkpoint.com/results/sk/sk95566 2/9
2024/6/18 下午2:19 Managing partition sizes through the LVM manager on Gaia OS
Open Servers require different sizes during their operation than those defined during the
installation.
Check Point appliances that behave as standalone environments, on which the size of the
"log" partition is not sufficient.
Instructions
Click Here to Show the Entire Article
[Expert@HostName]# lvm_manager
2. Transfer the lvm_manager.sh script to your machine (into some directory, for example
/path_to_script/).
https://support.checkpoint.com/results/sk/sk95566 3/9
2024/6/18 下午2:19 Managing partition sizes through the LVM manager on Gaia OS
A. [Expert@HostName]# cd /bin
B. [Expert@HostName]# ./lvm_manager
SmartConsole shows this pop-up when the lv_current partition is full or less than 5% space is
left on the partition.
sh4.4# lvm_manager
https://support.checkpoint.com/results/sk/sk95566 4/9
2024/6/18 下午2:19 Managing partition sizes through the LVM manager on Gaia OS
2. A table appears describing the partition's size and the amount of used space.
You allocate space from "unallocated space" to lv_current / lv_log.
Press Enter to go back to the Select action menu.
Note: When you increase the "current" partition, the space reserved for upgrades increases
in parallel. Therefore, if you have 10 free GB, you can increase the "current" partition only
to approximately 5 GB. If it is necessary to save room for a snapshot, you must reserve the
same size for the snapshot as the size of the current partition because snapshots back up
the all of the root partition.
3. From the Select action menu, enter 2 to select Resize lv_current/lv_log Logical Volume.
https://support.checkpoint.com/results/sk/sk95566 5/9
2024/6/18 下午2:19 Managing partition sizes through the LVM manager on Gaia OS
Enter the desired size for the lv_current Logical volume size.
For example: lv_current size can be between 33 to 67. We select 42 in the screenshot
below.
When you are prompted with Are you sure you want to continue? (Y/N) enter y to continue
or n to stop.
https://support.checkpoint.com/results/sk/sk95566 6/9
2024/6/18 下午2:19 Managing partition sizes through the LVM manager on Gaia OS
Limitations
Changing partition sizes takes several minutes.
During this time, Check Point products are stopped, and a reboot is necessary at the end of
the process.
A new partition size cannot be less than the current size, which is "used plus 2 GB".
In an XFS file system, you cannot decrease the partition size. You can only increase the
partition size.
You cannot increase a partition size by more than the current free space.
When you increase the "current" partition, the space reserved for upgrades increases in
parallel.
Therefore, if you have 10 free GB, you can increase the "current" partition only to
approximately 5 GB.
If it is necessary to save room for a snapshot, you must reserve the same size for the
https://support.checkpoint.com/results/sk/sk95566 7/9
2024/6/18 下午2:19 Managing partition sizes through the LVM manager on Gaia OS
snapshot as the size of the current partition because snapshot backs up all of the root
partition.
In a VMWare environment, if the free area is already assigned to lv_log manually, the script
shows negative values for "free".
Root cause: The script incorrectly calculates the "upgrade" area, which is not necessary in
VMWare environments.
Example:
LVM overview
============
Size(GB) Used(GB) Configurable Description
lv_current 69 43 yes Check Point OS
and products
lv_log 304 238 yes Logs volume
upgrade 77 N/A no Reserved for
version upgrade
swap 27 N/A no Swap volume size
free -77 N/A no Unused space
------- ----
total 400 N/A no Total size
Article Properties
Access Level
Advanced
Date Created
2013-10-15
Last Modified
https://support.checkpoint.com/results/sk/sk95566 8/9
2024/6/18 下午2:19 Managing partition sizes through the LVM manager on Gaia OS
2023-12-14
Follow Us
™
YOU DESERVE THE BEST SECURITY
https://support.checkpoint.com/results/sk/sk95566 9/9