Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Ultra60 root raid0 [Solved]
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
dzoster
n00b
n00b


Joined: 10 Jun 2005
Posts: 19

PostPosted: Fri Jun 10, 2005 10:48 pm    Post subject: Ultra60 root raid0 [Solved] Reply with quote

Hello, I have been spending the last couple of days working on a 2x450 ultera60 box i got.
It has 2 18 gig scsi hd's on it and i would love to use raid0 on them. I am very sorry in advance if this question has been answered millions of times \
( i couldnt find it :( )

i will be using this partitioning sceme on each hard drive. partition sizes are cun in 2 half on hd a half on hd b

/boot - 50M ext3 /dev/sda1 ext3
/swap - 512M /dev/sda2 /dev/sdb2 swap
/ - 3Gig /dev/sda4 /dev/sdb4 raid0 md4
/var - 3 Gig /dev/sda5 /dev/sdb5 raid 0 md5
/usr/portage - /dev/sda6 /dev/sdb6 raid0 md6
/usr - /dev/sda7 /dev/sdb7 raid0 md7
/home - /dev/sda8 /dev/sda8 raid0 md8

these are my first questions.

Do i need a /boot partition to boot with raid0 (i was under the impression that the kernel needs to reside on a small boot partition)
what do i need to do to make this senario happen (boot raid0 on a sparc, gentoo install) ( what needs to be done to the kernel where can i find it? i assume raid needs to be started,
i have read some places that silo needs to be installed ion both whole slice's? i dont get it.,
how to configure silo for this type of install?l.

I have many more questions but i will leave you guys with this for now. i have been looking online for this type of thing for 2 days and i havent found alot of info.

if you need more information please post what you need i will post back. I thank you all in advance.

- THANKS - Dzo


Last edited by dzoster on Sat Jun 25, 2005 3:02 am; edited 1 time in total
Back to top
View user's profile Send private message
ansient
Guru
Guru


Joined: 22 Jan 2005
Posts: 445
Location: Argentina

PostPosted: Fri Jun 10, 2005 10:52 pm    Post subject: Reply with quote

from http://www.ultralinux.org/faq.html

Quote:
40. How can I boot from a mirrored RAID disk?

Make sure that the boot partition has been duplicated on both disks, and that SILO has been installed on both "whole disk" partitions (/dev/sdn3).

On some systems RAID autodetection does not work properly when using a software RAID. In that case, append lines for your setup to /etc/silo.conf like the following example:

append="md=0,/dev/sda1,/dev/sdb1"


You can use a raid1 for /boot (though it's not necessary) and have a raid0 for /
Back to top
View user's profile Send private message
dzoster
n00b
n00b


Joined: 10 Jun 2005
Posts: 19

PostPosted: Fri Jun 10, 2005 11:00 pm    Post subject: Thank you for you fast reply! Reply with quote

Thank you for you fast reply!

yes thats what i thought i have read that it was possible somewhere but idk i think they were talking about raid 1 ok,

now gentoo-sparc-sources is a 2.4 kernel, what do i need to enable within the kernel to get the md's mounted? ( what raid device)
What should i use 2.4 or 2.6?
do i need to put a script in this boot partition to boot the raid?
do i need to patch the kernel, if so where can i find a raid0 patch?
and is setting up silo for raid0 similar to lilo?

Thanks Again!
Back to top
View user's profile Send private message
ansient
Guru
Guru


Joined: 22 Jan 2005
Posts: 445
Location: Argentina

PostPosted: Fri Jun 10, 2005 11:16 pm    Post subject: Reply with quote

if silo is anything like grub, it will load your kernel from /boot. Your kernel will take over from there. Any partitions of type "Linux Raid Autodetect" will be auto-detected by the kernel's md driver (assuming you have raid0 support configured from your kernel's make menuconfig and compiled).

The only thing your bootloader will need to do is pass the appropriate root=/dev/md/# parameter, which you will know from creating the raid0 before creating your filesystem, extracting the stage tarball, etc.
Back to top
View user's profile Send private message
dzoster
n00b
n00b


Joined: 10 Jun 2005
Posts: 19

PostPosted: Fri Jun 10, 2005 11:47 pm    Post subject: Great Reply with quote

I hope it really is that easy, ( silo has been descibed to me as a ancient version of lilo) grub is awesome and so powerfull i wish it was ported to sparc.

as far as configuring sparc-sources kernel for raid0 if anyone has any info on it it would be greatly appriciated. and if i can get a stable 2.6 on sparc i would love to know how. ( i looked through the kernel config today an did not see the raid options) i might be blind idk

But thanks alot!
Back to top
View user's profile Send private message
ansient
Guru
Guru


Joined: 22 Jan 2005
Posts: 445
Location: Argentina

PostPosted: Fri Jun 10, 2005 11:54 pm    Post subject: Reply with quote

make menuconfig

Device Drivers ->Multi-device support (RAID and LVM) ->
Back to top
View user's profile Send private message
dzoster
n00b
n00b


Joined: 10 Jun 2005
Posts: 19

PostPosted: Sat Jun 25, 2005 3:01 am    Post subject: My final word for those kids that browse the forums Reply with quote

Thank you for all your support!

I booted my system today, and everything worked fine, the kernel took care of the messy work!
Here is how i partitioned it
Quote:
/boot - 50M ext3 /dev/sda1 ext3
/swap - 512M /dev/sda2 /dev/sdb2 swap
/ - 3Gig /dev/sda4 /dev/sdb4 raid0 md4
/var - 3 Gig /dev/sda5 /dev/sdb5 raid 0 md5
/usr/portage - /dev/sda6 /dev/sdb6 raid0 md6
/usr - /dev/sda7 /dev/sdb7 raid0 md7
/home - /dev/sda8 /dev/sda8 raid0 md8


here is the silo.conf
Quote:


partition = 1 # Boot partition (= root partition)
root = /dev/md4 # Root partition
timeout = 150 # Wait 15 seconds before booting the default section

image = /boot/kernel-2.4.29
label = linux


i edited it in /etc/silo.conf
then moved it to my /boot partition

then (as i found in the handbook) i did

Quote:
# cp /etc/silo.conf /boot
# /sbin/silo -C /boot/silo.conf
/boot/silo.conf appears to be valid

that above command verify's and also installs silo!

YOU MUST DO IT AFTER EVERY COMPILE OF THE KERNEL, OR EDIT OF THE CONFIGURATION FILE.

Silo is picky

my friend also mentioned that silo breaks on hard reboots so be careful. and get you live cd or net boot ready

So build your raid support in the kernel (2.4 or 2.6) (not module)

also if you reboot use raidstart /dev/md*
(raidtab needs to be present and modprobe md needs to be done)


any questions, correctons post here

Thanks again for your quick reply's and help!! :D Gentoo Rocks!
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