[PVE-User] LVM autoactivation failed with multipath over iSCSI

Stefan M. Radman smr at kmi.com
Mon Feb 3 11:46:45 CET 2020


Hi Marco

Thanks for the suggestion.

I tried putting After=multipathd.service into lvm2-pvescan.service but that did not help.
It just started the multipathd.service before lvm2-pvescan.service but did not wait for discovery to finish.

That lvm2-pvscan.service Wants=multipathd.service is probably not really true because lvm2-pvscan.service will happily run without multipathd.service.
Creating such a dependency is usually not a good idea and it is not needed because the multipathd.service does start.
In such a case After= should be enough but isn't in this case (see above).

It seems to be a timing problem after all.

Stefan


> On Feb 3, 2020, at 11:20, Marco Gaiarin <gaio at sv.lnf.it> wrote:
>
> Mandi! Stefan M. Radman via pve-user
>  In chel di` si favelave...
>
>> My own workaround for the issue at hand is to delay the start of lvm2-pvscan by a few seconds (see below).
>> That gives multipathd more than enough time to complete its job.
>> It solves the problem for me (at least until the next upgrade) but there might be a smarter solution.
>
> Would be better to make 'lvm2-pvscan' service depends on 'multipathd'?
> Something like (NOT TESTED!) adding in:
>
> /etc/systemd/system/lvm2-pvscan.service.d/wait-multipath.conf
>
> the rows:
> [Unit]
> After=multipathd.service
> Wants=multipathd.service
>
> --
> dott. Marco Gaiarin        GNUPG Key ID: 240A3D66
>  Associazione ``La Nostra Famiglia''          https://nam04.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.lanostrafamiglia.it%2F&data=02%7C01%7Csmr%40kmi.com%7C514880708d424324a25608d7a892cfad%7Cc2283768b8d34e008f3d85b1b4f03b33%7C0%7C0%7C637163220838442358&sdata=F9DvF%2B1O5WHXn89rACg7BmlSqaVR3ysx9aVLSZPoOX4%3D&reserved=0
>  Polo FVG   -   Via della Bontà, 7 - 33078   -   San Vito al Tagliamento (PN)
>  marco.gaiarin(at)lanostrafamiglia.it   t +39-0434-842711   f +39-0434-842797
>
> Dona il 5 PER MILLE a LA NOSTRA FAMIGLIA!
>      https://nam04.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.lanostrafamiglia.it%2Findex.php%2Fit%2Fsostienici%2F5x1000&data=02%7C01%7Csmr%40kmi.com%7C514880708d424324a25608d7a892cfad%7Cc2283768b8d34e008f3d85b1b4f03b33%7C0%7C0%7C637163220838442358&sdata=wBdJSGLQTXWbjunsWHatsVqaAtEj80Zik5dOWvUelhg%3D&reserved=0
> (cf 00307430132, categoria ONLUS oppure RICERCA SANITARIA)
> _______________________________________________
> pve-user mailing list
> pve-user at pve.proxmox.com
> https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fpve.proxmox.com%2Fcgi-bin%2Fmailman%2Flistinfo%2Fpve-user&data=02%7C01%7Csmr%40kmi.com%7C514880708d424324a25608d7a892cfad%7Cc2283768b8d34e008f3d85b1b4f03b33%7C0%7C0%7C637163220838442358&sdata=DhEWzJ4BAWQkYsB0VctfAYGf6P6XX%2B508GLSSQCcWW8%3D&reserved=0


CONFIDENTIALITY NOTICE: This communication may contain privileged and confidential information, or may otherwise be protected from disclosure, and is intended solely for use of the intended recipient(s). If you are not the intended recipient of this communication, please notify the sender that you have received this communication in error and delete and destroy all copies in your possession.


More information about the pve-user mailing list