Remove Physical Drive From Volume Group
When a physical disk is no longer in use, Cockpit administrators can use the Storage page in the web console to remove the disk volume from the volume group.
What Do You Need?
- The Cockpit web console must be installed and accessible.
For details, see these topics: Install and Enable Cockpit and Log in to the Cockpit Web Console.
- The
cockpit-storaged
package must be installed.Note:
If thecockpit-storaged
package isn't installed, see this section Install and Manage Add-on Applications - An existing volume group configuration on the host system that has more than one
physical drive.
Note:
You can't remove the last physical drive of a volume group.For more information about removing physical volumes, see Creating and Managing Volume Groups in Oracle Linux 9: Managing Local File Systems or Oracle Linux 9: Managing Storage Devices.
- A physical drive volume that isn't in use by any of the logical volumes in the volume group.
- Administrator privileges.
Steps
Using the Cockpit web console, follow these steps to rename a volume group.
- In the Storage page, find the Devices table and select the volume
group that contains an unused physical drive volume.
The LVM2 group [name] page appears.
- In the LVM2 group [name] page, navigate to the Physical volumes table.
- In the Physical volumes table, click the minus
[-] sign icon next to the unused physical disk volume.
One of the following occurs:
- If LVM detects it's the last disk volume in the volume group, a message appears
indicating that it's the last disk volume in the volume group and it can't be
removed.
-OR-
- If LVM detects the disk volume is in use, a message appears indicating that the
disk volume is in use, and it can't be removed.
-OR-
- The Remove Physical Volume dialog appears.
- If LVM detects it's the last disk volume in the volume group, a message appears
indicating that it's the last disk volume in the volume group and it can't be
removed.
- In the Remove Physical Volume dialog, click
Remove.
LVM removes the unused disk volume and shrinks the storage capacity of the volume group without loss of data.