LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 05-10-2022, 04:30 AM   #1
badbetty
Member
 
Registered: Jan 2014
Posts: 159

Rep: Reputation: Disabled
software RAID machine boots fine with huge kernel but not generic


Starting with this info ...

Slackware 15 64bit clean install fully updated
two disks /dev/sda /dev/sdb

used mdadm to create array:

/dev/md0 as /boot partition RAID1
/dev/md1 as / partition RAID10
/dev/md2 as /home partition RAID10

generated initrd using:
mkinitrd -c -k 5.15.27 -f ext4 -r /dev/md1 -m jbd2:mbcache:ext4 -R -u -o /boot/initrd.gz and added to lilo.conf followed by running lilo

lilo.conf (key items) boot = /dev/md0 raid-extra-boot = "mbr-only"

If booting the 'huge' kernel the system comes up fine.

If booting the 'generic' kernel, the system fails to boot with ... no /sbin/init ... Trouble ahead during boot and system stopping there and rendered unresponsive.

(As an aside, another machine Slackware 14.2 setup the same way raid wise etc, boots fine both huge and generic)

Please, what might the huge kernel boot be loading/doing that is missing in the generic boot leading to it failing to boot and what would be a way to identify differences ?


Thank you
 
Old 05-10-2022, 04:48 AM   #2
elcore
Senior Member
 
Registered: Sep 2014
Distribution: Slackware
Posts: 1,754

Rep: Reputation: Disabled
I'd use lsmod (on working kernel) to identify the module responsible for loading the root disk.
When found, you could include it to initrd image. Or make a custom kernel which includes the relevant module.
It's likely some raid module that is missing in your generic kernel.. but I've never used raid so I can't say which one.
 
Old 05-10-2022, 06:45 AM   #3
badbetty
Member
 
Registered: Jan 2014
Posts: 159

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by elcore View Post
I'd use lsmod (on working kernel) to identify the module responsible for loading the root disk.
When found, you could include it to initrd image. Or make a custom kernel which includes the relevant module.
It's likely some raid module that is missing in your generic kernel.. but I've never used raid so I can't say which one.
i have tried that (lsmod) since posting and did not notice any obvious raid related module or difference that stood out as a possibility. I will have another look though.

I'm now wondering if it is a setting in kernel config. Perhaps I should try find any differences in those (huge and generic) related to raid or loading disks.

Certainly, previously I've not had to do any customisation towards mkinitrd (using /usr/share/mkinitrd/mkinitrd_command_generator.sh) once it did its thing. Perhaps generator.sh and Slackware 15 are out of sync somewhere from previous; I have no basis for this at the moment though.

Thank you for the reply.
 
Old 05-10-2022, 07:08 AM   #4
elcore
Senior Member
 
Registered: Sep 2014
Distribution: Slackware
Posts: 1,754

Rep: Reputation: Disabled
It could be a SATA controller driver that is compiled-in huge kernel and not in generic.
If lsmod does not show a difference, maybe see with lspci the SATA controller name.
The huge kernel usually has all of them compiled-in, even the unstable ones.

Or it might be an upstream change in the kernel that caused it, there was many changes from 4.4 to 5.15
 
Old 05-10-2022, 08:41 AM   #5
Chuck56
Member
 
Registered: Dec 2006
Location: Colorado, USA
Distribution: Slackware
Posts: 930

Rep: Reputation: 479Reputation: 479Reputation: 479Reputation: 479Reputation: 479
Quote:
Originally Posted by badbetty View Post
generated initrd using:
mkinitrd -c -k 5.15.27 -f ext4 -r /dev/md1 -m jbd2:mbcache:ext4 -R -u -o /boot/initrd.gz and added to lilo.conf followed by running lilo
Try adding a "wait" period '-w 1' or '-w 2' in your mkinitrd command. When I used mdadm in the past the RAID partitions needed the extra time time to setup.

Hope that helps...
 
Old 05-14-2022, 05:28 AM   #6
badbetty
Member
 
Registered: Jan 2014
Posts: 159

Original Poster
Rep: Reputation: Disabled
Thank you for the comments.

I managed to get the issue sorted and a generic kernel is now booting with RAID. I suspect it was an issues that something somewhere relating to RAID/mdadm was not being captured when generating the initrd as hinted at in the comments received. Exactly what it was I cannot say as I made the mistake of not trying one adjustment at a time, but I had ensured that mdadm.conf contained correct devices and array entries and I had run one or two madadm commands prior to mkinird commands (using the -w as suggested) and it seemed to sort the issue.

Last edited by badbetty; 05-14-2022 at 05:29 AM.
 
  


Reply



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
Huge kernel boots--Huge.SMP (and generic.smp) kernel will not MTCAT Linux - Newbie 4 02-03-2021 02:11 PM
[SOLVED] 14.2/32-bit: huge-smp boots, generic-smp kernel panic rshepard Slackware 10 01-11-2017 08:29 AM
CentOS semi-manual p2V VMWare ESXi- [Software Raid to Non-Software Raid], boots to kernel panic Train Linux - Server 1 06-22-2014 08:46 AM
[SOLVED] Custom kernel doesn't work, but now even generic and huge kernels panic. ibrunton Slackware 3 01-27-2014 02:03 PM
Fedora 9 boots (long delay) as single core if I go to GRUB menu, otherwise boots fine saravkrish Fedora 1 05-27-2008 07:59 AM

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

All times are GMT -5. The time now is 12:23 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
Open Source Consulting | Domain Registration