Linux Btrfs filesystem development
 help / color / mirror / Atom feed
From: Hendrik Friedel <hendrik@friedels.name>
To: Qu Wenruo <quwenruo@cn.fujitsu.com>,
	Chris Murphy <lists@colorremedies.com>,
	Hugo Mills <hugo@carfax.org.uk>,
	Btrfs BTRFS <linux-btrfs@vger.kernel.org>
Subject: Re: Data single *and* raid?
Date: Fri, 07 Aug 2015 07:16:04 +0200	[thread overview]
Message-ID: <55C43F14.7080402@friedels.name> (raw)
In-Reply-To: <55C40957.9040209@cn.fujitsu.com>

Hello Quo,

thanks for your reply.

 >> But then:
>> root@homeserver:/mnt/__Complete_Disk# btrfs fi df /mnt/__Complete_Disk/
>> Data, RAID5: total=3.83TiB, used=3.78TiB
>> System, RAID5: total=32.00MiB, used=576.00KiB
>> Metadata, RAID5: total=6.46GiB, used=4.84GiB
>> GlobalReserve, single: total=512.00MiB, used=0.00B
> GlobalReserve is not a chunk type, it just means a range of metadata
> reserved for overcommiting.
> And it's always single.
>
> Personally, I don't think it should be output in "fi df" command, as
> it's in a higher level than chunk.
>
> At least for your case, nothing is needed to worry about.


But this seems to be a RAID5 now, right?
Well, that's what I want, but the command was:
btrfs balance start -dprofiles=single -mprofiles=raid1
/mnt/__Complete_Disk/

So, we would expect raid1 here, no?

Greetings,
Hendrik


>>
>>
>> On 01.08.2015 22:44, Chris Murphy wrote:
>>> On Sat, Aug 1, 2015 at 2:32 PM, Hugo Mills <hugo@carfax.org.uk> wrote:
>>>> On Sat, Aug 01, 2015 at 10:09:35PM +0200, Hendrik Friedel wrote:
>>>>> Hello,
>>>>>
>>>>> I converted an array to raid5 by
>>>>> btrfs device add /dev/sdd /mnt/new_storage
>>>>> btrfs device add /dev/sdc /mnt/new_storage
>>>>> btrfs balance start -dconvert=raid5 -mconvert=raid5 /mnt/new_storage/
>>>>>
>>>>> The Balance went through. But now:
>>>>> Label: none  uuid: a8af3832-48c7-4568-861f-e80380dd7e0b
>>>>>          Total devices 3 FS bytes used 5.28TiB
>>>>>          devid    1 size 2.73TiB used 2.57TiB path /dev/sde
>>>>>          devid    2 size 2.73TiB used 2.73TiB path /dev/sdc
>>>>>          devid    3 size 2.73TiB used 2.73TiB path /dev/sdd
>>>>> btrfs-progs v4.1.1
>>>>>
>>>>> Already the 2.57TiB is a bit surprising:
>>>>> root@homeserver:/mnt# btrfs fi df /mnt/new_storage/
>>>>> Data, single: total=2.55TiB, used=2.55TiB
>>>>> Data, RAID5: total=2.73TiB, used=2.72TiB
>>>>> System, RAID5: total=32.00MiB, used=736.00KiB
>>>>> Metadata, RAID1: total=6.00GiB, used=5.33GiB
>>>>> Metadata, RAID5: total=3.00GiB, used=2.99GiB
>>>>
>>>>     Looking at the btrfs fi show output, you've probably run out of
>>>> space during the conversion, probably due to an uneven distribution of
>>>> the original "single" chunks.
>>>>
>>>>     I think I would suggest balancing the single chunks, and trying the
>>>> conversion (of the unconverted parts) again:
>>>>
>>>> # btrfs balance start -dprofiles=single -mprofile=raid1
>>>> /mnt/new_storage/
>>>> # btrfs balance start -dconvert=raid5,soft -mconvert=raid5,soft
>>>> /mnt/new_storage/
>>>>
>>>
>>> Yep I bet that's it also. btrfs fi usage might be better at exposing
>>> this case.
>>>
>>>
>>
>>


-- 
Hendrik Friedel
Auf dem Brink 12
28844 Weyhe
Tel. 04203 8394854
Mobil 0178 1874363

---
Diese E-Mail wurde von Avast Antivirus-Software auf Viren geprüft.
https://www.avast.com/antivirus


  reply	other threads:[~2015-08-07  5:16 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-08-01 20:09 Data single *and* raid? Hendrik Friedel
2015-08-01 20:24 ` Chris Murphy
2015-08-01 20:32 ` Hugo Mills
2015-08-01 20:44   ` Chris Murphy
2015-08-01 21:45     ` Duncan
2015-08-01 22:26       ` Chris Murphy
2015-08-01 22:34         ` Hugo Mills
2015-08-02  0:27           ` Duncan
2015-08-02  1:14             ` Chris Murphy
2015-08-02  3:46               ` Duncan
2015-08-02 18:31                 ` Chris Murphy
2015-08-02 19:06                   ` Hugo Mills
2015-08-02 12:54     ` Hendrik Friedel
2015-08-06 18:57     ` Hendrik Friedel
2015-08-07  1:26       ` Qu Wenruo
2015-08-07  5:16         ` Hendrik Friedel [this message]
2015-08-07  6:25           ` Duncan
2015-08-07  8:11           ` Hugo Mills

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=55C43F14.7080402@friedels.name \
    --to=hendrik@friedels.name \
    --cc=hugo@carfax.org.uk \
    --cc=linux-btrfs@vger.kernel.org \
    --cc=lists@colorremedies.com \
    --cc=quwenruo@cn.fujitsu.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