To be clear, did you do anything to /etc/initramfs-tools/hooks before you built the ramdisk? Because I was about to post again to point out that you should add:
if [ -e /etc/lvm/lvm.conf ]; then
mkdir -p ${DESTDIR}/etc/lvm
cp /etc/lvm/lvm.conf ${DESTDIR}/etc/lvm/
fi
to /usr/share/initramfs-tools/hooks/lvm2, before building your initramfs. In fact, I'm pretty sure update-initramfs will scan both /usr/shares/initramfs-tools/hooks and /etc/initramfs-tools/hooks when it's creating the ramdisk.
Anyways, I made the above change, checked the resulting ramdisk with cpio, and sure enough, this change produced an initramfs that contains an /etc/lvm/lvm.conf.
The second step I took was to install the package multipath-tools-boot, which contains scripts to initialize multipath on bootup, (hopefully) before LVM runs.
Could you make these changes, and make sure that LVM consistently mounts the proper device nodes (/dev/mapper/mpath*) on every boot?
To be clear, did you do anything to /etc/initramfs- tools/hooks before you built the ramdisk? Because I was about to post again to point out that you should add:
if [ -e /etc/lvm/lvm.conf ]; then
mkdir -p ${DESTDIR}/etc/lvm
cp /etc/lvm/lvm.conf ${DESTDIR}/etc/lvm/
fi
to /usr/share/ initramfs- tools/hooks/ lvm2, before building your initramfs. In fact, I'm pretty sure update-initramfs will scan both /usr/shares/ initramfs- tools/hooks and /etc/initramfs- tools/hooks when it's creating the ramdisk.
Anyways, I made the above change, checked the resulting ramdisk with cpio, and sure enough, this change produced an initramfs that contains an /etc/lvm/lvm.conf.
The second step I took was to install the package multipath- tools-boot, which contains scripts to initialize multipath on bootup, (hopefully) before LVM runs.
Could you make these changes, and make sure that LVM consistently mounts the proper device nodes (/dev/mapper/ mpath*) on every boot?
Much appreciated.