ralph at crongeyer.com
Tue Jan 16 21:41:03 CET 2007
Thanks for the help on this everyone.
I have another question about SW RAID and FAI.
I found this online
Is this the current way to set this up?
I think I need to do this in "/srv/fai/config/disk_config/FAIBASE":
primary swap 2000 rw ; raid(1,md0)
primary /boot 500 rw ; -c -j ext3 raid(1,md1)
primary / 5000 rw,errors=remount-ro ; -c -j ext3 raid
logical /var/log 10000 rw ; -c -j ext3 raid(1,md3)
logical /var/log/apache 0- rw ; -c -j ext3 raid(1,md4)
primary - 2000 ; raid(1,md0)
primary - 500 ; raid(1,md1)
primary - 5000 ; raid(1,md2)
logical - 10000 ; raid(1,md3)
logical - 0- ; raid(1,md4)
to get this result:
config# cat /proc/mdstat
Personalities : [raid1]
md4 : active raid1 sda6 sdb6
55512512 blocks [2/2] [UU]
md3 : active raid1 sda5 sdb5
9767424 blocks [2/2] [UU]
md2 : active raid1 sda3 sdb3
4883648 blocks [2/2] [UU]
md1 : active raid1 sda2 sdb2
489856 blocks [2/2] [UU]
md0 : active raid1 sda1 sdb1
1951744 blocks [2/2] [UU]
Is this correct?
Ralph Crongeyer <ralph at crongeyer.com> 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?
>Henning Sprang <henning_sprang at gmx.de> wrote:
>>On 1/16/07, Ralph Crongeyer <ralph at crongeyer.com> wrote:
>>> I want to have the last logical partition use the remaining disk space,
>>> 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)?
More information about the linux-fai