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

Vincent Danjean vdanjean at debian.org
Thu Apr 23 11:27:03 UTC 2015


Le 23/04/2015 11:22, Peter Rajnoha a écrit :
> On 04/23/2015 10:57 AM, Michael Biebl wrote:
>> On Fri, 02 Jan 2015 12:13:06 +0100 Peter Rajnoha <prajnoha at redhat.com>
>> Vincent, looks like you weren't CCed, so you didn't get the message.

Thanks. I forgot to subscribe to this bug but this is fixed now.

I've read all your messages that give very interesting information.

For the record, since my bug report, I work around this bug
on my system. If you remember, I've LVM on RAID on LVM.
I added this file in my system:
===============
vdanjean at aya:/etc/systemd/system$ cat local-fs.target.wants/fix-start.service
[Unit]
Description=Fix start of lvm/raid/lvm
DefaultDependencies=no
After=systemd-udev-settle.service
Before=cryptsetup.target local-fs.target shutdown.target
Wants=systemd-udev-settle.service

[Service]
ExecStart=/root/start.sh
Type=oneshot

[Install]
WantedBy=local-fs.target
================
with the script being:
================
vdanjean at aya:/etc/systemd/system$ cat /root/start.sh
#!/bin/bash

set -x

while test $(ls -1 /dev/md?* 2>/dev/null | wc -l) = 0 ; do
	sleep 2
done

re-pvscan() {
	for d in $(ls -l /dev/md?* | awk '{print $5, $6}' | sed -e 's/, /:/') ; do
		/sbin/lvm pvscan --cache $d
	done
	sleep 5
}
re-pvscan
while vgchange -ay | grep Refusing ; do
	re-pvscan
done
================
I.e., I manually invoke pvscan on RAID md device until all is there.

I think the fixes you are working on will be a proper fix.

  Regards,
    Vincent


-- 
Vincent Danjean       GPG key ID 0xD17897FA         vdanjean at debian.org
GPG key fingerprint: 621E 3509 654D D77C 43F5  CA4A F6AE F2AF D178 97FA
Unofficial pkgs: http://moais.imag.fr/membres/vincent.danjean/deb.html
APT repo:  deb http://people.debian.org/~vdanjean/debian unstable main



More information about the pkg-lvm-maintainers mailing list