linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Josef Bacik <josef@redhat.com>
To: gmack@innerfire.net
Cc: linux-btrfs@vger.kernel.org
Subject: Re: raid1 not reporting the right size
Date: Thu, 27 May 2010 16:04:46 -0400	[thread overview]
Message-ID: <20100527200446.GJ25333@dhcp231-156.rdu.redhat.com> (raw)
In-Reply-To: <alpine.DEB.1.10.1005271527320.19767@mtl.rackplans.net>

On Thu, May 27, 2010 at 03:43:05PM -0400, gmack@innerfire.net wrote:
> I'm trying to create a raid1 (mirrored) raid using two 1 Tb disks.
> The result is something twice as large as it should be fore mirrored raid.
> 
> Any ideas? Linux version 2.6.34
> 
> # mkfs.btrfs -d raid1 -m raid1 /dev/sdb1 /dev/sdc1 -L fhome
> 
> WARNING! - Btrfs Btrfs v0.19 IS EXPERIMENTAL
> WARNING! - see http://btrfs.wiki.kernel.org before using
> 
> adding device /dev/sdc1 id 2
> fs created label fhome on /dev/sdb1
>         nodesize 4096 leafsize 4096 sectorsize 4096 size 1.82TB
> Btrfs Btrfs v0.19
> 
> # mount /dev/sdb1 /mnt/
> # df -h /mnt/
> Filesystem            Size  Used Avail Use% Mounted on
> /dev/sdb1             1.9T   56K  1.9T   1% /mnt
> 
> # btrfs-show
> failed to read /dev/sr0
> Label: none  uuid: a2aa44b8-3168-480a-a155-d510e05853e7
>         Total devices 1 FS bytes used 617.45MB
>         devid    1 size 29.33GB used 6.79GB path /dev/sda2
> 
> Label: fhome  uuid: 128ddab5-224d-4f45-abc0-6a07d0f63d47
>         Total devices 2 FS bytes used 28.00KB
>         devid    2 size 931.51GB used 2.01GB path /dev/sdc1
>         devid    1 size 931.51GB used 2.03GB path /dev/sdb1
> 

Used will show up as twice the amount that is actually used, instead of looking
like you only have 1/2 the capacity.  Thanks,

Josef

      parent reply	other threads:[~2010-05-27 20:04 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-05-27 19:43 raid1 not reporting the right size gmack
2010-05-27 19:51 ` Chris Ball
2010-05-28 18:45   ` linux 2.6.34 raid1 btrfs weird mounting issue gmack
2010-05-28 18:52     ` Sebastian 'gonX' Jensen
2010-05-28 19:06     ` Goffredo Baroncelli
2010-05-27 20:04 ` Josef Bacik [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=20100527200446.GJ25333@dhcp231-156.rdu.redhat.com \
    --to=josef@redhat.com \
    --cc=gmack@innerfire.net \
    --cc=linux-btrfs@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).