Chapter 22. Changing physical drives in volume groups using the web console
Change the drive in a volume group using the RHEL 9 web console.
The change of physical drives consists of the following procedures:
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. - A new physical drive for replacing the old or broken one.
- The configuration expects that physical drives are organized in a volume group.
22.1. Adding physical drives to volume groups in the web console
The RHEL 9 web console enables you to add a new physical drive or other type of volume to the existing logical volume.
Prerequisites
- A volume group must be created.
- A new drive connected to the machine.
Procedure
- Log in to the RHEL 9 web console.
- Click Storage.
- In the Storage table, click the volume group to which you want to add physical drives.
- On the LVM2 volume group page, click .
- In the Add Disks dialog box, select the preferred drives and click .
Verification steps
- On the LVM2 volume group page, check the Physical volumes section to verify whether the new physical drives are available in the volume group.
22.2. Removing physical drives from volume groups in the web console
If a logical volume includes multiple physical drives, you can remove one of the physical drives online.
The system moves automatically all data from the drive to be removed to other drives during the removal process. Notice that it can take some time.
The web console also verifies, if there is enough space for removing the physical drive.
Prerequisites
- A volume group with more than one physical drive connected.
Procedure
- Log in to the RHEL 9 web console.
- Click Storage.
- In the Storage table, click the volume group to which you want to add physical drives.
- On the LVM2 volume group page, scroll to the Physical volumes section.
- Click the menu button, , next to the physical volume you want to remove.
From the drop-down menu, select
.The RHEL 9 web console verifies whether the logical volume has enough free space to removing the disk. If there is no free space to transfer the data, you cannot remove the disk and you must first add another disk to increase the capacity of the volume group. For details, see Adding physical drives to logical volumes in the web console.