Skip to contentSkip to conversation

Array of disks attached to multiple controllers

DISCUSSION Lukas Kubin 4 participants 7 messages Sep 14, 2004 MD RAID

lore
Share & tools
lore
#0 lore raw

I'm having troubles creating Raid-5 array consisted of 16 (+1 spare) disks attached to two 3ware (not same version) SATA controllers.

Mkraid creates the array without problems, however the array's total size only equals the sum of space on drives attached to the first of 2 controllers. Ie, sd{b..f} are on scsi0 and sd{g..r} on scsi1. The space of created array is close to the sum of drives attechted to scsi0 only.

Is it possible to combine drives on 2 controllers into one array? If not, what solution should I use to have one filesystem containing whole the drivespace on Raid-5?

Thank you.

lukas

Signature · 10 lines
Lukas Kubin

phone: +420596398275
email: [email protected]

Information centre
The School of Business Administration in Karvina
Silesian University in Opava
Czech Republic
http://www.opf.slu.cz

begin:vcard
fn:Lukas Kubin
n:Kubin;Lukas
org:The School of Business Administration in Karvina;Information centre adr:;;Univerzitni namesti 1934/3;Karvina;;73340;Czech Republic email;internet:[email protected]
title:Network administrator
tel;work:+420596398275
x-mozilla-html:FALSE
url:http://www.opf.slu.cz
version:2.1
end:vcard

#1 lore raw

Give us more info.
Output from mdadm -D /dev/md?

Guy

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Lukas Kubin
Sent: Tuesday, September 14, 2004 9:22 AM
To: [email protected]
Subject: Array of disks attached to multiple controllers

I'm having troubles creating Raid-5 array consisted of 16 (+1 spare) disks attached to two 3ware (not same version) SATA controllers.

Mkraid creates the array without problems, however the array's total size only equals the sum of space on drives attached to the first of 2 controllers. Ie, sd{b..f} are on scsi0 and sd{g..r} on scsi1. The space of created array is close to the sum of drives attechted to scsi0 only.

Is it possible to combine drives on 2 controllers into one array? If not, what solution should I use to have one filesystem containing whole the drivespace on Raid-5?

Thank you.

lukas

Signature · 10 lines
Lukas Kubin

phone: +420596398275
email: [email protected]

Information centre
The School of Business Administration in Karvina
Silesian University in Opava
Czech Republic
http://www.opf.slu.cz
#2 lore raw

Ok, the output follows:

=====

/dev/md0:

        Version : 00.90.00
  Creation Time : Tue Sep 14 16:02:42 2004
     Raid Level : raid5
     Array Size : 782929792 (746.66 GiB 801.72 GB)
    Device Size : 195360896 (186.31 GiB 200.05 GB)

Raid Devices : 16
Total Devices : 17
Preferred Minor : 0
Persistence : Superblock is persistent

Update Time : Tue Sep 14 16:02:42 2004
State : dirty, recovering
Active Devices : 16
Working Devices : 17
Failed Devices : 0
Spare Devices : 1

Layout : left-symmetric
Chunk Size : 128K

Rebuild Status : 0% complete

Number Major Minor RaidDevice State
0 8 16 0 active sync /dev/sdb
1 8 32 1 active sync /dev/sdc
2 8 48 2 active sync /dev/sdd
3 8 64 3 active sync /dev/sde
4 8 80 4 active sync /dev/sdf
5 8 96 5 active sync /dev/sdg
6 8 112 6 active sync /dev/sdh
7 8 128 7 active sync /dev/sdi
8 8 144 8 active sync /dev/sdj
9 8 160 9 active sync /dev/sdk
10 8 176 10 active sync /dev/sdl
11 8 192 11 active sync /dev/sdm
12 8 208 12 active sync /dev/sdn
13 8 224 13 active sync /dev/sdo
14 8 240 14 active sync /dev/sdp
15 65 0 15 active sync /dev/sdq
16 65 16 16 spare /dev/sdr
UUID : c18d1ba9:d7d4f338:6d83a4e1:023cbbdb
Events : 0.1

=====

All the disks are SATA 200GB, the first controller (for drives sd{a..f}) is 3ware 8xxx, the second is 3ware 9000 ATA Raid controller. The first controller uses 3w-xxxx kernel module, the second one 3x-9xxx on linux 2.4.27.

Thank you for any help.

lukas

Quoted 23 lines · Guy

Give us more info.
Output from mdadm -D /dev/md?

Guy

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Lukas Kubin
Sent: Tuesday, September 14, 2004 9:22 AM
To: [email protected]
Subject: Array of disks attached to multiple controllers

I'm having troubles creating Raid-5 array consisted of 16 (+1 spare) disks attached to two 3ware (not same version) SATA controllers.

Mkraid creates the array without problems, however the array's total size only equals the sum of space on drives attached to the first of 2 controllers. Ie, sd{b..f} are on scsi0 and sd{g..r} on scsi1. The space of created array is close to the sum of drives attechted to scsi0 only.

Is it possible to combine drives on 2 controllers into one array? If not, what solution should I use to have one filesystem containing whole the drivespace on Raid-5?

Thank you.

lukas

Signature · 10 lines
Lukas Kubin

phone: +420596398275
email: [email protected]

Information centre
The School of Business Administration in Karvina
Silesian University in Opava
Czech Republic
http://www.opf.slu.cz

begin:vcard
fn:Lukas Kubin
n:Kubin;Lukas
org:The School of Business Administration in Karvina;Information centre adr:;;Univerzitni namesti 1934/3;Karvina;;73340;Czech Republic email;internet:[email protected]
title:Network administrator
tel;work:+420596398275
x-mozilla-html:FALSE
url:http://www.opf.slu.cz
version:2.1
end:vcard

#3 lore raw
Quoted 1 line · Lukas Kubin

Chunk Size : 128K

(...)

Quoted 10 lines

Number Major Minor RaidDevice State
0 8 16 0 active sync /dev/sdb
1 8 32 1 active sync /dev/sdc
2 8 48 2 active sync /dev/sdd
3 8 64 3 active sync /dev/sde
4 8 80 4 active sync /dev/sdf
5 8 96 5 active sync /dev/sdg
6 8 112 6 active sync /dev/sdh
7 8 128 7 active sync /dev/sdi
8 8 144 8 active sync /dev/sdj

Quoted 8 lines

9 8 160 9 active sync /dev/sdk
10 8 176 10 active sync /dev/sdl
11 8 192 11 active sync /dev/sdm
12 8 208 12 active sync /dev/sdn
13 8 224 13 active sync /dev/sdo
14 8 240 14 active sync /dev/sdp
15 65 0 15 active sync /dev/sdq
16 65 16 16 spare /dev/sdr

I have a question about performance: What is the cost of writing a 'data-unit' in such an array?

- Write data: 1 write
- Calculate new checksum: 14 reads
- Write checksum: 1 write

Right or wrong?

What is the granularity of thoses ckecksum updates? 512 bytes (sector size)? 4k (page size on i386)? chunk-size?

Does Linux do read-ahead on thoses 14 disks reads?

Thanks

Signature · 1 line
Seb, autocuiseur
#4 lore raw

I know this one! Got to go from memory since I can't find Neil's answer.

md will do 4K disk I/O. I am not sure about the size, but much smaller than normal stripe size.
If you were to change 1 sector, md would read the 4K that contains the sector, and read the 4K of parity. Factor out the old data, factor in the new data. Then write the new 4K data and 4K parity.

- Get old data: 1 read (4K)
- Get current/old parity: 1 read (4K)
- factor out old data (XOR)
- compute new parity (XOR)
- Write data: 1 write (4k)
- Write parity: 1 write (4k)

There is some read-ahead, but I don't know what layer does that. My array is over 3 times as fast as a single disk. Using dd I get 19M/sec on any 1 disk, but 61M/sec on the array. My write speed is 30M/sec creating a file on a filesystem.
Multi-threaded random read speed is much faster than 1 disk. Maybe 14 times faster, but not sure.

Guy

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Sebastien Koechlin
Sent: Tuesday, September 14, 2004 10:46 AM
To: Lukas Kubin
Cc: Guy; [email protected]
Subject: Re: Array of disks attached to multiple controllers

Quoted 1 line · Lukas Kubin

Chunk Size : 128K

(...)

Quoted 10 lines

Number Major Minor RaidDevice State
0 8 16 0 active sync /dev/sdb
1 8 32 1 active sync /dev/sdc
2 8 48 2 active sync /dev/sdd
3 8 64 3 active sync /dev/sde
4 8 80 4 active sync /dev/sdf
5 8 96 5 active sync /dev/sdg
6 8 112 6 active sync /dev/sdh
7 8 128 7 active sync /dev/sdi
8 8 144 8 active sync /dev/sdj

Quoted 8 lines

9 8 160 9 active sync /dev/sdk
10 8 176 10 active sync /dev/sdl
11 8 192 11 active sync /dev/sdm
12 8 208 12 active sync /dev/sdn
13 8 224 13 active sync /dev/sdo
14 8 240 14 active sync /dev/sdp
15 65 0 15 active sync /dev/sdq
16 65 16 16 spare /dev/sdr

I have a question about performance: What is the cost of writing a 'data-unit' in such an array?

- Write data: 1 write
- Calculate new checksum: 14 reads
- Write checksum: 1 write

Right or wrong?

What is the granularity of thoses ckecksum updates? 512 bytes (sector size)? 4k (page size on i386)? chunk-size?

Does Linux do read-ahead on thoses 14 disks reads?

Thanks

Signature · 5 lines
Seb, autocuiseur
-
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
#5 lore raw
In reply to Lukas Kubin

Well I have a clue!
<Device size> X (<Number of disks> - 1) 195360896 X (16-1) = 2930413440 (a very nice number!)

I think you have crossed a 2T limit.
Subtract 2T from the expected size and you get you size. 2930413440 - 2^31 = 782929792 (This is your size!)

2^31 = 2T. (we have 1K blocks)

You have exceeded a 2T limit somewhere. I don't know where the limit is. I thought I read that devices were limited to 2T, but arrays could be larger. Maybe you have an older kernel that only supports 2T. My 14 disk monster array is just over 200Gig, so I have not had this problem. A new kernel may help, but I don't know. Time for Neil to help! :)

I think you will be fine if you only use 11 disks! 195360896 * (11-1) = 1953608960 (this is under the 2T limit).

Guy

-----Original Message-----
From: Lukas Kubin [mailto:[email protected]]
Sent: Tuesday, September 14, 2004 10:08 AM
To: Guy
Cc: [email protected]
Subject: Re: Array of disks attached to multiple controllers

Ok, the output follows:

=====

/dev/md0:

         Version : 00.90.00

Creation Time : Tue Sep 14 16:02:42 2004
Raid Level : raid5
Array Size : 782929792 (746.66 GiB 801.72 GB)
Device Size : 195360896 (186.31 GiB 200.05 GB)
Raid Devices : 16
Total Devices : 17
Preferred Minor : 0
Persistence : Superblock is persistent

Update Time : Tue Sep 14 16:02:42 2004
State : dirty, recovering
Active Devices : 16
Working Devices : 17
Failed Devices : 0
Spare Devices : 1

Layout : left-symmetric
Chunk Size : 128K

Rebuild Status : 0% complete

Number Major Minor RaidDevice State
0 8 16 0 active sync /dev/sdb
1 8 32 1 active sync /dev/sdc
2 8 48 2 active sync /dev/sdd
3 8 64 3 active sync /dev/sde
4 8 80 4 active sync /dev/sdf
5 8 96 5 active sync /dev/sdg
6 8 112 6 active sync /dev/sdh
7 8 128 7 active sync /dev/sdi
8 8 144 8 active sync /dev/sdj
9 8 160 9 active sync /dev/sdk
10 8 176 10 active sync /dev/sdl
11 8 192 11 active sync /dev/sdm
12 8 208 12 active sync /dev/sdn
13 8 224 13 active sync /dev/sdo
14 8 240 14 active sync /dev/sdp
15 65 0 15 active sync /dev/sdq
16 65 16 16 spare /dev/sdr
UUID : c18d1ba9:d7d4f338:6d83a4e1:023cbbdb
Events : 0.1

=====

All the disks are SATA 200GB, the first controller (for drives sd{a..f}) is 3ware 8xxx, the second is 3ware 9000 ATA Raid controller. The first controller uses 3w-xxxx kernel module, the second one 3x-9xxx on linux 2.4.27.

Thank you for any help.

lukas

Quoted 29 lines · Guy

Give us more info.
Output from mdadm -D /dev/md?

Guy

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Lukas Kubin
Sent: Tuesday, September 14, 2004 9:22 AM
To: [email protected]
Subject: Array of disks attached to multiple controllers

I'm having troubles creating Raid-5 array consisted of 16 (+1 spare) disks attached to two 3ware (not same version) SATA controllers.

Mkraid creates the array without problems, however the array's total size only equals the sum of space on drives attached to the first of 2 controllers. Ie, sd{b..f} are on scsi0 and sd{g..r} on scsi1. The space of created array is close to the sum of drives attechted to scsi0 only.

Is it possible to combine drives on 2 controllers into one array? If not, what solution should I use to have one filesystem containing whole the drivespace on Raid-5?

Thank you.

lukas

Signature · 10 lines
Lukas Kubin

phone: +420596398275
email: [email protected]

Information centre
The School of Business Administration in Karvina
Silesian University in Opava
Czech Republic
http://www.opf.slu.cz
#6 lore raw
Quoted 8 lines · On Tuesday September 14, [email protected] wrote:

Well I have a clue!
<Device size> X (<Number of disks> - 1) 195360896 X (16-1) = 2930413440 (a very nice number!)

I think you have crossed a 2T limit.
Subtract 2T from the expected size and you get you size. 2930413440 - 2^31 = 782929792 (This is your size!)

Quoted 7 lines

2^31 = 2T. (we have 1K blocks)

You have exceeded a 2T limit somewhere. I don't know where the limit is. I thought I read that devices were limited to 2T, but arrays could be larger. Maybe you have an older kernel that only supports 2T. My 14 disk monster array is just over 200Gig, so I have not had this problem. A new kernel may help, but I don't know. Time for Neil to help! :)

2.4 kernels on 32bit processors cannot handle devices larger than 2^32
sectors (2T). Maybe not even bigger than 1T, I'm not sure.

2.6 kernels can if you select CONFIG_LBD (Large Block Devices).

Quoted 3 lines

I think you will be fine if you only use 11 disks! 195360896 * (11-1) = 1953608960 (this is under the 2T limit).

Worth a try, as is using 2.6

NeilBrown