SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Re-run mkinitrd and lilo now that you've initialized /etc/mdadm.conf with the current configuration.
The default /etc/mdadm.conf contains nothing but comments. The init script in the initrd does...
Code:
# Initialize RAID:
if [ -x /sbin/mdadm ]; then
# If /etc/mdadm.conf is present, udev should DTRT on its own;
# If not, we'll make one and go from there:
if [ ! -r /etc/mdadm.conf ]; then
/sbin/mdadm -E -s >/etc/mdadm.conf
/sbin/mdadm -S -s
/sbin/mdadm -A -s
# This seems to make the kernel see partitions more reliably:
fdisk -l /dev/md* 1> /dev/null 2> /dev/null
fi
fi
...which means that udev will mount the software RAID devices with names such as /dev/md128 versus what you chose.
If you *don't* have an /etc/mdadm.conf file in your initrd, the above code will force a rescan of the RAID devices. If you have a correct /etc/mdadm.conf, udev will get it right the first time it sees the drives.
Last edited by Richard Cranium; 01-25-2015 at 06:10 PM.
Reason: Clarified first line.
Thanks for your answer, i'm at work at the moment, will be able to test in ~10 hours
From what i know i have things written in /etc/mdadm.conf and same in the /boot/initrd-tree/etc/mdadm.conf, my mdamdm.conf contain my 4 ARRAY and my mail, after reading a thread yesterday about the md128 and md129 problem, i also added 4 more lines, one for each md* (i don't remember the exact syntaxe i have used but it was something like that):
While i was doing some various test yesterday i have re run several time the mkinirtd -F and lilo commands with a mdadm.conf file containing my 4 ARRAYS.
Just to be shure i'm not misunderstanding:
Quote:
Originally Posted by Richard Cranium
The default /etc/mdadm.conf contains nothing but comments. The init script in the initrd does...
If you *don't* have an /etc/mdadm.conf file in your initrd
the initrd you are talking is the inird-tree or the initrd.gz file?
Thanks for your answer, i'm at work at the moment, will be able to test in ~10 hours
From what i know i have things written in /etc/mdadm.conf and same in the /boot/initrd-tree/etc/mdadm.conf, my mdamdm.conf contain my 4 ARRAY and my mail, after reading a thread yesterday about the md128 and md129 problem, i also added 4 more lines, one for each md* (i don't remember the exact syntaxe i have used but it was something like that):
While i was doing some various test yesterday i have re run several time the mkinirtd -F and lilo commands with a mdadm.conf file containing my 4 ARRAYS.
Just to be shure i'm not misunderstanding:
the initrd you are talking is the inird-tree or the initrd.gz file?
They are the same. initrd.gz is built from the contents of /boot/initrd-tree. Take a look at /boot/init-tree/etc/mdadm.conf; it should match the one you have on the root file system or not exist at all for this stuff to work.
- Boot the slackware install USB key
- re run SETUP to map partitions then EXIT
- chroot /mnt/
- Check my /etc/mdadm.conf (see attached screenshot), my ARRAYS are there, note that the ARRAY /dev/md3 have a different syntax doesn't seems to be a problem my Slackware 14.0 box have the same
- Check if i have same mdadm.conf in /boot/initrd-tree/etc Ok
- Re run Mkinitrd -F and lilo command, see attached screenshot, there is error here.
- Boot the slackware install USB key
- re run SETUP to map partitions then EXIT
- chroot /mnt/
- Check my /etc/mdadm.conf (see attached screenshot), my ARRAYS are there, note that the ARRAY /dev/md3 have a different syntax doesn't seems to be a problem my Slackware 14.0 box have the same
- Check if i have same mdadm.conf in /boot/initrd-tree/etc Ok
- Re run Mkinitrd -F and lilo command, see attached screenshot, there is error here.
no luck i have the same Kernel panic
Before you chroot /mnt, you should also do...
Code:
mount --bind /proc /mnt/proc
mount --bind /sys /mnt/sys
mount --bind /run /mnt/run
mount --bind /dev /mnt/dev
How about renaming /boot/initrd-tree/etc/mdadm.conf to /boot/initrd-tree/etc/mdadm-nouse.conf, re-run the mkinitrd command with no parameters, and then lilo. Reboot.
The initrd init script should be able to find your raid arrays by itself. Give it a shot.
Use UUID instead of /dev/mdX in /etc/fstab. You can use it also in /etc/lilo.conf.
I found, that some kernels (for sure 3.14) have problem with RAID naming. I have /dev/md127 and /dev/md126 despite they are named differently in my /etc/mdadm.conf.
I haven't been able to reproduce the error today, i started a complete installation except that i didn't remove all partitions with cfdisk before installation. For me the only difference in the installation of yesterday that finally work was the two things Kikinova point:
1. Wait until your disks are in sync. Keep an eye on them like this:
Code:
watch cat /proc/mdstat
2. You have to invoke mdadm -E -s > /etc/mdadm.conf before building your initrd, not after.
Many thanks all for help. And as someone suggest in this forum that i don't remember the name i have made a donation equal to the price of the Slackware 14.1 DvD since i'm now using it
For anyone interested this is exactly the steps that i have followed.
Run Slackware 14.1 64 bit install from USB, partitioning with cfdisk:
Code:
/boot 100Mo sda1 DA RAID 1 md3
/ 25Go sda2 DA RAID 5 md0
/home 50G sda3 DA RAID 5 md1
swap 4Go sda4 DA RAID 1 md2
free ~100mo
partition type DA
Duplicate partition to second 80Go drive with sfdisk:
Code:
sfdisk -d /dev/sda | sfdisk /dev/sdb
Stop eventually old raid array from previous install with mdadm:
- see wich "mdx" array may be up from a previous install
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.