LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 04-24-2013, 09:06 AM   #16
Ser Olmy
Senior Member
 
Registered: Jan 2012
Distribution: Slackware
Posts: 3,334

Rep: Reputation: Disabled

Quote:
Originally Posted by xj25vm View Post
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.)
 
Old 04-25-2013, 03:49 AM   #17
wildwizard
Member
 
Registered: Apr 2009
Location: Oz
Distribution: slackware64-14.0
Posts: 875

Rep: Reputation: 282Reputation: 282Reputation: 282
Quote:
Originally Posted by xj25vm View Post
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.
 
Old 04-26-2013, 06:43 AM   #18
ALVAN
LQ Newbie
 
Registered: Mar 2005
Posts: 9

Rep: Reputation: 1
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.
 
Old 04-26-2013, 07:45 AM   #19
xj25vm
Member
 
Registered: Jun 2008
Posts: 393

Original Poster
Rep: Reputation: 68
Quote:
Originally Posted by ALVAN View Post
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.

Last edited by xj25vm; 04-26-2013 at 07:47 AM.
 
Old 04-26-2013, 06:01 PM   #20
wildwizard
Member
 
Registered: Apr 2009
Location: Oz
Distribution: slackware64-14.0
Posts: 875

Rep: Reputation: 282Reputation: 282Reputation: 282
Quote:
Originally Posted by xj25vm View Post
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.
 
  


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
wifi auto-detection not working any more Joydeep Bakshi Linux - Networking 0 10-30-2011 06:20 AM
USB auto-detection on Mepis 7.0 Van Roy Willem Linux - Newbie 0 06-16-2008 12:32 AM
LAN auto detection in slackware12 gopi.d Slackware 8 01-06-2008 02:42 AM
auto cd detection and kaffeine foustware SUSE / openSUSE 1 12-25-2005 02:11 AM
About the auto-usb detection Saulo SUSE / openSUSE 1 09-02-2005 11:43 PM

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

All times are GMT -5. The time now is 03:58 PM.

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