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 <[email protected]>
>> 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@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@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         [email protected]
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


-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to