Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
dracut won't handle non-root partitions on a RAID drive.
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
Featherfoot
l33t
l33t


Joined: 28 Dec 2002
Posts: 930
Location: Stuart, Florida

PostPosted: Fri Feb 09, 2018 8:27 pm    Post subject: dracut won't handle non-root partitions on a RAID drive. Reply with quote

I have an amd64 system with a RAID1 drive and a Solid State Disk. The SSD contains the /boot partition and the / partition. The RAID1 drive contains the /home partition, a /misc partition and a /mint partition. The problem is that none of the partitions on the RAID1 will mount at boot.

Here is /etc/dracut.conf:
Code:

bopper /etc # cat dracut.conf
# PUT YOUR CONFIG IN separate files
# in /etc/dracut.conf.d named "<name>.conf"
# SEE man dracut.conf(5) for options
hostonly="yes"
use_fstab="yes"

add_dracutmodules+="dm dmraid"
omit_dracutmodules+="systemd systemd-bootchard systemd-networkd"
stdloglvl="3"
logfile="/var/log/dracut.log"
bopper /etc #


Here is /etc/fstab
Code:

bopper /etc # cat /etc/fstab
# /etc/fstab: static file system information.
#
# noatime turns off atimes for increased performance (atimes normally aren't
# needed); notail increases performance of ReiserFS (at the expense of storage
# efficiency).  It's safe to drop the noatime options if you want and to
# switch between notail / tail freely.
#
# The root filesystem should have a pass number of either 0 or 1.
# All other filesystems should have a pass number of 0 or greater than 1.
#
# See the manpage fstab(5) for more information.
#

# <fs>                  <mountpoint>    <type>          <opts>          <dump/pass>

# NOTE: If your BOOT partition is ReiserFS, add the notail option to opts.
#
# NOTE: Even though we list ext4 as the type here, it will work with ext2/ext3
#       filesystems.  This just tells the kernel to use the ext4 driver.
#
# NOTE: You can use full paths to devices like /dev/sda3, but it is often
#       more reliable to use filesystem labels or UUIDs. See your filesystem
#       documentation for details on setting a label. To obtain the UUID, use
#       the blkid(8) command.

UUID=5e5d22b7-f7d2-4ce3-b183-bba5325c18f8 /boot ext4    nofail,noatime,nodiratime,discard,user_xattr,errors=remount-ro 0 1
UUID=31919870-2246-4f3d-a3ae-11431272cf60 /     ext4    noatime         0 1 #/dev/sda2

/dev/cdrom              /mnt/cdrom      auto            noauto,ro       0 0

/dev/mapper/pdc_ichaghch5  /mint           ext4    noatime,auto    0 3 # /dev/mapper/pdc_ichaghch5
/dev/mapper/pdc_ichaghch3  /home           ext4    noatime,auto    0 2 # /dev/mapper/pdc_ichaghch3
/dev/mapper/pdc_ichaghch6  /misc           ext4    noatime,auto    0 3 #/dev/mapper/pdc_ichaghch6
/dev/mapper/pdc_ichaghch2  /windows        ntfs    noatime,auto,umask=007,gid=46 0 0 #/dev/mapper/pdc_ichaghch2

/dev/mapper/pdc_ichaghch7  none            swap    sw              0       0 #/dev/mapper/pdc_ichaghch7

#UUID=87b11ebf-a720-486e-9595-03f9c62c8024 /mint           ext4    noatime,auto           0 3 # /dev/mapper/pdc_ichaghch5
#UUID=12ece343-0677-4485-9b38-bf74f577056a /home           ext4    noatime,auto    0 2 # /dev/mapper/pdc_ichaghch3
#UUID=02f4ec2d-6c86-4315-98d2-28a777b26787 /misc           ext4    noatime,auto    0 3 #/dev/mapper/pdc_ichaghch6
#UUID=5656C23F56C2201B                    /windows        ntfs    noatime,auto,umask=007,gid=46 0 0 #/dev/mapper/pdc_ichaghch2
#UUID=1e0aa515-07ff-461f-9da3-2d3e60f6ed25  none            swap    sw              0       0 #/dev/mapper/pdc_ichaghch7

bopper /etc #

Here is /var/log/dracut.log:
Code:

bopper /var/log # cat dracut.log
I: Executing: /usr/bin/dracut
I: dracut module 'bootchart' will not be installed, because command '/sbin/bootchartd' could not be found!
I: dracut module 'dash' will not be installed, because command '/bin/dash' could not be found!
I: dracut module 'systemd' will not be installed, because command '/systemd' could not be found!
I: dracut module 'systemd-bootchart' will not be installed, because command '/systemd-bootchart' could not be found!
E: systemd-initrd needs systemd in the initramfs
E: systemd-networkd needs systemd in the initramfs
I: dracut module 'plymouth' will not be installed, because command 'plymouthd' could not be found!
I: dracut module 'plymouth' will not be installed, because command 'plymouth' could not be found!
I: dracut module 'plymouth' will not be installed, because command 'plymouth-set-default-theme' could not be found!
I: dracut module 'btrfs' will not be installed, because command 'btrfs' could not be found!
I: dracut module 'dmsquash-live-ntfs' will not be installed, because command 'ntfs-3g' could not be found!
I: dracut module 'multipath' will not be installed, because command 'multipath' could not be found!
I: dracut module 'iscsi' will not be installed, because command 'iscsistart' could not be found!
I: dracut module 'iscsi' will not be installed, because command 'iscsi-iname' could not be found!
I: 95nfs: Could not find any command of 'rpcbind portmap'!
I: dracut module 'biosdevname' will not be installed, because command 'biosdevname' could not be found!
E: dracut-systemd needs systemd-initrd in the initramfs
I: dracut module 'dash' will not be installed, because command '/bin/dash' could not be found!
I: dracut module 'btrfs' will not be installed, because command 'btrfs' could not be found!
I: dracut module 'dmsquash-live-ntfs' will not be installed, because command 'ntfs-3g' could not be found!
I: dracut module 'multipath' will not be installed, because command 'multipath' could not be found!
I: dracut module 'iscsi' will not be installed, because command 'iscsistart' could not be found!
I: dracut module 'iscsi' will not be installed, because command 'iscsi-iname' could not be found!
I: 95nfs: Could not find any command of 'rpcbind portmap'!
I: *** Including module: bash ***
I: *** Including module: i18n ***
E: i18n_vars not set!  Please set up i18n_vars in  configuration file.
I: No KEYMAP configured.
I: *** Including module: dm ***
I: Skipping udev rule: 64-device-mapper.rules
I: Skipping udev rule: 60-persistent-storage-dm.rules
I: Skipping udev rule: 55-dm.rules
I: *** Including module: dmraid ***
I: *** Including module: kernel-modules ***
I: *** Including module: rootfs-block ***
I: *** Including module: terminfo ***
I: *** Including module: udev-rules ***
I: Skipping udev rule: 40-redhat.rules
I: Skipping udev rule: 50-firmware.rules
I: Skipping udev rule: 50-udev.rules
I: Skipping udev rule: 91-permissions.rules
I: Skipping udev rule: 80-drivers-modprobe.rules
I: *** Including module: usrmount ***
I: *** Including module: base ***
I: *** Including module: fs-lib ***
I: *** Including module: shutdown ***
I: *** Including modules done ***
I: *** Installing kernel module dependencies ***
I: *** Installing kernel module dependencies done ***
I: *** Resolving executable dependencies ***
I: *** Resolving executable dependencies done***
I: *** Stripping files ***
I: *** Stripping files done ***
I: *** Store current command line parameters ***
I: Stored kernel commandline:
I:  root=UUID=31919870-2246-4f3d-a3ae-11431272cf60 rootfstype=ext4 rootflags=noatime
I: *** Creating image file '/boot/initramfs-4.14.17-gentoo.img' ***
I: *** Creating initramfs image file '/boot/initramfs-4.14.17-gentoo.img' done ***
I: Executing: /usr/bin/dracut
F: Will not override existing initramfs (/boot/initramfs-4.14.17-gentoo.img) without --force
I: Executing: /usr/bin/dracut --force
I: dracut module 'bootchart' will not be installed, because command '/sbin/bootchartd' could not be found!
I: dracut module 'dash' will not be installed, because command '/bin/dash' could not be found!
I: dracut module 'systemd' will not be installed, because it's in the list to be omitted!
I: dracut module 'systemd-bootchart' will not be installed, because command '/systemd-bootchart' could not be found!
E: systemd-initrd needs systemd in the initramfs
I: dracut module 'systemd-networkd' will not be installed, because it's in the list to be omitted!
I: dracut module 'plymouth' will not be installed, because command 'plymouthd' could not be found!
I: dracut module 'plymouth' will not be installed, because command 'plymouth' could not be found!
I: dracut module 'plymouth' will not be installed, because command 'plymouth-set-default-theme' could not be found!
I: dracut module 'btrfs' will not be installed, because command 'btrfs' could not be found!
I: dracut module 'dmsquash-live-ntfs' will not be installed, because command 'ntfs-3g' could not be found!
I: dracut module 'multipath' will not be installed, because command 'multipath' could not be found!
I: dracut module 'iscsi' will not be installed, because command 'iscsistart' could not be found!
I: dracut module 'iscsi' will not be installed, because command 'iscsi-iname' could not be found!
I: 95nfs: Could not find any command of 'rpcbind portmap'!
I: dracut module 'biosdevname' will not be installed, because command 'biosdevname' could not be found!
E: dracut-systemd needs systemd-initrd in the initramfs
I: dracut module 'dash' will not be installed, because command '/bin/dash' could not be found!
I: dracut module 'btrfs' will not be installed, because command 'btrfs' could not be found!
I: dracut module 'dmsquash-live-ntfs' will not be installed, because command 'ntfs-3g' could not be found!
I: dracut module 'multipath' will not be installed, because command 'multipath' could not be found!
I: dracut module 'iscsi' will not be installed, because command 'iscsistart' could not be found!
I: dracut module 'iscsi' will not be installed, because command 'iscsi-iname' could not be found!
I: 95nfs: Could not find any command of 'rpcbind portmap'!
I: *** Including module: bash ***
I: *** Including module: i18n ***
E: i18n_vars not set!  Please set up i18n_vars in  configuration file.
I: No KEYMAP configured.
I: *** Including module: dm ***
I: Skipping udev rule: 64-device-mapper.rules
I: Skipping udev rule: 60-persistent-storage-dm.rules
I: Skipping udev rule: 55-dm.rules
I: *** Including module: dmraid ***
I: *** Including module: kernel-modules ***
I: *** Including module: rootfs-block ***
I: *** Including module: terminfo ***
I: *** Including module: udev-rules ***
I: Skipping udev rule: 40-redhat.rules
I: Skipping udev rule: 50-firmware.rules
I: Skipping udev rule: 50-udev.rules
I: Skipping udev rule: 91-permissions.rules
I: Skipping udev rule: 80-drivers-modprobe.rules
I: *** Including module: usrmount ***
I: *** Including module: base ***
I: *** Including module: fs-lib ***
I: *** Including module: shutdown ***
I: *** Including modules done ***
I: *** Installing kernel module dependencies ***
I: *** Installing kernel module dependencies done ***
I: *** Resolving executable dependencies ***
I: *** Resolving executable dependencies done***
I: *** Stripping files ***
I: *** Stripping files done ***
I: *** Store current command line parameters ***
I: Stored kernel commandline:
I:  root=UUID=31919870-2246-4f3d-a3ae-11431272cf60 rootfstype=ext4 rootflags=noatime
I: *** Creating image file '/boot/initramfs-4.14.17-gentoo.img' ***
I: *** Creating initramfs image file '/boot/initramfs-4.14.17-gentoo.img' done ***
bopper /var/log #


Here is 07_jc, the grub2 entry that invokes the kernel
Code:

bopper /home/jc # cat 07_jc
#!/bin/sh
exec tail -n +3 $0
# This file provides an easy way to add custom menu entries.  Simply type the
# menu entries you want to add after this comment.  Be careful not to change
# the 'exec tail' line above.

menuentry 'Gentoo 4.14.17 on SSD' --class gentoo --class gnu-linux --class os {
        recordfail
        insmod part_msdos
        insmod ext2
        set root='(hd0,msdos1)'
        search --no-floppy --fs-uuid --set=root 5e5d22b7-f7d2-4ce3-b183-bba5325c18f8
        linux   /kernel-genkernel-x86_64-4.14.17-gentoo root=/dev/ram0 real_root=UUID=31919870-2246-4f3d-a3ae-11431272cf60 dodmraid=-ay ro net.ifnames=0
        initrd  /initramfs-genkernel-x86_64-4.14.17-gentoo
}

menuentry 'Gentoo 4.9.76 on SSD' --class gentoo --class gnu-linux --class os {
        recordfail
        insmod part_msdos
        insmod ext2
        set root='(hd0,msdos1)'
        search --no-floppy --fs-uuid --set=root 5e5d22b7-f7d2-4ce3-b183-bba5325c18f8
        linux   /kernel-genkernel-x86_64-4.9.76-gentoo-r1 root=/dev/ram0 real_root=UUID=31919870-2246-4f3d-a3ae-11431272cf60 dodmraid=ay ro net.ifnames=0
        initrd  /initramfs-genkernel-x86_64-4.9.76-gentoo-r1
}
bopper /home/jc #


I can mount the partitions after the system is booted by the following:
Quote:

dmraid -ay
mount /home
mount /misc
mount /mint


I think it is pretty clear that the dodmraid initialization on the grub2 entry is not being performed, or if so, not at a time when conditions are appropriate.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum