Hello
We have a server running some virtual machines with KVM. Someone else set it up some time ago, and it's working. I just added a nvme ssd, and the plan is to use it for some databases on some of the virtual machines.
The problem is, I cannot figure out how to add it to virt-manager. It already has a pool called "guest_lvm", and we just allocate disk space to the virtual machines using virt-manager.
I created a pv and a vg using cli:
Code:
pvdisplay
--- Physical volume ---
PV Name /dev/nvme1n1
VG Name guest_ssd
PV Size <1.82 TiB / not usable <1.09 MiB
Allocatable yes
PE Size 4.00 MiB
Total PE 476932
Free PE 476932
Allocated PE 0
PV UUID EcmwIf-o5HF-N2c4-JEUG-rq25-bInP-5RpAFf
--- Physical volume ---
PV Name /dev/md1
VG Name guest_lvm
PV Size 5.43 TiB / not usable 4.00 MiB
Allocatable yes
PE Size 4.00 MiB
Total PE 1423558
Free PE 915654
Allocated PE 507904
PV UUID ePVfVW-xlzr-ZtPu-eBwa-RQIe-szam-P7g2sL
vgscan
Reading all physical volumes. This may take a while...
Found volume group "guest_ssd" using metadata type lvm2
Found volume group "guest_lvm" using metadata type lvm2
When I use virt-manager GUI, I click on "Create new storage pool". I write a name, and select "LVM volume group" and click next. On this page, I can select target path and source path. And "Browse" let me select things in /dev, but I don't see guest_ssd here. If I leave source path empty, I get an error message "Storage source conflict with pool: guest_lvm".
I never set up such things before, and I might have done something wrong or maybe missing a step. Then plan is to have both guest_lvm (spinning disks) and guest_ssd (ssd), and be able to grow with more disks if needed.
Anyone know how to do this - either using the GUI or CLI - so it's available in the GUI virt-manager?