<div><br><div class="gmail_quote"><div dir="auto">On Wed, Oct 4, 2017 at 4:12 AM Nicolas Ecarnot <<a href="mailto:nicolas@ecarnot.net">nicolas@ecarnot.net</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Adam,<br>
<br>
TL;DR : You nailed it!</blockquote><div dir="auto"><br></div><div dir="auto">Great! Glad you're back up and running. One additional note about LVM commands. It's dangerous to use lvmetad for some commands while vdsm is running since it will not use lvmetad. You could end up with conflicting operations. In general it's safest to not issue any lvm commands while the host is activated but if you must, don't forget to disable lvmetad for all commands. </div><div dir="auto"><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
<br>
Le 03/10/2017 à 18:12, Adam Litke a écrit :<br>
> Does this report an error on the host where you are having problems<br>
> activating logical volumes?<br>
><br>
> lvs -a -o +devices<br>
<br>
On the hosts where I can't activate a LV, this command returns nothing<br>
interesting :<br>
<br>
root@serv-hv-prd03:~# lvs -a -o +devices<br>
LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync<br>
Convert Devices<br>
home cl -wi-ao---- 56,25g<br>
/dev/sda2(1024)<br>
root cl -wi-ao---- 50,00g<br>
/dev/sda2(15423)<br>
swap cl -wi-ao---- 4,00g<br>
/dev/sda2(0)<br>
<br>
and so goes for pvs and vgs.<br>
<br>
><br>
> Also, do the lvm commands succeed when you explicitly disable lvmetad, ie...<br>
><br>
> lvchange --config 'global {use_lvmetad=0}' -ay ...<br>
<br>
Disabling lvmetad usage allows the activation to succeed.<br>
<br>
Having understand that, I tried to run some usual LVM commands like pvs<br>
vgs, lvs, pvscan, vgscan, lvscan, lvmdiskscan, and they all returned<br>
some quite empty answers (to be short : only the local LV).<br>
<br>
Having understood the role of lvmetd, I ran pcscan --cache, and all in a<br>
sudden it filled up the LVM informations : I found back all my oVirt LVM<br>
storage domains, as I could see on other hosts.<br>
<br>
Things to note :<br>
- trying to run a VM on empty LVM cache was nonetheless successful<br>
- before filling the lvmetad cache, I checked this daemon was running<br>
and it was.<br>
<br>
<br>
<br>
--<br>
Nicolas ECARNOT<br>
</blockquote></div></div><div dir="ltr">-- <br></div><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">Adam Litke</div></div>