4 x 4TB Raid 5 using mdadm reporting wrong size?

j4jes

Honorable
Jan 16, 2013
13
0
10,510
I just assembled a raid 5 on centos using mdadm and with four 4TB drives it is reporting only a 6TB volume! It is reporting everything okay except for the size. Any ideas?

[root@stokenstein backup]# mdadm --detail --scan
ARRAY /dev/md0 level=raid5 num-devices=4 metadata=0.90 UUID=d4940113:183c181c:bf5926c2:5c885161
[root@stokenstein backup]# mdadm --examine /dev/sdc1
/dev/sdc1:
Magic : a92b4efc
Version : 0.90.00
UUID : d4940113:183c181c:bf5926c2:5c885161
Creation Time : Mon Jan 13 23:46:23 2014
Raid Level : raid5
Used Dev Size : 2147480704 (2048.00 GiB 2199.02 GB)
Array Size : 6442442112 (6143.99 GiB 6597.06 GB)
Raid Devices : 4
Total Devices : 4
Preferred Minor : 0

Update Time : Tue Jan 14 00:28:22 2014
State : active
Active Devices : 4
Working Devices : 4
Failed Devices : 0
Spare Devices : 0
Checksum : d7876239 - correct
Events : 7

Layout : left-symmetric
Chunk Size : 64K

Number Major Minor RaidDevice State
this 2 8 33 2 active sync /dev/sdc1

0 0 8 1 0 active sync /dev/sda1
1 1 8 17 1 active sync /dev/sdb1
2 2 8 33 2 active sync /dev/sdc1
3 3 8 49 3 active sync /dev/sdd1
[root@stokenstein backup]# mdadm --examine /dev/sdb1
/dev/sdb1:
Magic : a92b4efc
Version : 0.90.00
UUID : d4940113:183c181c:bf5926c2:5c885161
Creation Time : Mon Jan 13 23:46:23 2014
Raid Level : raid5
Used Dev Size : 2147480704 (2048.00 GiB 2199.02 GB)
Array Size : 6442442112 (6143.99 GiB 6597.06 GB)
Raid Devices : 4
Total Devices : 4
Preferred Minor : 0

Update Time : Tue Jan 14 00:28:22 2014
State : active
Active Devices : 4
Working Devices : 4
Failed Devices : 0
Spare Devices : 0
Checksum : d7876227 - correct
Events : 7

Layout : left-symmetric
Chunk Size : 64K

Number Major Minor RaidDevice State
this 1 8 17 1 active sync /dev/sdb1

0 0 8 1 0 active sync /dev/sda1
1 1 8 17 1 active sync /dev/sdb1
2 2 8 33 2 active sync /dev/sdc1
3 3 8 49 3 active sync /dev/sdd1
[root@stokenstein backup]#
Message from syslogd@ at Tue Jan 14 00:52:49 2014 ...
stokenstein kernel: Disabling IRQ #7

[root@stokenstein backup]# mdadm --examine /dev/sdb1
/dev/sdb1:
Magic : a92b4efc
Version : 0.90.00
UUID : d4940113:183c181c:bf5926c2:5c885161
Creation Time : Mon Jan 13 23:46:23 2014
Raid Level : raid5
Used Dev Size : 2147480704 (2048.00 GiB 2199.02 GB)
Array Size : 6442442112 (6143.99 GiB 6597.06 GB)
Raid Devices : 4
Total Devices : 4
Preferred Minor : 0

Update Time : Tue Jan 14 08:44:47 2014
State : active
Active Devices : 4
Working Devices : 4
Failed Devices : 0
Spare Devices : 0
Checksum : d787d684 - correct
Events : 11

Layout : left-symmetric
Chunk Size : 64K

Number Major Minor RaidDevice State
this 1 8 17 1 active sync /dev/sdb1

0 0 8 1 0 active sync /dev/sda1
1 1 8 17 1 active sync /dev/sdb1
2 2 8 33 2 active sync /dev/sdc1
3 3 8 49 3 active sync /dev/sdd1
[root@stokenstein backup]#
[root@stokenstein backup]# fdisk -l

Disk /dev/hda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hda1 * 1 13 104391 83 Linux
/dev/hda2 14 19457 156183930 8e Linux LVM

WARNING: The size of this disk is 4.0 TB (4000787030016 bytes).
DOS partition table format can not be used on drives for volumes
larger than 2.2 TB (2199023255040 bytes). Use parted(1) and GUID
partition table format (GPT).


Disk /dev/sda: 4000.7 GB, 4000787030016 bytes
255 heads, 63 sectors/track, 486401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sda1 1 267349 2147480811 fd Linux raid autodetect

WARNING: GPT (GUID Partition Table) detected on '/dev/sdb'! The util fdisk doesn't support GPT. Use GNU Parted.


WARNING: The size of this disk is 4.0 TB (4000787030016 bytes).
DOS partition table format can not be used on drives for volumes
larger than 2.2 TB (2199023255040 bytes). Use parted(1) and GUID
partition table format (GPT).


Disk /dev/sdb: 4000.7 GB, 4000787030016 bytes
255 heads, 63 sectors/track, 486401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sdb1 1 267349 2147480811 fd Linux raid autodetect

WARNING: The size of this disk is 4.0 TB (4000787030016 bytes).
DOS partition table format can not be used on drives for volumes
larger than 2.2 TB (2199023255040 bytes). Use parted(1) and GUID
partition table format (GPT).


Disk /dev/sdc: 4000.7 GB, 4000787030016 bytes
255 heads, 63 sectors/track, 486401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sdc1 1 267349 2147480811 fd Linux raid autodetect

WARNING: The size of this disk is 4.0 TB (4000787030016 bytes).
DOS partition table format can not be used on drives for volumes
larger than 2.2 TB (2199023255040 bytes). Use parted(1) and GUID
partition table format (GPT).


Disk /dev/sdd: 4000.7 GB, 4000787030016 bytes
255 heads, 63 sectors/track, 486401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sdd1 1 267349 2147480811 fd Linux raid autodetect

Disk /dev/md0: 6597.0 GB, 6597060722688 bytes
2 heads, 4 sectors/track, 1610610528 cylinders
Units = cylinders of 8 * 512 = 4096 bytes

Disk /dev/md0 doesn't contain a valid partition table
[root@stokenstein backup]#
 

j4jes

Honorable
Jan 16, 2013
13
0
10,510
Ok I think I fixed it with parted.


[root@stokenstein /]# mdadm --examine /dev/sdb1
mdadm: metadata format 1.00 unknown, ignored.
/dev/sdb1:
Magic : a92b4efc
Version : 1.0
Feature Map : 0x0
Array UUID : cd301b4a:e56566b5:8a527c22:9114a81c
Name : 0
Creation Time : Tue Jan 14 10:53:59 2014
Raid Level : raid5
Raid Devices : 4

Avail Dev Size : 7814036824 (3726.02 GiB 4000.79 GB)
Array Size : 23442110208 (11178.07 GiB 12002.36 GB)
Used Dev Size : 7814036736 (3726.02 GiB 4000.79 GB)
Super Offset : 7814037080 sectors
State : active
Device UUID : 69c28c37:391a981f:becdf600:d305dd27

Update Time : Tue Jan 14 10:56:34 2014
Checksum : 82baf241 - correct
Events : 1

Layout : left-symmetric
Chunk Size : 64K

Array Slot : 1 (0, 1, 2, 3)
Array State : uUuu
[root@stokenstein /]#
 

Latest posts