On 05/03/2018 06:35 PM, Jim Simmons wrote:
In journalctl, I see this and I think it is the problem:
WARNING: PV W0e1Cx-ByMA-iRX6-OGxr-KfWC-zaUP-YXWgW5 on /dev/sdb8 was
already found on sda8.
WARNING: PV W0e1Cx-ByMA-iRX6-OGxr-KfWC-zaUP-YXWgW5 on /dev/md127 was
already found on sda8.
WARNING: PV W0e1Cx-ByMA-iRX6-OGxr-KfWC-zaUP-YXWgW5 prefers device
/dev/sda8 because device was seen first.
WARNING: PV W0e1Cx-ByMA-iRX6-OGxr-KfWC-zaUP-YXWgW5 prefers device
/dev/md127 because device size is correct.
Yes, this is the problem. Someone was having a very similar problem at
work recently with multipath. The problem is that LVM is checking for
volumes before raid has finished checking. The raid device is getting
created, but it's too late, LVM has already found the PV on the raw
disk. I think if the raid version was different, LVM wouldn't be able
to see the PV, but it would be difficult to change that now. If you
only have LVM volumes on the raid, then add the following line to your
/etc/lvm/lvm.conf in the devices section:
filter = [ "r/sd.*/" ]
Then you will need to regenerate the initramfs by running:
dracut -f --kver kernel-version
"kernel-version" is the full name of the kernel. e.g. The latest kernel
package I have installed is "kernel-4.15.7-300.fc27.x86_64", so I would run:
dracut -f --kver 4.15.7-300.fc27.x86_64
You can remove the dracut-config-generic package to go back to smaller
files if you want.
_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx