Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Booting from a software RAID partition with SILO
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on Sparc
View previous topic :: View next topic  
Author Message
dogshu
Apprentice
Apprentice


Joined: 22 Jun 2003
Posts: 163
Location: New Haven, CT, USA

PostPosted: Wed Dec 03, 2003 3:40 am    Post subject: Booting from a software RAID partition with SILO Reply with quote

Hello,

I am finishing up installing Gentoo on my sparcstation 20. I currently have it set up on a software RAID-1 device consisting of 2 small SCSI drives. I cannot get SILO to install properly, however. When I run SILO, I get this error message:

Could not open RAID device

I tried changing the "root=" line to /dev/sda1 instead of /dev/md0.... since the drives are just mirrors of each other, SILO should have no problem booting the kernel from one disk, then it can just pass "root=/dev/md0" as a command line argument to the kernel. But no such luck, I still can't even get SILO to install itself in the boot sector.

Has anyone had any success getting SILO to boot off of a software RAID-1 device? I know it can work with grub on x86, at least...

If no one's tried this particular thing before... anyone know how I get SILO to ignore the RAID device and just install itself on one drive or the other?

thanks for any help,
Jim
Back to top
View user's profile Send private message
bazik
Retired Dev
Retired Dev


Joined: 22 Jul 2002
Posts: 277
Location: Behind you.

PostPosted: Thu Dec 04, 2003 8:14 am    Post subject: Reply with quote

I use SILO with two 18 GB scsi drives running in Raid0 in my Ultra5.

I'll post my configuration files when I am back at home.
_________________
Gentoo Linux/Sparc Developer
http://dev.gentoo.org/~bazik/
Back to top
View user's profile Send private message
dogshu
Apprentice
Apprentice


Joined: 22 Jun 2003
Posts: 163
Location: New Haven, CT, USA

PostPosted: Fri Dec 05, 2003 5:31 pm    Post subject: Reply with quote

That would be great! In particular I'd like to see your silo.conf.

Are you using software RAID or hardware RAID?

thanks,
Jim
Back to top
View user's profile Send private message
Weeve
Retired Dev
Retired Dev


Joined: 30 Oct 2002
Posts: 641

PostPosted: Sat Dec 06, 2003 3:22 pm    Post subject: Reply with quote

You might try the answer to this quetsion from the UltraLinux FAQ. Not sure if this is what bazik is doing as well or not.
Back to top
View user's profile Send private message
bazik
Retired Dev
Retired Dev


Joined: 22 Jul 2002
Posts: 277
Location: Behind you.

PostPosted: Sat Dec 06, 2003 5:57 pm    Post subject: Reply with quote

Yep, what Weeve said.

Code:

root@darwin root # cat /boot/silo.conf
partition = 1
append = "md=0,/dev/sda4,/dev/sdb4"
root = /dev/md0
timeout = 10
default = Linux

image = /boot/vmlinux
label = Linux

image = /boot/vmlinux-2.4.23
label = Linux24

image = /boot/vmlinux-2.6.0
label = Linux26

image = /boot/vmlinux.bak
label = OldKernel
root@darwin root # fdisk -l /dev/sd[ab]

Disk /dev/sda (Sun disk label): 2 heads, 488 sectors, 36701 cylinders
Units = cylinders of 976 * 512 bytes

   Device Flag    Start       End    Blocks   Id  System
/dev/sda1             0        64     31232   83  Linux native
/dev/sda2  u         64       576    249856   83  Linux native
/dev/sda3  u          0     36701  17910088    5  Whole disk
/dev/sda4           576     36701  17629000   83  Linux native

Disk /dev/sdb (Sun disk label): 2 heads, 488 sectors, 36701 cylinders
Units = cylinders of 976 * 512 bytes

   Device Flag    Start       End    Blocks   Id  System
/dev/sdb1             0        64     31232   83  Linux native
/dev/sdb2  u         64       576    249856   83  Linux native
/dev/sdb3  u          0     36701  17910088    5  Whole disk
/dev/sdb4           576     36701  17629000   83  Linux native
root@darwin root # cat /etc/fstab
# /etc/fstab: static file system information.
/dev/sda1               /boot           ext2            noauto           1 1
#/dev/sdb1              /boot           ext2            noauto           1 1
/dev/md0                /               reiserfs        notail,noatime   0 0
/dev/sda2               none            swap            sw               0 0
/dev/sdb2               none            swap            sw               0 0
/dev/cdroms/cdrom0      /mnt/cdrom      iso9660         noauto,ro        0 0
#/dev/sdc1              /backup         reiserfs        notail,noauto    0 0
/dev/sdc1               /mnt/cam        vfat            user,noauto,ro,umask=000                     
 0 0

none                    /proc           proc            defaults         0 0
none                    /proc/openprom  openpromfs      defaults          0 0
none                    /dev/shm        tmpfs           defaults         0 0
none                    /proc/bus/usb   usbdevfs        defaults         0 0

root@darwin root # cat /etc/raidtab
raiddev /dev/md0
raid-level 0
nr-raid-disks 2
chunk-size 128
persistent-superblock 1
device /dev/sda4
raid-disk 0
device /dev/sdb4
raid-disk 1


_________________
Gentoo Linux/Sparc Developer
http://dev.gentoo.org/~bazik/
Back to top
View user's profile Send private message
dogshu
Apprentice
Apprentice


Joined: 22 Jun 2003
Posts: 163
Location: New Haven, CT, USA

PostPosted: Sun Dec 07, 2003 3:01 pm    Post subject: Reply with quote

I just got it working using a similar configuration.... I have a /boot partition on the first 20 megs of each disk, both of which have been configured as boot disks. Its an extra step to duplicate the boot partition across drives when I make a change to it... but its not that big a deal since I won't be upgrading kernels too often. Maybe I could RAID-1 the boot partitions too...

Anyway, thanks for all of your help guys!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on Sparc All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum