From: Brendan Hide <brendan@swiftspirit.co.za>
To: Slava Barinov <rayslava@gmail.com>,
linux-btrfs <linux-btrfs@vger.kernel.org>
Subject: Re: "Asymmetric" RAID0
Date: Tue, 25 Mar 2014 08:42:17 +0200 [thread overview]
Message-ID: <53312549.6040207@swiftspirit.co.za> (raw)
In-Reply-To: <CADef55oE1UQbmEnvXcXuYxEwdR=ktYsC2C+QzTjQWu7h5vA7NQ@mail.gmail.com>
On 25/03/14 07:15, Slava Barinov wrote:
> Hello,
>
> I've been using a single drive btrfs for some time and when free space
> became too low I've added an additional drive and rebalanced FS with
> RAID0 data and RAID1 System and Metadata storage.
>
> Now I have the following configuration:
>
> # btrfs fi show /btr
> Label: none uuid: f9d78880-10a7-439b-8ebd-14d815edbc19
> Total devices 2 FS bytes used 415.45GiB
> devid 1 size 931.51GiB used 222.03GiB path /dev/sdc
> devid 2 size 431.51GiB used 222.03GiB path /dev/sdb
>
> # btrfs fi df /btr
> Data, RAID0: total=424.00GiB, used=406.81GiB
> System, RAID1: total=32.00MiB, used=40.00KiB
> Metadata, RAID1: total=10.00GiB, used=8.64GiB
>
> # df -h
> Filesystem Size Used Avail Use% Mounted on
> /dev/sdb 1.4T 424G 437G 50% /btr
>
> I suppose I should trust to btrfs fi df, not df utility.
>
> So the main question is if such "asymmetric" RAID0 configuration
> possible at all and why does btrfs ignore ~500 GB of free space on
> /dev/sdc drive?
>
> Also it's interesting what will happen when I add 20 GB more data to
> my FS. Should I be prepared to usual btrfs low-space problems?
>
> Best regards,
> Slava Barinov.
The "raid0" will always distribute data to each disk relatively equally.
There are exceptions of course. The way to have it better utilise the
diskspace is to use either "single" (which won't get the same
performance as raid0) or to add a third disk.
In any raided configuration, the largest disk won't be fully utilised
unless the other disks add up to be equal to or more than that largest disk.
Play around with Hugo's disk usage calculator to get a better idea of
what the different configurations will do: http://carfax.org.uk/btrfs-usage/
--
__________
Brendan Hide
http://swiftspirit.co.za/
http://www.webafrica.co.za/?AFF1E97
next prev parent reply other threads:[~2014-03-25 6:42 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-03-25 5:15 "Asymmetric" RAID0 Slava Barinov
2014-03-25 6:42 ` Brendan Hide [this message]
2014-03-25 16:52 ` Duncan
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=53312549.6040207@swiftspirit.co.za \
--to=brendan@swiftspirit.co.za \
--cc=linux-btrfs@vger.kernel.org \
--cc=rayslava@gmail.com \
/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