Re: FAI partitioning.

2007-01-25 Thread Ralph Crongeyer
Thanks everyone for the responses.

Sorry I didn't answer back for so long but I got pulled off of this to 
another project.

But I now I'm back on getting FAI to do SW RAID.

Does anybody have a working SW RAID /srv/fai/config/disk_config/FAIBASE or 
FAISERVER file that they could share with me as an example?

I'm running FAI 3.1.4 that is packaged with Debian Etch.

Thanks

Anders Jackson [EMAIL PROTECTED] wrote: 
tis 2007-01-16 klockan 15:41 -0500 skrev Ralph Crongeyer:
 Thanks for the help on this everyone.
 I have another question about SW RAID and FAI.
 I found this online 

http://svn.debian.org/wsvn/fai/people/mugwump/lvmraid/examples/simple/disk_
c
 onfig/MIRRORED?op=filerev=0sc=0
 
 Is this the current way to set this up?
 
 I think I need to do this in /srv/fai/config/disk_config/FAIBASE:

As I wrote, have one gigant RAID-disk (for speed, using distributed
writes and reads on different controllers and disks). 
On top of that RAID-disk I would put a LVM system, so I could resize
those logical partitions when needed. Maybe do a RAID partition for
scratch data and one for rest of the system.

If I am shore I never will need to resize any partition, I go for a pure
RAID system.  And RAID don't free you from making backups.  You still
need it when a progam (or user) runs wild on your data.  RAID only
saves you from disk crashes, not from data losses.

But that is only my 5 öre.

/Jackson









Re: FAI partitioning.

2007-01-16 Thread Micha Beyer
at tuesday, 2007-01-16 5:31PM wrote Ralph Crongeyer:

[...]

 I want to have the last logical partition use the remaining disk space, is
 this correct just 0- ?

See yourself.

http://debiananwenderhandbuch.de/fai.html#faiclient
-- 
best regards,
 Michael


Re: FAI partitioning.

2007-01-16 Thread Henning Sprang

On 1/16/07, Ralph Crongeyer [EMAIL PROTECTED] wrote:

[...]
I want to have the last logical partition use the remaining disk space, is
this correct just 0- ?


Looks good, I am not sure if zero values work well, if not you might
do something like 10-
Do you see an error when you try this? Which one?

And, maybe a bit OT, and maybe I have just no enoughj knowledge about
SW RAID, but when doing RAID, isn't it better to take the full disks
and make the sw raid on them, then partition above the md devices
instead of paritioning the raw device, and doing sw raid for single
paritions (as it looks what you want to do here)?

Henning


Re: FAI partitioning.

2007-01-16 Thread Steffen Grunewald
On Tue, Jan 16, 2007 at 11:31:18AM -0500, Ralph Crongeyer wrote:
 Hi all,
 How do you tell FAI to use the rest of the disk?
[...]
 logical  -  0-
 
 I want to have the last logical partition use the remaining disk space, is 
 this correct just 0- ?

I've been using 1- for years... not sure whether 0 isn't handled different.

While we're at it I'd like to ask the developers: 
will there be support for BIG (yes, BIG: 6.4TB in my case) disks?
sfdisk's input file is created with the right numbers, but somewhere
there's an overrun (31 or 32 bits I guess) so instead of 6.4TB I'd get 0.4TB
only ...
I suppose the new setup_harddisks would switch to parted in such a case?

Cheers, 
 Steffen

-- 
Steffen Grunewald * MPI Grav.Phys.(AEI) * Am Mühlenberg 1, D-14476 Potsdam
Cluster Admin * http://pandora.aei.mpg.de/merlin/ * http://www.aei.mpg.de/
* e-mail: steffen.grunewald(*)aei.mpg.de * +49-331-567-{fon:7233,fax:7298}
No Word/PPT mails - http://www.gnu.org/philosophy/no-word-attachments.html



Re: FAI partitioning.

2007-01-16 Thread Ralph Crongeyer
Thanks for the info, I'll give it a try.
As far as the software RAID setup goes, I don't know?
This is the first time I've set up a SW Raid. However doing it this way if 
one set gets out of sync only that set needs to resync vs the entire disk.

Does anyone else have any advice on this?

Thanks!

Ralph

Henning Sprang [EMAIL PROTECTED] wrote: 
On 1/16/07, Ralph Crongeyer [EMAIL PROTECTED] wrote:
 [...]
 I want to have the last logical partition use the remaining disk space,
is
 this correct just 0- ?

Looks good, I am not sure if zero values work well, if not you might
do something like 10-
Do you see an error when you try this? Which one?

And, maybe a bit OT, and maybe I have just no enoughj knowledge about
SW RAID, but when doing RAID, isn't it better to take the full disks
and make the sw raid on them, then partition above the md devices
instead of paritioning the raw device, and doing sw raid for single
paritions (as it looks what you want to do here)?

Henning







Re: FAI partitioning.

2007-01-16 Thread Ralph Crongeyer
Thanks for the help on this everyone.
I have another question about SW RAID and FAI.
I found this online 
http://svn.debian.org/wsvn/fai/people/mugwump/lvmraid/examples/simple/disk_c
onfig/MIRRORED?op=filerev=0sc=0

Is this the current way to set this up?

I think I need to do this in /srv/fai/config/disk_config/FAIBASE:

disk_config sda
primary  swap   2000rw ; raid(1,md0)
primary  /boot  500 rw ; -c -j ext3 raid(1,md1)
primary  /  5000rw,errors=remount-ro ; -c -j ext3 raid
(1,md2)
logical  /var/log   1   rw ; -c -j ext3 raid(1,md3)
logical  /var/log/apache 0-  rw ; -c -j ext3 raid(1,md4)

disk_config sdb
primary  -  2000; raid(1,md0)
primary  -  500 ; raid(1,md1)
primary  -  5000; raid(1,md2)
logical  -  1   ; raid(1,md3)
logical  -  0-  ; raid(1,md4)

to get this result:

config# cat /proc/mdstat
Personalities : [raid1]
md4 : active raid1 sda6[0] sdb6[1]
  55512512 blocks [2/2] [UU]

md3 : active raid1 sda5[0] sdb5[1]
  9767424 blocks [2/2] [UU]

md2 : active raid1 sda3[0] sdb3[1]
  4883648 blocks [2/2] [UU]

md1 : active raid1 sda2[0] sdb2[1]
  489856 blocks [2/2] [UU]

md0 : active raid1 sda1[0] sdb1[1]
  1951744 blocks [2/2] [UU]

Is this correct?

Thanks

Ralph


Ralph Crongeyer [EMAIL PROTECTED] wrote: 
Thanks for the info, I'll give it a try.
As far as the software RAID setup goes, I don't know?
This is the first time I've set up a SW Raid. However doing it this way if

one set gets out of sync only that set needs to resync vs the entire disk.

Does anyone else have any advice on this?

Thanks!

Ralph

Henning Sprang [EMAIL PROTECTED] wrote: 
On 1/16/07, Ralph Crongeyer [EMAIL PROTECTED] wrote:
 [...]
 I want to have the last logical partition use the remaining disk space,
is
 this correct just 0- ?

Looks good, I am not sure if zero values work well, if not you might
do something like 10-
Do you see an error when you try this? Which one?

And, maybe a bit OT, and maybe I have just no enoughj knowledge about
SW RAID, but when doing RAID, isn't it better to take the full disks
and make the sw raid on them, then partition above the md devices
instead of paritioning the raw device, and doing sw raid for single
paritions (as it looks what you want to do here)?

Henning












Re: FAI partitioning.

2007-01-16 Thread Adrian von Bidder
On Tuesday 16 January 2007 17:55, Henning Sprang wrote:
 And, maybe a bit OT, and maybe I have just no enoughj knowledge about
 SW RAID, but when doing RAID, isn't it better to take the full disks
 and make the sw raid on them, then partition above the md devices
 instead of paritioning the raw device, and doing sw raid for single
 paritions (as it looks what you want to do here)?

Instinctively I'd do md raid on the whole disks, after all the 
canonical unit for RAID is disks, so you don't have to worry about 
syncing partition sectors manually.

OTOH md devices couldn't be partitioned until relatively recently, so md on 
top of the partitioning is what I have on my own machines as a left-over 
from when they were set up.  Also, many md Tutorials are probably written 
that way still.

Also, my desktop (without hot swap hardware or robust disk controller) is 
expected to crash on disk failure anyway, RAID is only so that I don't lose 
data.  So I have swap as the first partition on both disks and the rest of 
the disks for several RAID partitions.  That means that I have a partition 
sector on hda and hdc anyway, so adding another layer of partitioning 
inside the md doesn't necessarily make sense.

This is all pretty much intuition about what is a sane setup, tastes 
differ on this, I'm sure.

cheers
-- vbi

-- 
to debug such lockups in the future you can do:
...
NOTE: dont use the keyboard in this mode for too long, it can lock up.
-- Ingo Molnar, lkml


pgpeJw9hwtWBa.pgp
Description: PGP signature