0% found this document useful (0 votes)
26 views9 pages

Managing Partition Sizes Through The LVM Manager On Gaia OS

Uploaded by

Jeff Leung
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
26 views9 pages

Managing Partition Sizes Through The LVM Manager On Gaia OS

Uploaded by

Jeff Leung
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 9

2024/6/18 下午2:19 Managing partition sizes through the LVM manager on Gaia OS

Support Center / Search Results / Secureknowledge Details

My Favorites

Search questions, keywords or topics you need information about.

Solution ID: sk95566 Technical Level: Advanced

Email Subscribe

Managing partition sizes through the LVM


manager on Gaia OS
Product
Multi-Domain Security Management, Quantum Security Gateways, Quantum Security
Management
Version
R77.20 (EOL), R77.30 (EOL), R80.10 (EOL), R80.20 (EOL), R80.30 (EOL), R80.40 (EOL),
R81, R81.10, R81.20
Last Modified
2023-12-14

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.

This article applies to these servers:

Security Gateways / VSX Security Gateways


Cluster Members / VSX Cluster Members
Security Management Servers / Multi-Domain Security Management Servers
Log Servers / Multi-Domain Log Servers
SmartEvent Servers
Maestro Orchestrators

Important Notes
Do a backup/snapshot before you proceed.
For backup instructions, refer to sk108902 - Best Practices - Backup on Gaia OS.

Reboot and do the procedure in the Maintenance Mode only.


Refer to sk109047 - How to enter the Boot menu on Gaia OS.

It takes several minutes to change a partition size.

To enter maintenance mode in the cloud virtual machine, refer to sk170732 - Maintenance
mode for Azure, AWS and Google Cloud Platform (GCP)

There is no console in Amazon Web Services (AWS). As a result, there is no access to


the Maintenance Mode.

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

Provides clear visibility of partition structure and size.

Configures the required size of the "current" and "log" partitions.

Protects the user from configuring incorrect values.

Common Use Cases


Smart-1 appliances, which prefer larger "log" partitions as an alternative to allowing
saving snapshots.

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

LVM Manager in R77.30 and Higher Versions


Show / Hide this section
R77.30 and higher versions include lvm_manager by default. You can run it from anywhere with
this command:

[Expert@HostName]# lvm_manager

LVM Manager in R77.20 and Lower Versions


Show / Hide this section

1. Download LVM manager from here.

2. Transfer the lvm_manager.sh script to your machine (into some directory, for example
/path_to_script/).

3. Put the lvm_manager.sh script in the /bin/ directory:

[Expert@HostName]# cp /path_to_script/lvm_manager.sh /bin/lvm_manager.sh

4. Reboot the machine and boot in Maintenance Mode.

https://support.checkpoint.com/results/sk/sk95566 3/9
2024/6/18 下午2:19 Managing partition sizes through the LVM manager on Gaia OS

5. Assign execute permissions to the lvm_manager:

[Expert@HostName]# chmod 755 /bin/lvm_manager.sh

6. Run the lvm_manager script and do the instructions on the screen:

A. [Expert@HostName]# cd /bin

B. [Expert@HostName]# ./lvm_manager

Allocating Space from a Free/Unallocated Partition to 'lv_current'


Show / Hide this section
This section applies to scenarios in which SmartConsole shows this pop-up:
Partition /opt has: XXXX MB of free space and it's lower than required: 2000
MB.

SmartConsole shows this pop-up when the lv_current partition is full or less than 5% space is
left on the partition.

1. Run the lvm_manager command in maintenance mode:

sh4.4# lvm_manager

Enter 1 to select View LVM storage overview.

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

In the next menu, enter 1 to extend the Logical Volume of lv_current.


.

4. You can assign a range of sizes to the lv_current Logical Volume.


See sk95566 for more information on size restrictions.
Note: The Gaia OS uses free/unallocated space to create the snapshot. Make sure there is
sufficient free/unallocated space for a snapshot.

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.

The screenshot below shows the resizing progress:

https://support.checkpoint.com/results/sk/sk95566 6/9
2024/6/18 下午2:19 Managing partition sizes through the LVM manager on Gaia OS

5. When the resizing process completes successfully, this screen appears:

Press Enter to reboot.

6. After the reboot, run the LVM manager.


Enter 1 for View LVM storage overview.
Make sure that lv_current size is correct.

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.

The tool only works on systems with logical volumes.


Therefore, you cannot use it on Gaia systems that were upgraded from SecurePlatform OS.

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

Related SecureKnowledge Articles


sk92303 - How to configure partition sizes during Gaia installation
sk170732 - Maintenance mode for Azure, AWS and Google Cloud Platform (GCP)
sk94671 - How to add log storage to a VMware Virtual Machine running Gaia OS

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

Was this page helpful? Yes No

Haven't found what you're looking for?


Our customer support team is only a click away and ready to help you 24 hours a day.

Open a Service Request

Follow Us


YOU DESERVE THE BEST SECURITY

©1994-2024 Check Point Software Technologies Ltd. All rights reserved.

Copyright | Privacy Policy | User Agreement

https://support.checkpoint.com/results/sk/sk95566 9/9

You might also like