Koozali.org: home of the SME Server

Raid 5 not possible

sixxxeight

Raid 5 not possible
« on: March 26, 2003, 08:19:54 PM »
I want to create a Raid 5 array on my sme 5.6 with 3x 40GB-IDE-Disks on a seperate Diskcontroler.

I've try it like this:
1.: part. and format my disks.
2.: create this /etc/raidtab:

raiddev      /dev/md0
    raid-level   5
    nr-raid-disks   3
    nr-spare-disks   0
#    persistent-superblock   1
    parity-algorithm   left-symmetric
    chunk-size   64
    device      /dev/hde5
    raid-disk   0
    device      /dev/hdf5
    raid-disk   1
    device      /dev/hdg5
    raid-disk   2

3.: raidstart /dev/md0
and get this message:
/dev/md0: Invalid argument

where is my misstake ???????????

Steve Brock

Re: Raid 5 not possible
« Reply #1 on: March 26, 2003, 09:12:11 PM »
Try leaving out the 'nr-spare-disks 0'

SalaTar

Re: Raid 5 not possible
« Reply #2 on: March 27, 2003, 04:01:20 PM »
mkraid /dev/md0

sixxxeight

Raid 5 is possible
« Reply #3 on: March 27, 2003, 06:49:03 PM »
SalaTar, that's it
.. your're my best friend !!!!

Ewald van Gemert

Raid 5, single HD size?
« Reply #4 on: September 27, 2003, 03:32:55 PM »
I have followed these exact rules.
I used 3x 120Gb disks on a SME 5.6 system.

I used mke2fs with options:
    -R stride=64
    -T largefile4
(I guessed these options.)

I run mkraid /dev/md0
I watch what's going on with:   more /proc/raidstat

after 6 hours raidstat says:  240 Gb free

mount /dev/md0 /mnt/md0

df says:  /dev/md0 120 Gb free !!!!!

Why can i only use 120 disk space? I should have 240 like raidstat says.

sixxxeight

Re: Raid 5, single HD size?
« Reply #5 on: September 27, 2003, 05:42:29 PM »
That's strange !!!
I've maid my Raid 5 with 6x40GB (3x40 and 3x39) and i have 183 GB formatet (ext3) Diskspace.
What does "raidstat" exaktly say ???

Ewald van Gemert

Re: Raid 5, single HD size?
« Reply #6 on: October 05, 2003, 04:55:58 PM »
Solved it....
I have to format my raid array ofcourse:

mke2fs /dev/md0




============================================
more /proc/mdstat:

Personalities : [raid5]
read_ahead 1024 sectors
md0 : active raid5 hdd5[2] hdc5[1] hda5[0]
      240107136 blocks level 5, 64k chunk, algorithm 2 [3/3] [UUU]
      [===>.................]  resync = 18.2% (21885536/120053568) finish=174.9min speed=9350K/sec
unused devices:



============================================
df:



Filesystem           1k-blocks      Used Available Use% Mounted on
/dev/sda3             17291004   5407576  11005076  33% /
/dev/sda1               101089      8838     87032  10% /boot
none                    257208         0    257208   0% /dev/shm
/dev/md0             236339584        20 224334208   1% /mnt/md0




============================================
more /etc/raidtab

#
# EvG: This is the configuration file for the RAID 5
#

raiddev /dev/md0
raid-level 5
nr-raid-disks 3
nr-spare-disks 0
persistent-superblock 1
parity-algorithm left-symmetric
chunk-size 64
device /dev/hda5
raid-disk 0
device /dev/hdc5
raid-disk 1
device /dev/hdd5
raid-disk 2