Bug#774082: systemd: system with LVM and lvmetad does not bot after upgrade to jessie

Michael Biebl biebl at debian.org
Thu Apr 23 09:53:13 UTC 2015


Am 23.04.2015 um 11:40 schrieb Peter Rajnoha:
> On 04/23/2015 11:04 AM, Michael Biebl wrote:
>> Looking at the udev rule shipped by Debian's lvm2 package, it has:
>>
>> 69-lvm-metad.rules:ACTION!="remove", ENV{LVM_PV_GONE}=="1",
>> RUN+="/bin/systemd-run /sbin/lvm pvscan --cache $major:$minor",
>> GOTO="lvm_end"
>>
> 
> That rule is to cover immediate removal of the PV by erasing
> it's PV header directly (e.g. by running "dd"). So when the
> device is still in the system, but it loses the PV abruptly.
> 
> In systemd environment, there should also be this rule
> which updates lvmetad for each new PV that appears in the system:
> 
>   ENV{SYSTEMD_WANTS}="lvm2-pvscan@$major:$minor.service"

Debian's lvm2 package is currently at version 2.02.111.

69-lvm-metad.rules contains that line above.
I just tried in a VM with lvmetad enabled.

A service lvm2-pvscan at 8:35.service is started, but not all LVs are
activated. lvscan says:

$ lvscan
 inactive '/dev/vg0/test1' ...
 ACTIVE   '/dev/vg/big'

vg0 is hosted on a /dev/md0 (mdadm RAID1).

> Make sure lvm2 is compiled with "--enable-udev-systemd-background-jobs",
> this one is used by default since lvm2 v2.02.115, but you
> need to enable that explicitly for previous versions... Otherwise
> there would be a rule like:

I can't find this configure flag in the Debian package.
So I assume the package was compiled without it? On the other hand, I
have the SYSTEMD_WANTS rule you described above. So now I'm a bit confused.

> RUN+="$env{LVM_SBIN_PATH}/lvm pvscan --background --cache --activate ay
> --major $major --minor $minor", ENV{LVM_SCANNED}="1"

I don't have this rule in 69-lvm-metad.rules




-- 
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-lvm-maintainers/attachments/20150423/5cd7c639/attachment-0001.sig>


More information about the pkg-lvm-maintainers mailing list