LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 01-26-2019, 08:12 PM   #1
eduardr
LQ Newbie
 
Registered: Sep 2011
Posts: 28

Rep: Reputation: Disabled
Strange output from mkinitrd_command_generator on raid1


On my -current 64 system booting a raid1 (2 disks), I see the following output from /usr/share/mkinitrd/mkinitrd_command_generator.sh:

Code:
#
# mkinitrd_command_generator.sh revision 1.45
#
# This script will now make a recommendation about the command to use
# in case you require an initrd image to boot a kernel that does not
# have support for your storage or root filesystem built in
# (such as the Slackware 'generic' kernels').
# A suitable 'mkinitrd' command will be:

mkinitrd -c -k 4.19.17 -f linux_raid_member
linux_raid_member
ext4 -r /dev/sde2 /dev/sdf2 /dev/md0 -u -o /boot/initrd.gz
What's weird:
1) Output is on 3 lines
2) Mentions "linux_raid_member"
3) Mentions 3 root devices (sde/sdf/md0) when it should just be md0
4) Does not include modules such as jbd, ext4, etc

I don't remember ever seeing this kind of output before - seems like a new or somewhat recent problem.

On my other system booting a single disk, non-raid, output looks fine:

Code:
#
# mkinitrd_command_generator.sh revision 1.45
#
# This script will now make a recommendation about the command to use
# in case you require an initrd image to boot a kernel that does not
# have support for your storage or root filesystem built in
# (such as the Slackware 'generic' kernels').
# A suitable 'mkinitrd' command will be:

mkinitrd -c -k 4.19.18 -f ext4 -r /dev/nvme0n1p2 -m jbd2:mbcache:crc32c-intel:ext4 -u -o /boot/initrd.gz

Both systems have mkinitrd-1.4.11-x86_64-11, one system is running 1 day behind on kernel packages and a few other recent packages.
 
Old 01-27-2019, 06:37 AM   #2
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 7,535

Rep: Reputation: 5901Reputation: 5901Reputation: 5901Reputation: 5901Reputation: 5901Reputation: 5901Reputation: 5901Reputation: 5901Reputation: 5901Reputation: 5901Reputation: 5901
Can you please run:
Code:
sh -x /usr/share/mkinitrd/mkinitrd_command_generator.sh 1>/tmp/mkinit_out.log 2>/tmp/mkinit_err.log
You won't see anything on screen because all its output will be redirected to the two log files /tmp/mkinit_out.log and /tmp/mkinit_err.log.
Can you share the content of those two logfiles here (the first will be rather big so use a pastebin or attach the files to your post)?
 
Old 01-27-2019, 08:59 AM   #3
eduardr
LQ Newbie
 
Registered: Sep 2011
Posts: 28

Original Poster
Rep: Reputation: Disabled
Thanks Alien Bob!

Files are attached.
Attached Files
File Type: log mkinit_out.log (458 Bytes, 11 views)
File Type: log mkinit_err.log (11.8 KB, 6 views)
 
Old 01-27-2019, 11:52 AM   #4
eduardr
LQ Newbie
 
Registered: Sep 2011
Posts: 28

Original Poster
Rep: Reputation: Disabled
Some additional details in case it helps:

Code:
# cat /proc/mdstat 
Personalities : [linear] [raid0] [raid1] [raid10] [raid6] [raid5] [raid4] [multipath] 
md2 : active raid10 sdi1[2] sdh1[3] sdj1[1] sdg1[0]
      23435406336 blocks super 1.2 512K chunks 2 near-copies [4/4] [UUUU]
      bitmap: 2/175 pages [8KB], 65536KB chunk

md1 : active raid10 sdb1[1] sdd1[3] sda1[0] sdc1[2]
      19530511360 blocks super 1.2 512K chunks 2 near-copies [4/4] [UUUU]
      bitmap: 1/146 pages [4KB], 65536KB chunk

md0 : active raid1 sde2[0] sdf2[1]
      234094144 blocks super 1.2 [2/2] [UU]
      bitmap: 2/2 pages [8KB], 65536KB chunk
Code:
# cat /etc/fstab

LABEL=root           /                ext4        defaults            1   1
LABEL=srv            /srv             ext4        defaults            1   2
LABEL=bak1           /media/bak1      ext4        noauto              1   2
PARTLABEL=efi0       /boot/efi        vfat        noauto              1   0
PARTLABEL=efi1       /boot/efi        vfat        noauto              1   0
devpts               /dev/pts         devpts      gid=5,mode=620      0   0
proc                 /proc            proc        defaults            0   0
tmpfs                /dev/shm         tmpfs       nosuid,nodev,noexec 0   0
/var/swap/swap0      swap             swap        defaults            0   0
Code:
# mount

/dev/md0 on / type ext4 (rw)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
tmpfs on /dev/shm type tmpfs (rw)
/dev/md1 on /srv type ext4 (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
/dev/md2 on /media/bak1 type ext4 (rw)
Code:
# ls -al /dev/disk/by-label/

total 0
drwxr-xr-x 2 root root 100 Jan 27 09:39 .
drwxr-xr-x 8 root root 160 Jan 27 08:00 ..
lrwxrwxrwx 1 root root   9 Jan 27 08:00 bak1 -> ../../md2
lrwxrwxrwx 1 root root   9 Jan 27 07:23 root -> ../../md0
lrwxrwxrwx 1 root root   9 Jan 27 07:23 srv -> ../../md1
Code:
# ls -al /dev/disk/by-partlabel/

total 0
drwxr-xr-x 2 root root 280 Jan 27 09:40 .
drwxr-xr-x 8 root root 160 Jan 27 08:00 ..
lrwxrwxrwx 1 root root  10 Jan 27 09:04 bak1-0 -> ../../sdg1
lrwxrwxrwx 1 root root  10 Jan 27 09:05 bak1-1 -> ../../sdj1
lrwxrwxrwx 1 root root  10 Jan 27 09:04 bak1-2 -> ../../sdi1
lrwxrwxrwx 1 root root  10 Jan 27 09:04 bak1-3 -> ../../sdh1
lrwxrwxrwx 1 root root  10 Jan 27 07:23 efi0 -> ../../sde1
lrwxrwxrwx 1 root root  10 Jan 27 07:23 efi1 -> ../../sdf1
lrwxrwxrwx 1 root root  10 Jan 27 07:23 root-0 -> ../../sde2
lrwxrwxrwx 1 root root  10 Jan 27 07:23 root-1 -> ../../sdf2
lrwxrwxrwx 1 root root  10 Jan 27 07:23 srv-0 -> ../../sda1
lrwxrwxrwx 1 root root  10 Jan 27 07:23 srv-1 -> ../../sdb1
lrwxrwxrwx 1 root root  10 Jan 27 07:23 srv-2 -> ../../sdc1
lrwxrwxrwx 1 root root  10 Jan 27 07:23 srv-3 -> ../../sdd1
 
Old 01-27-2019, 11:56 AM   #5
eduardr
LQ Newbie
 
Registered: Sep 2011
Posts: 28

Original Poster
Rep: Reputation: Disabled
On yet another machine, which also uses raid1 for boot, output looks fine, shown below.
So the problem is not caused by raid1 specifically it seems.

Code:
# /usr/share/mkinitrd/mkinitrd_command_generator.sh 

#
# mkinitrd_command_generator.sh revision 1.45
#
# This script will now make a recommendation about the command to use
# in case you require an initrd image to boot a kernel that does not
# have support for your storage or root filesystem built in
# (such as the Slackware 'generic' kernels').
# A suitable 'mkinitrd' command will be:

mkinitrd -c -k 4.19.18 -f ext4 -r /dev/md0 -m mpt3sas:xhci-pci:ohci-pci:ehci-pci:xhci-hcd:uhci-hcd:ehci-hcd:hid:usbhid:i2c-hid:hid_generic:hid-asus:hid-cherry:hid-logitech:hid-logitech-dj:hid-logitech-hidpp:hid-lenovo:hid-microsoft:hid_multitouch:jbd2:mbcache:crc32c-intel:ext4 -R -u -o /boot/initrd.gz
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] I don't understand how this bash function works in mkinitrd_command_generator.sh jheengut Slackware 2 08-05-2018 07:06 AM
mkinitrd_command_generator.sh: broken with 3.17.3 kernel lems Slackware 5 11-17-2014 01:24 PM
mkinitrd_command_generator and ehci_hcd pdi Slackware 3 11-07-2014 11:14 AM
mkinitrd_command_generator.sh doesn't recognize kernel file ...? chexmix Slackware 13 06-17-2013 06:08 AM
Boot error message (mkinitrd_command_generator.sh) samac Slackware 12 03-05-2010 01:27 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 12:08 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration