Chapter 20. Configuring thin logical volumes using the web console
Thin-provisioned logical volumes enable you to allocate more space for designated applications or servers than how much space logical volumes actually contain.
For details, see Creating thin-provisioned snapshot volumes.
The following sections describe:
Prerequisites
The RHEL 9 web console has been installed.
For details, see Installing the web console.
-
The
cockpit-storaged
package is installed on your system. - Physical drives or other types of storage devices from which you want to create volume groups.
20.1. Creating pools for thin logical volumes in the web console
Create a pool for thin-provisioned volumes.
Prerequisites
Procedure
- Log in to the RHEL 9 web console.
- Click Storage.
- Click the volume group in which you want to create thin volumes.
- Click Create new Logical Volume.
- In the Name field, enter a name for the new pool of thin volumes without spaces.
- In the Purpose drop down menu, select Pool for thin-provisioned volumes. This configuration enables you to create the thin volume.
Define the size of the pool of thin volumes. Consider:
- How many thin volumes you will need in this pool?
- What is the expected size of each thin volume?
You do not have to use the whole space. If necessary, you can grow the pool later.
Click Create.
The pool for thin volumes has been created and you can add thin volumes.
20.2. Creating thin logical volumes in the web console
Create a thin logical volume in the pool. The pool can include multiple thin volumes and each thin volume can be as large as the pool for thin volumes itself.
Using thin volumes requires regular checkup of actual free physical space of the logical volume.
Prerequisites
Pool for thin volumes created.
For details, see Creating pools for thin logical volumes in the web console.
Procedure
- Log in to the RHEL 9 web console.
- Click Storage.
- Click the volume group in which you want to create thin volumes.
- Click the desired pool.
- Click Create Thin Volume.
- In the Create Thin Volume dialog box, enter a name for the thin volume without spaces.
- Define the size of the thin volume.
- Click Create.
At this stage, the thin logical volume has been created and you need to format it.
20.3. Formatting logical volumes in the web console
Logical volumes act as physical drives. To use them, you need to format them with a file system.
Formatting logical volumes will erase all data on the volume.
The file system you select determines the configuration parameters you can use for logical volumes. For example, some the XFS file system does not support shrinking volumes. For details, see Resizing logical volumes in the web console.
The following steps describe the procedure to format logical volumes.
Prerequisites
-
The
cockpit-storaged
package is installed on your system. - Logical volume created. For details, see Creating logical volumes in the web console.
Procedure
- Log in to the RHEL 9 web console.
- Click Storage.
- In the Devices section, click the volume group in which the logical volume is placed.
In the Logical volumes section, click Format.
- In the Name field, enter a name for the file system.
In the Type drop down menu, select a file system:
XFS file system supports large logical volumes, switching physical drives online without outage, and growing an existing file system. Leave this file system selected if you do not have a different strong preference.
XFS does not support reducing the size of a volume formatted with an XFS file system
ext4 file system supports:
- Logical volumes
- Switching physical drives online without outage
- Growing a file system
- Shrinking a file system
You can also select a version with the LUKS (Linux Unified Key Setup) encryption, which allows you to encrypt the volume with a passphrase.
Select the Overwrite option:
- Don’t overwrite existing data — the RHEL web console rewrites only the disk header. Advantage of this option is speed of formatting.
- Overwrite existing data with zeros — the RHEL web console rewrites the whole disk with zeros. This option is slower because the program have to go through the whole disk. Use this option if the disk includes any data and you need to overwrite it.
In the Mount Point field, add the mount path.
Click Format.
Formatting can take several minutes depending on the volume size and which formatting options are selected.
After the formatting has completed successfully, you can see the details of the formatted logical volume on the Filesystem tab.
- To use the logical volume, click Mount.
At this point, the system can use mounted and formatted logical volume.