Deleting LVM Pools

Running ubuntu Mate 24.04 and LVM version: 2.03.16(2) (2022-05-18)

Due to my ignorance I have created multiple lvm pools over time as I have created and deleted virtual machines. At the moment I have these LVs:

dad@dadubuntu:~$ sudo lvdisplay— Logical volume —LV Path                /dev/vg01/rootLV Name                rootVG Name                vg01LV UUID                vCHy0K-hkyJ-3zEY-jaQh-Ibrh-SHlH-bHIACfLV Write Access        read/writeLV Creation host, time ubuntu-mate, 2025-05-28 15:01:43 +0100LV Status              available
open                 1
LV Size                100.00 GiBCurrent LE             25600Segments               2Allocation             inheritRead ahead sectors     auto
  • currently set to     256Block device           252:0
    
— Logical volume —LV Path                /dev/vg01/homeLV Name                homeVG Name                vg01LV UUID                z1Aadu-Y4xb-JnJR-IuAB-WsHD-nl3C-g3QwpmLV Write Access        read/writeLV Creation host, time ubuntu-mate, 2025-05-28 15:02:50 +0100LV Status              available
open                 1
LV Size                400.00 GiBCurrent LE             102400Segments               1Allocation             inheritRead ahead sectors     auto
  • currently set to     256Block device           252:1
    
— Logical volume —LV Path                /dev/vg01/ubserverLV Name                ubserverVG Name                vg01LV UUID                yWXSBZ-J7Cn-vBpR-3qo8-UUsL-r025-9Mn6QKLV Write Access        read/writeLV Creation host, time dadubuntu, 2025-11-16 09:01:02 +0000LV Status              available
open                 0
LV Size                60.00 GiBCurrent LE             15360Segments               1Allocation             inheritRead ahead sectors     auto
  • currently set to     256Block device           252:2
    
— Logical volume —LV Path                /dev/vg01/ubuntu24.04LV Name                ubuntu24.04VG Name                vg01LV UUID                S031Uh-kZdR-F9Vq-Llsp-cgnD-QU1q-m7RvonLV Write Access        read/writeLV Creation host, time dadubuntu, 2025-12-02 16:39:45 +0000LV Status              available
open                 0
LV Size                75.00 GiBCurrent LE             19200Segments               2Allocation             inheritRead ahead sectors     auto
  • currently set to     256Block device           252:3
    
— Logical volume —LV Path                /dev/vg01/win11LV Name                win11VG Name                vg01LV UUID                M1wTnd-wCe5-tiTt-AgoP-IALR-qehe-W38cZxLV Write Access        read/writeLV Creation host, time dadubuntu, 2026-01-25 12:13:09 +0000LV Status              available
open                 0
LV Size                100.00 GiBCurrent LE             25600Segments               1Allocation             inheritRead ahead sectors     auto
  • currently set to     256Block device           252:4
    

Obviously /dev/vg01/root and /dev/vg01/home are crucial to my system and to a large degree so is /dev/vg01/ubserver. The other VMs are temporary for various reasons. Attached are just two of my pools - each showing the same Volumes. My question is:

a. It is worth/possible to clean up these multiple pools - so having just one pool referencing all the volumes?

b. At the moment my understanding is that these pools are just small files in /etc/libvirt/storage/ so I might as well leave it ‘as is’. Perhaps I’m wrong - is there more to a ‘pool’ than just these small xml files?

Any advice appreciated.

1 Like

I’ve removed an unwanted pool in the past from the virt-manager list by using the virsh terminal command. I looked back at my logs for an entry when I did that, and the terminal command I used was:

sudo virsh pool-destroy poolname

You can then create a new pool(s) to better organize.

Some other commands that are useful:

list all vms:
sudo virsh list --all

list all pools:
sudo virsh pool-list

list pools of logical storage (lvm) type
sudo virsh pool-list logical

list pools of file type storage
sudo virsh pool-list dir

For complete list of the virsh commands (there are many) and what they do, see the man page of virsh.

2 Likes