Skip to contentSkip to conversation

Doubts about array size

DISCUSSION Bruno Costacurta 2 participants 3 messages Oct 17, 2006 – Oct 18, 2006 MD RAID

lore
Share & tools
lore
#0 lore raw

Hello,

I built my first RAID with 2 disks.

Array looks active (please see hereafter) but I'm confusing about size :
having 2 disks of 160-Gb each I expect a size of 160-Gb (correct ?) but array size seems around 103-Gb.
I also received a 'Disk /dev/md0 doesn't contain a valid partition table'

Please find hereafer outputs for commands of fdisk and mdadm :

'fdisk -l' return:

-start-
Disk /dev/sdb: 163.9 GB, 163928604672 bytes
255 heads, 63 sectors/track, 19929 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1               1       19453   156256191   fd  Linux raid autodetect

Disk /dev/sdc: 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/sdc1               1       19453   156256191   fd  Linux raid autodetect

Disk /dev/md0: 106 MB, 106823680 bytes
2 heads, 4 sectors/track, 26080 cylinders
Units = cylinders of 8 * 512 = 4096 bytes

Disk /dev/md0 doesn't contain a valid partition table -end-

'mdadm --detail /dev/md0' :
-start-
/dev/md0:

        Version : 00.90.03
  Creation Time : Tue Oct 17 21:26:43 2006
     Raid Level : raid1
     Array Size : 104320 (101.89 MiB 106.82 MB)
    Device Size : 104320 (101.89 MiB 106.82 MB)

Raid Devices : 2
Total Devices : 2
Preferred Minor : 0
Persistence : Superblock is persistent

Update Time : Tue Oct 17 21:32:33 2006
State : clean
Active Devices : 2
Working Devices : 2
Failed Devices : 0
Spare Devices : 0

UUID : 39877482:3daad5f3:a9b54997:0c328c24
Events : 0.24

Number Major Minor RaidDevice State
0 8 17 0 active sync /dev/sdb1
1 8 33 1 active sync /dev/sdc1
-end-

Cheers for help and advice.
Bruno

#1 lore raw
Quoted 7 lines · Bruno Costacurta

Hello,

I built my first RAID with 2 disks.

Array looks active (please see hereafter) but I'm confusing about size :
having 2 disks of 160-Gb each I expect a size of 160-Gb (correct ?) but array size seems around 103-Gb.

Your array is not 103-Gb, but 103-Mb.

Quoted 4 lines

Disk /dev/md0: 106 MB, 106823680 bytes
2 heads, 4 sectors/track, 26080 cylinders
Units = cylinders of 8 * 512 = 4096 bytes

Quoted 8 lines

'mdadm --detail /dev/md0' :
-start-
/dev/md0:

        Version : 00.90.03
  Creation Time : Tue Oct 17 21:26:43 2006
     Raid Level : raid1
     Array Size : 104320 (101.89 MiB 106.82 MB)
    Device Size : 104320 (101.89 MiB 106.82 MB)

What did you do to create the device? Did you change the disks recently, or add new disks?

You could try to grow the RAID (mdadm -G /dev/md0 -z max), but I would be wary of doing that until I knew why the disks showed the small size.

Forrest

#2 lore raw
Quoted 24 lines · Forrest Taylor
Quoted 7 lines · Bruno Costacurta

Hello,

I built my first RAID with 2 disks.

Array looks active (please see hereafter) but I'm confusing about size :
having 2 disks of 160-Gb each I expect a size of 160-Gb (correct ?) but array size seems around 103-Gb.

Your array is not 103-Gb, but 103-Mb.

Quoted 4 lines

Disk /dev/md0: 106 MB, 106823680 bytes
2 heads, 4 sectors/track, 26080 cylinders
Units = cylinders of 8 * 512 = 4096 bytes

Quoted 8 lines

'mdadm --detail /dev/md0' :
-start-
/dev/md0:

        Version : 00.90.03
  Creation Time : Tue Oct 17 21:26:43 2006
     Raid Level : raid1
     Array Size : 104320 (101.89 MiB 106.82 MB)
    Device Size : 104320 (101.89 MiB 106.82 MB)
Quoted 7 lines

What did you do to create the device? Did you change the disks recently, or add new disks?

You could try to grow the RAID (mdadm -G /dev/md0 -z max), but I would be wary of doing that until I knew why the disks showed the small size.

Forrest

Hello,
looks better now...
It seems my previous fdisk commands to set type 'Linux raid autodetect' were incorrect because not completely removed previous partitions. Size looks correct.
...
mdadm --misc --detail /dev/md0
/dev/md0:

        Version : 00.90.03
  Creation Time : Tue Oct 17 23:24:25 2006
     Raid Level : raid1
     Array Size : 154304192 (147.16 GiB 158.01 GB)
    Device Size : 154304192 (147.16 GiB 158.01 GB)

Raid Devices : 2
Total Devices : 2
Preferred Minor : 0
Persistence : Superblock is persistent

Update Time : Wed Oct 18 06:20:20 2006
State : clean
Active Devices : 2
Working Devices : 2
Failed Devices : 0
Spare Devices : 0

UUID : c27fb118:876d28b2:47dd7e83:d14c4332
Events : 0.12

Number Major Minor RaidDevice State
0 8 17 0 active sync /dev/sdb1
1 8 33 1 active sync /dev/sdc1
...

Bye,
Bruno