<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Fri, Mar 10, 2017 at 11:54 PM, Nir Soffer <span dir="ltr"><<a href="mailto:nsoffer@redhat.com" target="_blank">nsoffer@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span class="gmail-">On Fri, Mar 10, 2017 at 6:24 PM, Gianluca Cecchi<br>
<<a href="mailto:gianluca.cecchi@gmail.com">gianluca.cecchi@gmail.com</a>> wrote:<br>
> Hello,<br>
> on my 4.1 environment sometimes I get this kind of message, typically when I<br>
> create a snapshot.<br>
> Please note that the snapshot is correctly created: I get the event between<br>
> the snapshot creation initiated and completed events<br>
><br>
><br>
> VDSM ovmsrv05 command TeardownImageVDS failed: Cannot deactivate Logical<br>
> Volume: ('General Storage Exception: ("5 [] [\' WARNING: Not using lvmetad<br>
> because config setting use_lvmetad=0.\', \' WARNING: To avoid corruption,<br>
> rescan devices to make changes visible (pvscan --cache).\', \' Logical<br>
> volume<br>
> 922b5269-ab56-4c4d-838f-<wbr>49d33427e2ab/79350ec5-eea5-<wbr>458b-a3ee-ba394d2cda27 in<br>
> use.\', \' Logical volume<br>
> 922b5269-ab56-4c4d-838f-<wbr>49d33427e2ab/3590f38b-1e3b-<wbr>4170-a901-801ee5d21d59 in<br>
> use.\']\\n922b5269-ab56-4c4d-<wbr>838f-49d33427e2ab/[\'3590f38b-<wbr>1e3b-4170-a901-801ee5d21d59\',<br>
> \'79350ec5-eea5-458b-a3ee-<wbr>ba394d2cda27\']",)',)<br>
><br>
> What is the exact meaning and how can I crosscheck to solve the possible<br>
> anomaly...?<br>
> What about lvmetad reference inside the message? Is it an option that in<br>
> oVirt can be configured or not at all for now?<br>
<br>
</span>Can you share the output of:<br>
<br>
lvs -o vg_name,lv_name,size,attr,<wbr>devices<br>
vgs -o vg_name,pv_name<br>
<br>
After you get this error.<br>
<br>
lvmetad is not compatible with ovirt shared storage, this is why you get these<br>
warnings.<br>
<br>
It is disabled in latest 4.1.<br>
<br>
If you don't want to wait for the release, you can disable it now:<br>
<br>
systemctl mask lvm2-lvmetad.service lvm2-lvmetad.socket<br>
systemctl disable lvm2-lvmetad.service lvm2-lvmetad.socket<br>
systemctl stop lvm2-lvmetad.service lvm2-lvmetad.socket<br>
<br>
Edit /etc/lvm/lvm.conf and set:<br>
<br>
use_lvmetad = 0<br>
<br>
Please report if you still get errors about "Logical volume xxx/yyy in use"<br>
after disabling lvmetad. If you do, please file a bug.<br>
<span class="gmail-HOEnZb"><font color="#888888"><br>
Nir<br>
</font></span></blockquote></div><br></div><div class="gmail_extra">Hello,</div><div class="gmail_extra">I didn't get chance to make the requested commands on the former FC SAN domain.</div><div class="gmail_extra">But now I'm getting the same on an iSCSI one I'm testing...</div><div class="gmail_extra">So here the details</div><div class="gmail_extra"><br></div><div class="gmail_extra">both engine and host in 4.1.1 </div><div class="gmail_extra">I don't get the lvmetad part in error message, possibly has been removed in 4.1.1 in respect with 4.1 above?</div><div class="gmail_extra"><br></div><div class="gmail_extra">I got this while creating a snapshot of a running VM</div><div class="gmail_extra"><br></div><div class="gmail_extra"><div class="gmail_extra">Apr 4, 2017 2:22:49 PM Snapshot 'test' creation for VM 'Oracle7_IMPORTED' has been completed.</div><div class="gmail_extra"><br></div><div class="gmail_extra">Apr 4, 2017 2:22:49 PM VDSM ov300 command TeardownImageVDS failed: Cannot deactivate Logical Volume: ('General Storage Exception: ("5 [] [\' Logical volume 94795322-92a7-4904-80c1-83d6b629d38a/564ef695-a6cf-4425-a44f-101fa6bc11e4 in use.\', \' Logical volume 94795322-92a7-4904-80c1-83d6b629d38a/0441718e-13ce-4562-b69e-74cee0972083 in use.\']\\n94795322-92a7-4904-80c1-83d6b629d38a/[\'0441718e-13ce-4562-b69e-74cee0972083\', \'564ef695-a6cf-4425-a44f-101fa6bc11e4\']",)',)</div><div class="gmail_extra"><br></div><div class="gmail_extra">Apr 4, 2017 2:22:36 PM VDSM ov300 command TeardownImageVDS failed: Cannot deactivate Logical Volume: ('General Storage Exception: ("5 [] [\' Logical volume 94795322-92a7-4904-80c1-83d6b629d38a/845a9008-8ece-4cf2-9828-f286640b5f0e in use.\', \' Logical volume 94795322-92a7-4904-80c1-83d6b629d38a/ecdc6fc6-629a-43a7-a756-48b6ee695b19 in use.\']\\n94795322-92a7-4904-80c1-83d6b629d38a/[\'ecdc6fc6-629a-43a7-a756-48b6ee695b19\', \'845a9008-8ece-4cf2-9828-f286640b5f0e\']",)',)</div><div class="gmail_extra"><br></div><div class="gmail_extra">Apr 4, 2017 2:21:57 PM Snapshot 'test' creation for VM 'Oracle7_IMPORTED' was initiated by g.cecchi@internal-authz.</div><div class="gmail_extra"><br></div><div class="gmail_extra"><br></div><div class="gmail_extra"><div class="gmail_extra">[root@ov300 vdsm]# lvs -o vg_name,lv_name,size,attr,devices</div><div class="gmail_extra"> VG LV LSize Attr Devices </div><div class="gmail_extra"> 94795322-92a7-4904-80c1-83d6b629d38a 0441718e-13ce-4562-b69e-74cee0972083 4.00g -wi-ao---- /dev/mapper/364817197b5dfd0e5538d959702249b1c(713)</div><div class="gmail_extra"> 94795322-92a7-4904-80c1-83d6b629d38a 564ef695-a6cf-4425-a44f-101fa6bc11e4 8.00g -wi-ao---- /dev/mapper/364817197b5dfd0e5538d959702249b1c(41) </div><div class="gmail_extra"> 94795322-92a7-4904-80c1-83d6b629d38a 845a9008-8ece-4cf2-9828-f286640b5f0e 72.00g -wi-ao---- /dev/mapper/364817197b5dfd0e5538d959702249b1c(105)</div><div class="gmail_extra"> 94795322-92a7-4904-80c1-83d6b629d38a c306d9e1-dcd2-47fc-9500-4e5f9ff3aee3 128.00m -wi------- /dev/mapper/364817197b5dfd0e5538d959702249b1c(39) </div><div class="gmail_extra"> 94795322-92a7-4904-80c1-83d6b629d38a c424dad7-ce65-47c3-a517-f3294745bc63 128.00m -wi------- /dev/mapper/364817197b5dfd0e5538d959702249b1c(40) </div><div class="gmail_extra"> 94795322-92a7-4904-80c1-83d6b629d38a ecdc6fc6-629a-43a7-a756-48b6ee695b19 4.00g -wi-ao---- /dev/mapper/364817197b5dfd0e5538d959702249b1c(681)</div><div class="gmail_extra"> 94795322-92a7-4904-80c1-83d6b629d38a ids 128.00m -wi-ao---- /dev/mapper/364817197b5dfd0e5538d959702249b1c(29) </div><div class="gmail_extra"> 94795322-92a7-4904-80c1-83d6b629d38a inbox 128.00m -wi-a----- /dev/mapper/364817197b5dfd0e5538d959702249b1c(30) </div><div class="gmail_extra"> 94795322-92a7-4904-80c1-83d6b629d38a leases 2.00g -wi-a----- /dev/mapper/364817197b5dfd0e5538d959702249b1c(13) </div><div class="gmail_extra"> 94795322-92a7-4904-80c1-83d6b629d38a master 1.00g -wi-ao---- /dev/mapper/364817197b5dfd0e5538d959702249b1c(31) </div><div class="gmail_extra"> 94795322-92a7-4904-80c1-83d6b629d38a metadata 512.00m -wi-a----- /dev/mapper/364817197b5dfd0e5538d959702249b1c(0) </div><div class="gmail_extra"> 94795322-92a7-4904-80c1-83d6b629d38a outbox 128.00m -wi-a----- /dev/mapper/364817197b5dfd0e5538d959702249b1c(4) </div><div class="gmail_extra"> 94795322-92a7-4904-80c1-83d6b629d38a xleases 1.00g -wi-a----- /dev/mapper/364817197b5dfd0e5538d959702249b1c(5) </div><div class="gmail_extra"> cl root 119.12g -wi-ao---- /dev/sda2(0) </div><div class="gmail_extra"> cl swap 16.00g -wi-ao---- /dev/sda2(30495) </div><div class="gmail_extra">[root@ov300 vdsm]# </div><div><br></div><div><br></div><div><div>[root@ov300 vdsm]# vgs -o vg_name,pv_name</div><div> VG PV </div><div> 94795322-92a7-4904-80c1-83d6b629d38a /dev/mapper/364817197b5dfd0e5538d959702249b1c</div><div> cl /dev/sda2 </div></div><div><br></div></div><div class="gmail_extra">BTW: when I try to go in web admin gui to catch all the text to copy and paste it, the only point I get is is going directly under the top level "system", otherwise the 2 lines related to VDSM are not displayed..</div><div class="gmail_extra">is it correct, expected?</div><div class="gmail_extra"><br></div><div class="gmail_extra">Thanks for any help</div><div class="gmail_extra">Gianluca</div></div></div>