CENTOS with LVM layout
Antanas Masevicius
antanas.masevicius at gmail.com
Fri Nov 7 15:07:42 CET 2014
looks like dracut executed from CENTOS/30-mkinitrd does not include lvm;
excerpt from shell.log:
insl: appending to /target/etc/fstab: proc /proc proc defaults
0 0
ainsl: appending to /target/etc/fstab: sysfs /sys sysfs auto
0 0
ainsl: create /target/etc/dracut.conf.d/fai.conf
ainsl: appending to /target/etc/dracut.conf.d/fai.conf: filesystems+="ext4"
No '/dev/log' or 'logger' included for syslog logging
Executing: /usr/sbin/dracut -v --kver 3.10.0-123.9.3.el7.x86_64 --force
*** Including module: bash ***
*** Including module: i18n ***
...
and no lvm.
I am not sure how this dracut determines what modules to include, but
adding
add_dracutmodules+="lvm"
to
/srv/fai/nfsroot/etc/dracut.conf
did not help
I also noticed that building CENTOS6 basefile i get noticed about missing
libdevmapper:
./mk-basefile -J CENTOS6_64
[42:112] Copy from cache: libcurl-7.19.7-37.el6_5.3.x86_64.rpm ..
[Harmless] Failed to find download link for libdevmapper
Extracting: nss-3.16.1-14.el6.x86_64.rpm
..
i don't notice the same error with ./mk-basefile -J CENTOS7_64, but in
shell.log i see that dm module is also missing.
As i understand, installing lvm depends on this dm module:
# /srv/fai/nfsroot/usr/lib/dracut/modules.d/90lvm/module-setup.sh
depends() {
# We depend on dm_mod being loaded
echo rootfs-block dm
return 0
}
any thoughts how to proceed further?
best regards,
Antanas Masevicius
TENDO LT
https://tendo.lt
On Fri, Nov 7, 2014 at 3:15 PM, Thomas Lange <lange at informatik.uni-koeln.de>
wrote:
> >>>>> On Fri, 7 Nov 2014 14:53:36 +0200, Antanas Masevicius <
> antanas.masevicius at gmail.com> said:
>
> > it looks like there is no lvm module in that initramfs file.
> That not good.
>
> > shell.log: /run/lvm/lvmetad.socket: connect failed: No such file or
> directory
> > shell.log: WARNING: Failed to connect to lvmetad: No such file or
> directory. Falling back to internal scanning.
> You should read the whole shell.log
>
> --
> regards Thomas
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.uni-koeln.de/pipermail/linux-fai/attachments/20141107/bcbae312/attachment.html>
More information about the linux-fai
mailing list