linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: NeilBrown <neilb@suse.de>
To: lists@yazzy.org
Cc: linux-raid@vger.kernel.org
Subject: Re: Creating an md with 3TB drives.
Date: Wed, 28 Sep 2011 18:23:02 +1000	[thread overview]
Message-ID: <20110928182302.39cfd4b0@notabene.brown> (raw)
In-Reply-To: <4E82D53F.3050409@yazzy.org>

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

On Wed, 28 Sep 2011 10:05:19 +0200 "Marcin M. Jessa" <lists@yazzy.org> wrote:

> Hi guys.
> 
> 
> I have two 3TB drives and I want to set them up as RAID0.
> The problem is I can't use all of the space on them.
> I only get 4TB of the 6 in total.
> 
> What I tried was:
> # parted /dev/sde
> GNU Parted 2.3
> Using /dev/sde
> Welcome to GNU Parted! Type 'help' to view a list of commands.
> (parted)  mklabel gpt
> Warning: The existing disk label on /dev/sde will be destroyed and all 
> data on this disk will be lost. Do you want
> to continue?
> Yes/No? yes
> (parted) mkpart primary 0 -0
> Warning: The resulting partition is not properly aligned for best 
> performance.
> Ignore/Cancel? ignore
> (parted) print
> Model: ATA Hitachi HDS72303 (scsi)
> Disk /dev/sde: 3001GB
> Sector size (logical/physical): 512B/512B
> Partition Table: gpt
> 
> Number  Start   End     Size    File system  Name     Flags
>   1      17.4kB  3001GB  3001GB               primary

I wouldn't bother with a partition table - just use the whole device.
But partition tables should work if you want that.

> 
> (parted) quit
> 
> Then I used fdisk to change the partition type to Linux raid auto

You can do that if you like but it will have no effect.  The "raid auto"
partition type only means anything on MBR partitions.  You don't need to, so
don't bother.

> 
> Finally I ran
> mdadm --create /dev/md2 --level=0 --raid-devices=2 /dev/sdd1 /dev/sde1
> 
> but mdadm -QD /dev/md2 shows 2TBs are gone.
> Array Size : 4294964224 (4096.00 GiB 4398.04 GB)
> 
> What to do in this case? How can I a 6TB raid array ?
> 
Hmm... maybe you have an old version of mdadm.
Or maybe mdadm is broken.
Please report:
 mdadm -E /dev/sdd1 /dev/sde1
 blockdev --getsz /dev/md2
 cat /proc/mdstat

NeilBrown


> 


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

  reply	other threads:[~2011-09-28  8:23 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-09-28  8:05 Creating an md with 3TB drives Marcin M. Jessa
2011-09-28  8:23 ` NeilBrown [this message]
2011-09-28  8:31   ` Marcin M. Jessa
2011-09-28  8:43     ` David Brown
2011-09-28 15:09       ` Marcin M. Jessa
2011-09-29  9:09         ` David Brown
2011-09-29  9:23           ` Marcin M. Jessa
2011-09-29 11:18             ` David Brown
2011-10-05 22:25 ` Sebastian Muniz
2011-10-05 23:20   ` Jérôme Poulin

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=20110928182302.39cfd4b0@notabene.brown \
    --to=neilb@suse.de \
    --cc=linux-raid@vger.kernel.org \
    --cc=lists@yazzy.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).