CENTOS with LVM layout
Antanas Masevicius
antanas.masevicius at gmail.com
Fri Nov 7 15:33:48 CET 2014
also tried with some older basefile:
http://fai-project.org/download/basefiles/CENTOS7_64.tar.xz
lvm is still not being added:
ainsl: appending to /target/etc/fstab: sysfs /sys sysfs auto
0 0 [0/1806]
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 ***
*** Including module: network ***
*** Including module: ifcfg ***
*** Including module: drm ***
*** Including module: plymouth ***
*** Including module: kernel-modules ***
*** Including module: rootfs-block ***
*** Including module: terminfo ***
*** Including module: udev-rules ***
Skipping udev rule: 91-permissions.rules
*** Including module: biosdevname ***
*** Including module: systemd ***
*** Including module: usrmount ***
*** Including module: base ***
*** Including module: fs-lib ***
*** Including module: shutdown ***
*** Including modules done ***
*** Installing kernel module dependencies and firmware ***
*** Installing kernel module dependencies and firmware done ***
*** Resolving executable dependencies ***
*** Resolving executable dependencies done***
*** Hardlinking files ***
*** Hardlinking files done ***
*** Stripping files ***
*** Stripping files done ***
*** Generating early-microcode cpio image ***
*** Constructing GenuineIntel.bin ****
*** Creating image file ***
*** Creating image file done ***
CENTOS/30-mkinitrd OK.
checked for lvm binaries in /target, looks like binaries are in place.
best regards,
Antanas Masevicius
TENDO LT
https://tendo.lt
On Fri, Nov 7, 2014 at 4:07 PM, Antanas Masevicius <
antanas.masevicius at gmail.com> wrote:
> 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/a4cf8d33/attachment.html>
More information about the linux-fai
mailing list