public inbox for linux-btrfs@vger.kernel.org
 help / color / mirror / Atom feed
From: Josef Bacik <josef@redhat.com>
To: Grady Neely <grady.neely@adtran.com>
Cc: linux-btrfs@vger.kernel.org
Subject: Re: Raid1 with 3 drives
Date: Fri, 5 Mar 2010 14:40:47 -0500	[thread overview]
Message-ID: <20100305194047.GA15771@localhost.localdomain> (raw)
In-Reply-To: <013A5A0F-6BB8-4CF0-855F-0A80BEA8B1CC@adtran.com>

On Fri, Mar 05, 2010 at 01:28:00PM -0600, Grady Neely wrote:
> Hello,
> 
> I have a 3 1TB drives that I wanted to make a Raid1 system on.  I issued the following command "mkfs.btrfs -m raid1 -d raid1 /dev/sdb /dev/sdc /dev/sdd" And it seems to have created the fs, with no issue.  When I do an df -h, I see that the available space is 3TB.  Seems like with RAID1 I would only see 1TB available, and the other two drives would mirror the first.  Am I misunderstanding how the RAID1 works under btrfs?  Can you have more than two drives in RAID1 in btrfs, so you can survive multiple drive failures?  Is there a better option with only 3 drives?  I am not wedded to RAID1 if there is a better way.
> 
> 

DF with btrfs is a loaded question.  In the RAID1 case you are going to show 3TB
of free space, but everytime you use some space you are going to show 3 times
the amount used (I think thats right).  There are some patches forthcoming to
make the reporting for RAID stuff make more sense, but for the time being just
ignore df.  Thanks,

Josef

  reply	other threads:[~2010-03-05 19:40 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-03-05 19:28 Raid1 with 3 drives Grady Neely
2010-03-05 19:40 ` Josef Bacik [this message]
2010-03-05 19:58   ` Chris Ball
2010-03-05 20:29     ` Grady Neely
2010-03-05 20:31       ` Josef Bacik
2010-03-05 21:49         ` Bart Noordervliet
2010-03-05 22:13           ` Mike Fedyk
2010-03-05 22:27             ` Hubert Kario
2010-03-06  1:02           ` Ravi Pinjala

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=20100305194047.GA15771@localhost.localdomain \
    --to=josef@redhat.com \
    --cc=grady.neely@adtran.com \
    --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