<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><br><br><div dir="ltr">Envoyé de mon iPhone</div><div dir="ltr"><br>Début du message transféré :<br><br></div><blockquote type="cite"><div dir="ltr"><b>Expéditeur:</b> Christophe NOUVEL <christophe.nouvel@gmail.com><br><b>Date:</b> 27 janvier 2020 à 15:17:06 UTC+1<br><b>Destinataire:</b> Roland Kammerer <roland.kammerer@linbit.com><br><b>Objet:</b> <b>Rép: [DRBD-user] [proxmox 5.4]Cannot create VM, cannot restore : timeout linstor sp l...</b><br><br></div></blockquote><blockquote type="cite"><div dir="ltr"><div dir="ltr"><div>Hi,</div><div><br></div><div>pvs, lvs and vgs are fast on both nodes :</div><div><br></div><div>[root@px1:~]# time pvs<br> PV VG Fmt Attr PSize PFree<br> /dev/sda3 pve lvm2 a-- 277.96g 16.00g<br> /dev/sdb1 vg_drbd lvm2 a-- 4.54t 3.59t<br><br>real 0m0.059s<br>user 0m0.005s<br>sys 0m0.013s<br>[root@px1:~]# time vgs<br> VG #PV #LV #SN Attr VSize VFree<br> pve 1 3 0 wz--n- 277.96g 16.00g<br> vg_drbd 1 3 0 wz--n- 4.54t 3.59t<br><br>real 0m0.020s<br>user 0m0.005s<br>sys 0m0.012s<br>[root@px1:~]# time lvs<br> LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert<br> data pve twi-a-tz-- 181.02g 0.00 0.89<br> root pve -wi-ao---- 69.25g<br> swap pve -wi-ao---- 8.00g<br> vm-100102-disk-1_00000 vg_drbd -wi-ao---- 910.21g<br> vm-100104-disk-1_00000 vg_drbd -wi-ao---- 32.01g<br> vm-100106-disk-1_00000 vg_drbd -wi-ao---- 32.01g<br><br>real 0m0.051s<br>user 0m0.009s<br>sys 0m0.008s</div><div><br></div><div><br></div><div>Same times for second node.</div><div><br></div><div>Only one line has been modified in lvm.conf on each node :</div><div>[root@px2:~]# diff /etc/lvm/lvm.conf /etc/lvm/lvm.conf.orig<br>129,130c129<br>< global_filter = [ "r|/dev/zd.*|", "r|/dev/mapper/pve-.*|", "r|/dev/drbd.*|" ]<br>< # global_filter = [ "r|/dev/zd.*|", "r|/dev/mapper/pve-.*|" ]<br>---<br>> global_filter = [ "r|/dev/zd.*|", "r|/dev/mapper/pve-.*|" ]<br></div><div><br></div><div><br></div><div>All was working ok before resize...</div><div><br></div><div> Christophe.<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Le lun. 27 janv. 2020 à 11:35, Roland Kammerer <<a href="mailto:roland.kammerer@linbit.com">roland.kammerer@linbit.com</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Mon, Jan 27, 2020 at 10:19:31AM +0100, Christophe NOUVEL wrote:<br>
> We noticed long response time when :<br>
> linstor sp pl<br>
<br>
And that is the root cause for the plugin timeout.<br>
<br>
> An strace give a long wait (20s) to :<br>
> sendto(3, "GET /v1/view/storage-pools HTTP/"..., 153, 0, NULL, 0) = 153<br>
> poll([{fd=3, events=POLLIN}], 1, 300000<br>
> <br>
> Any idea?<br>
<br>
Best guess is that LVM is very slow on at least one of your nodes. Just<br>
try 'lvs' on all of them. If this is already slow (yes, I see that *a*<br>
*lot*), then properly configure your LVM (by setting some filters in<br>
lvm.conf).<br>
<br>
Regards, rck<br>
_______________________________________________<br>
Star us on GITHUB: <a href="https://github.com/LINBIT" rel="noreferrer" target="_blank">https://github.com/LINBIT</a><br>
drbd-user mailing list<br>
<a href="mailto:drbd-user@lists.linbit.com" target="_blank">drbd-user@lists.linbit.com</a><br>
<a href="https://lists.linbit.com/mailman/listinfo/drbd-user" rel="noreferrer" target="_blank">https://lists.linbit.com/mailman/listinfo/drbd-user</a><br>
</blockquote></div>
</div></blockquote></body></html>