LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 11-21-2022, 06:15 AM   #1
Guttorm
Senior Member
 
Registered: Dec 2003
Location: Trondheim, Norway
Distribution: Debian and Ubuntu
Posts: 1,453

Rep: Reputation: 448Reputation: 448Reputation: 448Reputation: 448Reputation: 448
virt-manager and lvm question


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?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: How to Install and Use virt-manager Virtual Machine Manager in Ubuntu and Other Linux LXer Syndicated Linux News 0 11-11-2020 10:12 PM
[SOLVED] installing virt-manager and virt-viewer on desktop for managing remote server yvesjv Slackware 4 04-24-2019 03:00 PM
Virsh/Virt-Manager/Virt-Install broken after upgrade to Xubuntu 17.10 Zabzoo Linux - Desktop 2 02-01-2018 08:05 AM
LXer: Hacking libvirt/virsh/virt-manager/virt-install at Xen 4.0 Dom0 on top of Ubunt LXer Syndicated Linux News 0 05-06-2010 02:50 PM
LXer: Virt-install&Virt-manager at Xen 4.0-rc8 (2.6.32.10 pvops) Dom0 on top Ubuntu K LXer Syndicated Linux News 0 03-26-2010 09:41 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 02:25 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration