Bug 1190910 - ThinVolume usage causes libvirt deactivation of the storage pool based on the LVM Volume Group
Summary: ThinVolume usage causes libvirt deactivation of the storage pool based on the...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Virtualization Tools
Classification: Community
Component: libvirt
Version: unspecified
Hardware: x86_64
OS: Linux
unspecified
unspecified
Target Milestone: ---
Assignee: Libvirt Maintainers
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-02-09 23:54 UTC by Peter Larsen
Modified: 2016-04-12 21:36 UTC (History)
15 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-04-12 21:36:14 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1060287 0 unspecified CLOSED RFE: support pools of thin lvm 2023-03-08 22:42:39 UTC

Internal Links: 1060287

Description Peter Larsen 2015-02-09 23:54:16 UTC
Description of problem:

With a storage pool defined on a Volume Group - having a ThinPool provisioned causes libvirt to fail and deactivate the group.

Feb 09 17:58:50 plarsen.peterlarsen.org libvirtd[2255]: cannot stat file '/dev/fedora/novalugThinPool': No such file or directory
Feb 09 17:58:55 plarsen.peterlarsen.org libvirtd[2255]: internal error: Child process (/usr/sbin/vgchange -aln fedora) unexpected exit status 5:   Logical volu
                                                          Can't deactivate volume group "fedora" with 6 open logical volume(s)
Feb 09 17:58:59 plarsen.peterlarsen.org libvirtd[2255]: metadata not found: Requested metadata element is not present
Feb 09 18:00:00 plarsen.peterlarsen.org libvirtd[2255]: cannot stat file '/dev/fedora/novalugThinPool': No such file or directory
Feb 09 18:00:05 plarsen.peterlarsen.org libvirtd[2255]: internal error: Child process (/usr/sbin/vgchange -aln fedora) unexpected exit status 5:   Logical volu
                                                          Can't deactivate volume group "fedora" with 6 open logical volume(s)
Feb 09 18:00:31 plarsen.peterlarsen.org libvirtd[2255]: End of file while reading data: Input/output error
Feb 09 18:00:31 plarsen.peterlarsen.org libvirtd[2255]: End of file while reading data: Input/output error
Feb 09 18:00:31 plarsen.peterlarsen.org libvirtd[2255]: End of file while reading data: Input/output error

$ sudo lvs
[sudo] password for plarsen: 
  LV              VG     Attr       LSize   Pool            Origin Data%  Move Log Cpy%Sync Convert
  home            fedora -wi-ao----  63.71g                                                        
  iso             fedora -wi-ao----  75.00g                                                        
  novalug-disk1   fedora -wi-a-----  10.00g                                                        
  novalug-disk2   fedora -wi-a-----  10.00g                                                        
  novalugDisk1    fedora Vwi-a-tz--  50.00g novalugThinPool          0.00                          
  novalugDisk2    fedora Vwi-a-tz--  50.00g novalugThinPool          0.00                          
  novalugDisk3    fedora Vwi-a-tz--  50.00g novalugThinPool          0.00                          
  novalugDisk4    fedora Vwi-a-tz--  50.00g novalugThinPool          0.00                          
  novalugDisk5    fedora Vwi-a-tz--  50.00g novalugThinPool          0.00                          
  novalugThinPool fedora twi-a-tz--  20.00g                          0.00                          
  root            fedora -wi-ao----  50.00g                                                        
  swap            fedora -wi-ao----   7.61g                                                

Version-Release number of selected component (if applicable):

Fedora 20
$ rpm -q libvirt
libvirt-1.1.3.8-1.fc20.x86_64


How reproducible:

Every time

Steps to Reproduce:
1. Create a storage pool based on an LVM Volume Group
2. Create ThinPool in volume group
3. Create "Virtual" (thin provisioned) logical volumes
4. run virsh or virt-manager and try to access the storage pool. It's offline. Errors as above is in the error log.

# vgcreate fedora /dev/<devices>
# lvcreate -n novalugThinPool -T -L 20g fedora
# lvcreate -T -n novalugDisk1 --virtualSize 50G fedora/novalugThinPool
# lvcreate -T -n novalugDisk2 --virtualsize 50G fedora/novalugThinPool
# lvcreate -T -n novalugDisk3 --virtualsize 50G fedora/novalugThinPool
# lvcreate -T -n novalugDisk4 --virtualsize 50G fedora/novalugThinPool


Actual results:

LVs create just fine, but libvirt fails.

Expected results:

libvirt should show the 4 thin provisioned logical volumes, and not show the ThinPool volume. 

Additional info:

Comment 1 Ján Tomko 2015-02-10 09:46:11 UTC
This won't be fixed in F20, moving to the upstream tracker.

Comment 2 Orion Poplawski 2016-04-12 21:11:00 UTC
Is there any progress here?

Comment 3 Orion Poplawski 2016-04-12 21:36:14 UTC
With some local testing this appears to be fixed in libvirt-1.2.17-13.el7_2.4.x86_64


Note You need to log in before you can comment on or make changes to this bug.