View previous topic :: View next topic |
Author |
Message |
jacob_dk n00b
Joined: 12 May 2006 Posts: 14
|
Posted: Fri Dec 08, 2006 5:55 pm Post subject: RAID5 8x320gb give a 42gb array [SOLVED] |
|
|
Hey,
I have 8x320gb disks and I wanted to create a RAID5 array of them.
I did the following:
Code: |
mdadm --create --verbose /dev/md5 --level=5 --raid-devices=8 /dev/sdb1 /dev/sdc1 /dev/sdd1 /dev/sde1 /dev/sdf1 /dev/sdg1 /dev/sdh1 /dev/sdi1
mdadm: layout defaults to left-symmetric
mdadm: chunk size defaults to 64K
mdadm: /dev/sdb1 appears to be part of a raid array:
level=raid5 devices=8 ctime=Fri Dec 8 18:08:42 2006
mdadm: /dev/sdc1 appears to be part of a raid array:
level=raid5 devices=8 ctime=Fri Dec 8 18:08:42 2006
mdadm: /dev/sdd1 appears to be part of a raid array:
level=raid5 devices=8 ctime=Fri Dec 8 18:08:42 2006
mdadm: /dev/sde1 appears to be part of a raid array:
level=raid5 devices=8 ctime=Fri Dec 8 18:08:42 2006
mdadm: /dev/sdf1 appears to be part of a raid array:
level=raid5 devices=8 ctime=Fri Dec 8 18:08:42 2006
mdadm: /dev/sdg1 appears to be part of a raid array:
level=raid5 devices=8 ctime=Fri Dec 8 18:08:42 2006
mdadm: /dev/sdh1 appears to be part of a raid array:
level=raid5 devices=8 ctime=Fri Dec 8 18:08:42 2006
mdadm: /dev/sdi1 appears to be part of a raid array:
level=raid5 devices=8 ctime=Fri Dec 8 18:08:42 2006
mdadm: size set to 312568576K
Continue creating array? y
mdadm: array /dev/md5 started.
|
And it gave me a 42gb large array instead of 7x320gb=2240gb!!
Code: |
mdadm -D /dev/md5
/dev/md5:
Version : 00.90.03
Creation Time : Fri Dec 8 18:08:42 2006
Raid Level : raid5
Array Size : 40496384 (38.62 GiB 41.47 GB)
Device Size : 312568576 (298.09 GiB 320.07 GB)
Raid Devices : 8
Total Devices : 8
Preferred Minor : 5
Persistence : Superblock is persistent
Update Time : Fri Dec 8 18:08:42 2006
State : clean, degraded, recovering
Active Devices : 7
Working Devices : 8
Failed Devices : 0
Spare Devices : 1
Layout : left-symmetric
Chunk Size : 64K
Rebuild Status : 0% complete
UUID : 527a18ef:5030cfff:a4753a46:14aaa541
Events : 0.1
Number Major Minor RaidDevice State
0 8 81 0 active sync /dev/sdb1
1 8 97 1 active sync /dev/sdc1
2 8 113 2 active sync /dev/sdd1
3 8 129 3 active sync /dev/sde1
4 8 65 4 active sync /dev/sdf1
5 8 49 5 active sync /dev/sdg1
6 8 33 6 active sync /dev/sdh1
8 8 17 7 spare rebuilding /dev/sdi1
|
Check the array size!?
Do someone know why this is happening and how I get the right size?
I'm using kernel 2.6.19-gentoo-r1.
Thanks!
Last edited by jacob_dk on Fri Dec 08, 2006 9:09 pm; edited 1 time in total |
|
Back to top |
|
|
erik258 Advocate
Joined: 12 Apr 2005 Posts: 2650 Location: Twin Cities, Minnesota, USA
|
Posted: Fri Dec 08, 2006 8:44 pm Post subject: |
|
|
did you enable support for large block devices (>1TB ) in the kernel? _________________ Configuring a Firewall? Try my iptables configuration
LinuxCommando.com is my blog for linux-related scraps and tidbits. Stop by for a visit! |
|
Back to top |
|
|
jacob_dk n00b
Joined: 12 May 2006 Posts: 14
|
Posted: Fri Dec 08, 2006 9:08 pm Post subject: |
|
|
Nope, but its enabled now and everything is working.
Thanks a lot for pointing it out for me! |
|
Back to top |
|
|
|