Re: Bootstrapping Raid 5 w/GEOM

2005-07-22 Thread Ivailo Tanusheff
Norberto Meijome [EMAIL PROTECTED] 
Sent by: [EMAIL PROTECTED]
07/21/2005 03:41 PM

To
FreeBSD Questions freebsd-questions@freebsd.org
cc

Subject
Re: Bootstrapping Raid 5 w/GEOM






Michael Dale wrote:
 Norberto Meijome wrote:
 
 So, should I
 1) Boot up with Disc 1, install minimal config, reboot
 2) setup GEOM RAID 5 on all the discs ?
 3) edit fstab to point to /dev/[what??]/[what else] instead of 
 /ad0s1[abef] ?

 
 When I installed GEOM for a RAID 1 setup I did the following:
 
 Install FreeBSD on ad0
 Boot CD and run fixit mode
 Setup GEOM and change fstab to gm0
 
 Linky:
 http://dannyman.toldme.com/2005/01/24/freebsd-howto-gmirror-system/

Cheers Michael - that's a great bit of info. Do you know how to do RAID5 ?
I read in

http://www.essenz.com/support/lists/hackers/20040118/69.html

about geom_raid, but it seems to be lost after that.

The other alternative may be to setup a RAID1+0, but that shrinks my 
usable space, and I'm not sure how reliable/advisable it is to do in 
software.

Thanks again,
Beto



It's not possible to use RAID 5 for bootable slice, so I would suggest:
- Create a mirrored slice for the root FS 
- Create a RAID 5 slice for the other FS

I did the same here with vinum. Also as you have 3 disks you can make a 3 
disks mirror for the boot slice. The other option is to make mirror on 2 
disks and on third to put swap :)

Best regards,

Ivailo Tanusheff
Senior System administrator
ProCredit Bank (Bulgaria) AD

tel. +359 2 921 7161
fax +359 2 921 7110
http://www.procreditbank.bg


Disclaimer: The information contained in this message is intended solely 
for the use of individual or entity to whom it is addressed and other 
authorized to receive it. It may contain confidential or legally 
privileged information. If you are not the intended recipient you are 
hereby notified that any disclosure, copying, distribution or taking any 
action in reliance on the contents of this message is strictly prohibited 
and may be unlawful. If you have received this communication in error, 
please notify us immediately by responding to this email and then delete 
it from your system. ProCredit Bank is neither liable for the proper and 
complete transmission of the information contained in this message nor for 
any delay in its receipt. 
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Bootstrapping Raid 5 w/GEOM

2005-07-21 Thread Norberto Meijome

Hi all,
I have a box with 4 x 120 GB EIDE drives which I want to convert to 
FreeBSD 5.4 ( it's an old SNAP 4500 from Snap Appliance, now owned by 
Adaptec, running a custom build of Linux)


I want to setup software Raid 5 , and I want it to affect ALL 
partitions, including / (so if any one of the drives fails, it will 
still boot up properly). I am planning on using GEOM, but open to 
suggestions.


I've been searching and cant find any pointers on how to set this up 
properly. I've been reading http://people.freebsd.org/~rse/mirror/ , but 
this is works for RAID 1.


Could anyone offer any insights / ideas / pointers (or step by step if 
you so feel inclined to :-) ) on how to set this up?


Thanks in advance,
Beto
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Bootstrapping Raid 5 w/GEOM

2005-07-21 Thread Daniel Marsh
On Thu, 21 Jul 2005 15:11:18 +0800, Norberto Meijome [EMAIL PROTECTED]  
wrote:



Hi all,
I have a box with 4 x 120 GB EIDE drives which I want to convert to  
FreeBSD 5.4 ( it's an old SNAP 4500 from Snap Appliance, now owned by  
Adaptec, running a custom build of Linux)


I want to setup software Raid 5 , and I want it to affect ALL  
partitions, including / (so if any one of the drives fails, it will  
still boot up properly). I am planning on using GEOM, but open to  
suggestions.


I've been searching and cant find any pointers on how to set this up  
properly. I've been reading http://people.freebsd.org/~rse/mirror/ , but  
this is works for RAID 1.


Could anyone offer any insights / ideas / pointers (or step by step if  
you so feel inclined to :-) ) on how to set this up?


Thanks in advance,
Beto


See gmirror and geom.
http://www.freebsd.org/cgi/man.cgi?query=gmirrorapropos=0sektion=0manpath=FreeBSD+5.4-RELEASE+and+Portsformat=html

http://www.freebsd.org/cgi/man.cgi?query=geomapropos=0sektion=0manpath=FreeBSD+5.4-RELEASE+and+Portsformat=html
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Bootstrapping Raid 5 w/GEOM

2005-07-21 Thread Norberto Meijome

Daniel Marsh wrote:
On Thu, 21 Jul 2005 15:11:18 +0800, Norberto Meijome 
[EMAIL PROTECTED]  wrote:



Hi all,
I have a box with 4 x 120 GB EIDE drives which I want to convert to  
FreeBSD 5.4 ( it's an old SNAP 4500 from Snap Appliance, now owned by  
Adaptec, running a custom build of Linux)


I want to setup software Raid 5 , and I want it to affect ALL  
partitions, including / (so if any one of the drives fails, it will  
still boot up properly). I am planning on using GEOM, but open to  
suggestions.





See gmirror and geom.
http://www.freebsd.org/cgi/man.cgi?query=gmirrorapropos=0sektion=0manpath=FreeBSD+5.4-RELEASE+and+Portsformat=html 



http://www.freebsd.org/cgi/man.cgi?query=geomapropos=0sektion=0manpath=FreeBSD+5.4-RELEASE+and+Portsformat=html 


Thanks for the links , but i'm not too sure what steps I ought to follow.

I basically want to have the RAID 5 across ad0, ad1, ad2, ad3 ,  and the 
partitions on top of that. and then build my system on top of that (as 
if it were a hardare RAID controller, and I'd be installing on top of 
amr0s1, for example). I think this should be doable, right?


So, should I
1) Boot up with Disc 1, install minimal config, reboot
2) setup GEOM RAID 5 on all the discs ?
3) edit fstab to point to /dev/[what??]/[what else] instead of 
/ad0s1[abef] ?


or

boot up with CD 1, run GEOM, build the raid 5 from here before 
installing anything, then install on top?


thanks for your all help :)

Beto
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Bootstrapping Raid 5 w/GEOM

2005-07-21 Thread Norberto Meijome

Norberto Meijome wrote:


So, should I
1) Boot up with Disc 1, install minimal config, reboot
2) setup GEOM RAID 5 on all the discs ?
3) edit fstab to point to /dev/[what??]/[what else] instead of 
/ad0s1[abef] ?


or

boot up with CD 1, run GEOM, build the raid 5 from here before 
installing anything, then install on top?



I must be missing something...how do I use GEOM to create a raid 5 
setup? hmmm...



___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Bootstrapping Raid 5 w/GEOM

2005-07-21 Thread Michael Dale

Norberto Meijome wrote:

So, should I
1) Boot up with Disc 1, install minimal config, reboot
2) setup GEOM RAID 5 on all the discs ?
3) edit fstab to point to /dev/[what??]/[what else] instead of 
/ad0s1[abef] ?




When I installed GEOM for a RAID 1 setup I did the following:

Install FreeBSD on ad0
Boot CD and run fixit mode
Setup GEOM and change fstab to gm0

Linky:
http://dannyman.toldme.com/2005/01/24/freebsd-howto-gmirror-system/


--
Michael Dale
[EMAIL PROTECTED]

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Bootstrapping Raid 5 w/GEOM

2005-07-21 Thread Stijn Hoop
On Thu, Jul 21, 2005 at 05:11:18PM +1000, Norberto Meijome wrote:
 Hi all,
 I have a box with 4 x 120 GB EIDE drives which I want to convert to 
 FreeBSD 5.4 ( it's an old SNAP 4500 from Snap Appliance, now owned by 
 Adaptec, running a custom build of Linux)
 
 I want to setup software Raid 5 , and I want it to affect ALL 
 partitions, including / (so if any one of the drives fails, it will 
 still boot up properly). I am planning on using GEOM, but open to 
 suggestions.
 
 I've been searching and cant find any pointers on how to set this up 
 properly. I've been reading http://people.freebsd.org/~rse/mirror/ , but 
 this is works for RAID 1.
 
 Could anyone offer any insights / ideas / pointers (or step by step if 
 you so feel inclined to :-) ) on how to set this up?

I don't think it's possible -- the loader doesn't know about the mirror
even in a mirrored / setup; it justs treats one of the disks of the mirror
as 'the boot disk'. It's not until the kernel is loaded that gvinum RAID-5
can do something.

So, in your case, the loader would read random RAID-5 data instead of
a kernel and refuse to boot.

IE, it's not possible until someone writes a RAID-5 capable loader.

I would advise you to either use gmirror for booting, or define a few
gvinum mirror plexes (it is possible to boot from a mirrored gvinum
setup although it's tricky to get right).

--Stijn

-- 
Help Wanted: Telepath. You know where to apply.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Bootstrapping Raid 5 w/GEOM

2005-07-21 Thread Norberto Meijome

Michael Dale wrote:

Norberto Meijome wrote:


So, should I
1) Boot up with Disc 1, install minimal config, reboot
2) setup GEOM RAID 5 on all the discs ?
3) edit fstab to point to /dev/[what??]/[what else] instead of 
/ad0s1[abef] ?




When I installed GEOM for a RAID 1 setup I did the following:

Install FreeBSD on ad0
Boot CD and run fixit mode
Setup GEOM and change fstab to gm0

Linky:
http://dannyman.toldme.com/2005/01/24/freebsd-howto-gmirror-system/


Cheers Michael - that's a great bit of info. Do you know how to do RAID5 ?
I read in

http://www.essenz.com/support/lists/hackers/20040118/69.html

about geom_raid, but it seems to be lost after that.

The other alternative may be to setup a RAID1+0, but that shrinks my 
usable space, and I'm not sure how reliable/advisable it is to do in 
software.


Thanks again,
Beto
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Bootstrapping Raid 5 w/GEOM

2005-07-21 Thread Norberto Meijome

Stijn Hoop wrote:

On Thu, Jul 21, 2005 at 05:11:18PM +1000, Norberto Meijome wrote:





I want to setup software Raid 5 , and I want it to affect ALL 
partitions, including / (so if any one of the drives fails, it will 
still boot up properly). I am planning on using GEOM, but open to 
suggestions.




I don't think it's possible -- the loader doesn't know about the mirror
even in a mirrored / setup; it justs treats one of the disks of the mirror
as 'the boot disk'. It's not until the kernel is loaded that gvinum RAID-5
can do something.


Would the same be true (not possible to boot) for a RAID 1 + 0 with GEOM?


So, in your case, the loader would read random RAID-5 data instead of
a kernel and refuse to boot.

IE, it's not possible until someone writes a RAID-5 capable loader.


right - so that's why I couldnt find any reference to this anywhere :)




I would advise you to either use gmirror for booting, or define a few
gvinum mirror plexes (it is possible to boot from a mirrored gvinum
setup although it's tricky to get right).


I guess I could create a boot slice in 2 of the drives, mirror that with 
gmirror and use that to boot. Then RAID-5 the rest of the drives (minus 
the size of the boot partition in the other 2 drives of course).


cheers,
B
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Bootstrapping Raid 5 w/GEOM

2005-07-21 Thread Stijn Hoop
On Thu, Jul 21, 2005 at 10:56:39PM +1000, Norberto Meijome wrote:
 Stijn Hoop wrote:
  On Thu, Jul 21, 2005 at 05:11:18PM +1000, Norberto Meijome wrote:
   I want to setup software Raid 5 , and I want it to affect ALL 
   partitions, including / (so if any one of the drives fails, it will 
   still boot up properly). I am planning on using GEOM, but open to 
   suggestions.
 
  I don't think it's possible -- the loader doesn't know about the mirror
  even in a mirrored / setup; it justs treats one of the disks of the mirror
  as 'the boot disk'. It's not until the kernel is loaded that gvinum RAID-5
  can do something.
 
 Would the same be true (not possible to boot) for a RAID 1 + 0 with GEOM?

Hmm, tricky. I guess if you can get the disk layout to mirror that of
a non-RAID one, the loader would be able to cope. Striping would be
impossible (at least not unless you can guarantee that the whole of
the kernel + / and /boot directory entries are available on one
stripe, and even then I'm not sure).

  So, in your case, the loader would read random RAID-5 data instead of
  a kernel and refuse to boot.
 
  IE, it's not possible until someone writes a RAID-5 capable loader.
 
 right - so that's why I couldnt find any reference to this anywhere :)

Probably.

  I would advise you to either use gmirror for booting, or define a few
  gvinum mirror plexes (it is possible to boot from a mirrored gvinum
  setup although it's tricky to get right).
 
 I guess I could create a boot slice in 2 of the drives, mirror that with 
 gmirror and use that to boot. Then RAID-5 the rest of the drives (minus 
 the size of the boot partition in the other 2 drives of course).

Yes. While on the subject, you could use 2 drives to mirror the boot
disk and have swap, and then use the same amount of space on the other
two drives to mirror /usr and /var. Then use RAID-5 for your data
partitions.  This way you'll have speed  reliability.

Be aware that RAID-5 is not ideal for many-write situations (most home
directories), although certainly tolerable with modern drives.

--Stijn

-- 
I wish there was a knob on the TV to turn up the intelligence.  There's a knob
called `brightness', but it doesn't work.
-- Gallagher
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]