linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: NeilBrown <neilb@suse.de>
To: Andrew <andyukguy@gmail.com>
Cc: linux-raid@vger.kernel.org
Subject: Re: mdadm "Used Dev Size" on 3TB drives
Date: Sat, 22 Oct 2011 09:40:16 +1100	[thread overview]
Message-ID: <20111022094016.02e8c800@notabene.brown> (raw)
In-Reply-To: <1C43E501-9252-4502-BAC7-0C67C15DC68E@gmail.com>

[-- Attachment #1: Type: text/plain, Size: 4798 bytes --]

On Fri, 21 Oct 2011 11:18:58 +0100 Andrew <andyukguy@gmail.com> wrote:

> Hi,
> 
> A fresh installation of mdadm in a raid1 profile on 2x3TB drives is reporting as follows:
> 
> /dev/md1:
>         Version : 01.00
>   Creation Time : Fri Oct 21 01:03:57 2011
>      Raid Level : raid1
>      Array Size : 2930147192 (2794.41 GiB 3000.47 GB)
>   Used Dev Size : 5860294384 (5588.81 GiB 6000.94 GB)

This looks like a bug that was fixed in Feb 2009 and so should not be present
after 2.6.9.

What version of mdadm are you using?

   mdadm -V


NeilBrown


>    Raid Devices : 2
>   Total Devices : 2
> Preferred Minor : 1
>     Persistence : Superblock is persistent
> 
>     Update Time : Fri Oct 21 10:40:09 2011
>           State : clean
>  Active Devices : 2
> Working Devices : 2
>  Failed Devices : 0
>   Spare Devices : 0
> 
>            Name : 1
>            UUID : 639ae43a:c079a412:3a0be350:72ff20be
>          Events : 46
> 
>     Number   Major   Minor   RaidDevice State
>        0       8        2        0      active sync   /dev/sda2
>        1       8       18        1      active sync   /dev/sdb2
> 
> While everything looks in order I've not seen Used Dev Size report double the disk size before on a mdadm raid1 array. Indeed on the /boot partition (md0) on the same drives it doesn't:
> 
> /dev/md0:
>         Version : 00.90
>   Creation Time : Fri Oct 21 01:03:40 2011
>      Raid Level : raid1
>      Array Size : 115648 (112.96 MiB 118.42 MB)
>   Used Dev Size : 115648 (112.96 MiB 118.42 MB)
>    Raid Devices : 2
>   Total Devices : 2
> Preferred Minor : 0
>     Persistence : Superblock is persistent
> 
>     Update Time : Fri Oct 21 06:53:22 2011
>           State : clean
>  Active Devices : 2
> Working Devices : 2
>  Failed Devices : 0
>   Spare Devices : 0
> 
>            UUID : e4d1bc12:51cd306a:de6491bb:b01e719b
>          Events : 0.18
> 
>     Number   Major   Minor   RaidDevice State
>        0       8        3        0      active sync   /dev/sda3
>        1       8       19        1      active sync   /dev/sdb3
> 
> and on other arrays on different servers it doesn't for any partition. The only thing I can see is that (oddly) the version number of mdadm changes between the md0 and md1 array. Is this simply a bug in v01.00 or should I be worried about the array's functionality and integrity?
> 
> Further info:
> 
> Model: ATA Hitachi HDS72303 (scsi)
> Disk /dev/sda: 3001GB
> Sector size (logical/physical): 512B/512B
> Partition Table: gpt
> 
> Number  Start   End     Size    File system  Name  Flags
>  1      1049kB  3146kB  2097kB                     bios_grub
>  3      3146kB  122MB   118MB   ext3               raid
>  2      122MB   3001GB  3000GB  ext4               raid
> 
> Model: ATA Hitachi HDS72303 (scsi)
> Disk /dev/sdb: 3001GB
> Sector size (logical/physical): 512B/512B
> Partition Table: gpt
> 
> Number  Start   End     Size    File system  Name  Flags
>  1      1049kB  3146kB  2097kB                     bios_grub
>  3      3146kB  122MB   118MB   ext3               raid
>  2      122MB   3001GB  3000GB  ext4               raid
> 
> /dev/sda2:
>           Magic : a92b4efc
>         Version : 1.0
>     Feature Map : 0x0
>      Array UUID : 639ae43a:c079a412:3a0be350:72ff20be
>            Name : 1
>   Creation Time : Fri Oct 21 01:03:57 2011
>      Raid Level : raid1
>    Raid Devices : 2
> 
>  Avail Dev Size : 5860294384 (2794.41 GiB 3000.47 GB)
>      Array Size : 5860294384 (2794.41 GiB 3000.47 GB)
>    Super Offset : 5860294640 sectors
>           State : clean
>     Device UUID : 0ed46f31:1b100aa1:e2933dd4:f93716c1
> 
>     Update Time : Fri Oct 21 11:17:42 2011
>        Checksum : 22b01b3e - correct
>          Events : 46
> 
> 
>     Array Slot : 0 (0, 1)
>    Array State : Uu
> 
> /dev/sdb2:
>           Magic : a92b4efc
>         Version : 1.0
>     Feature Map : 0x0
>      Array UUID : 639ae43a:c079a412:3a0be350:72ff20be
>            Name : 1
>   Creation Time : Fri Oct 21 01:03:57 2011
>      Raid Level : raid1
>    Raid Devices : 2
> 
>  Avail Dev Size : 5860294384 (2794.41 GiB 3000.47 GB)
>      Array Size : 5860294384 (2794.41 GiB 3000.47 GB)
>    Super Offset : 5860294640 sectors
>           State : clean
>     Device UUID : f992deee:76530588:337f82d3:b18e523e
> 
>     Update Time : Fri Oct 21 11:17:42 2011
>        Checksum : 439b5f8e - correct
>          Events : 46
> 
> 
>     Array Slot : 1 (0, 1)
>    Array State : uU
> 
> Thanks.--
> To unsubscribe from this list: send the line "unsubscribe linux-raid" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html


[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 828 bytes --]

      reply	other threads:[~2011-10-21 22:40 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-10-21 10:18 mdadm "Used Dev Size" on 3TB drives Andrew
2011-10-21 22:40 ` NeilBrown [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20111022094016.02e8c800@notabene.brown \
    --to=neilb@suse.de \
    --cc=andyukguy@gmail.com \
    --cc=linux-raid@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).