LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Raid auto-detection deprecated? What's next? (https://www.linuxquestions.org/questions/slackware-14/raid-auto-detection-deprecated-whats-next-4175459196/)

Ser Olmy 04-24-2013 09:06 AM

Quote:

Originally Posted by xj25vm (Post 4937976)
If my understanding is correct, as the kernel won't be able to read RAID 1 directly, the initrd, or initramfs would have to be on a regular /boot partition - not a raided one.

The kernel doesn't load the initrd image, the boot loader does. You will still be able to boot from a software RAID set, as long as the bootloader can access the RAID volume and the set is assembled by initrd.

(And of course, hardware RAID is not affected.)

wildwizard 04-25-2013 03:49 AM

Quote:

Originally Posted by xj25vm (Post 4937976)
If my understanding is correct, as the kernel won't be able to read RAID 1 directly, the initrd, or initramfs would have to be on a regular /boot partition - not a raided one.

Apart from the already mentioned fact that the boot loader loads the kernel and initrd from the disk before the kernel even starts ...

RAID 1 is no different to a regular disk as far as file system layout goes, remember it is a mirror image nothing more.

ALVAN 04-26-2013 06:43 AM

You can try in /etc/fstab to use UUID= for /boot so this way it does not matter if /boot is on on /dev/sda or sdb etc, if it has that uuid it will boot.
lsblk -f to list uuids or tune2fs -l /dev/sdX in ext4 or ext3 ifle systems.

As for lilo.conf you can still keep the old way with raid-extra-boot with /dev/sdX,/dev/sdY entries.

xj25vm 04-26-2013 07:45 AM

Quote:

Originally Posted by ALVAN (Post 4939232)
You can try in /etc/fstab to use UUID= for /boot so this way it does not matter if /boot is on on /dev/sda or sdb etc, if it has that uuid it will boot.
lsblk -f to list uuids or tune2fs -l /dev/sdX in ext4 or ext3 ifle systems.

As for lilo.conf you can still keep the old way with raid-extra-boot with /dev/sdX,/dev/sdY entries.

Looking at the man page for lilo.conf, it seems that raid-extra-boot mainly deals with where the boot record will be written. I'm not sure how lilo would be dealing with being able to point to the kernel or initrd on *either* /boot partition - to cope with one hdd going missing. Actually, thinking about it, I'm not sure how lilo copes even at the moment with loading the kernel or the initrd off a /boot partition which sits on top of RAID 1. Clearly, I have to do more reading on this. The lilo.conf man page doesn't seem to shed enough light on how lilo copes with RAID 1. Also, I could be wrong, but the notes in lilo.conf appear to refer to the case of entire disks being array members - as opposed to having partitions as array members. For example they recommend using boot=/dev/md0 - but, if my understanding is correct, this would only work if /dev/md0 has entire disks as members, not partitions.

wildwizard 04-26-2013 06:01 PM

Quote:

Originally Posted by xj25vm (Post 4939257)
Looking at the man page for lilo.conf, it seems that raid-extra-boot mainly deals with where the boot record will be written.

Given a RAID1 setup with 2 disks the correct use of this option will enable lilo to write itself to both disks so that when a disk is removed lilo will still be on the remaining disk.

Quote:

I'm not sure how lilo would be dealing with being able to point to the kernel or initrd on *either* /boot partition - to cope with one hdd going missing.
The way lilo writes it's records to each disk is such that if the disks are different or have partitions in different locations each record is unique to the disk it sits on.

When a disk is removed from a computer the remaining disks are reordered in sequence, all lilo has to do is assume it is on the first disk and it will load.

Quote:

Actually, thinking about it, I'm not sure how lilo copes even at the moment with loading the kernel or the initrd off a /boot partition which sits on top of RAID 1.
So long as it is only RAID1 and a v0.9 superblock and does not have partitions inside the RAID device then lilo can create a sector map of the files it needs to load.

This is no different to booting off a non RAID device, it just has extra options to enable creating the extra boot records on the second and later disks in case of the first disk suffering a failure.

I should also point out that RAID is not designed to deal with data corruption on a disk only the total failure of a disk, data corruption can only be dealt with via backups.


All times are GMT -5. The time now is 01:11 PM.