[Pkg-zfsonlinux-devel] ZFS not booting when on LVM
John Goerzen
jgoerzen at complete.org
Wed Jan 15 02:37:25 UTC 2014
Hi folks,
I found that when ZFS root is on LVM, it won't boot because it doesn't
know about it.
The fix could be to copy this section :
activate_vg()
{
# Sanity checks
if [ ! -x /sbin/lvm ]; then
message "cryptsetup: lvm is not available"
return 1
fi
# Detect and activate available volume groups
/sbin/lvm vgscan
/sbin/lvm vgchange -a y --sysinit
return $?
}
from /usr/share/initramfs-tools/scripts/local-top/cryptroot. the
local-top lvm2 doesn't seem to fire off here for some reason.
My own workaround was to temporarily copy that section into a new file
in /usr/share/initramfs-tools/scripts/local-top that could do this for
me on boot (so that it wouldn't be overwritten). This seems to have
fixed it.
Thanks,
John
More information about the Pkg-zfsonlinux-devel
mailing list