All of lore.kernel.org
 help / color / mirror / Atom feed
From: Hendrik Friedel <hendrik@friedels.name>
To: Hugo Mills <hugo@carfax.org.uk>,
	Btrfs BTRFS <linux-btrfs@vger.kernel.org>
Subject: Re: understanding btrfs fi df
Date: Wed, 19 Aug 2015 18:10:06 +0200	[thread overview]
Message-ID: <55D4AA5E.60306@friedels.name> (raw)
In-Reply-To: <20150816145719.GU12976@carfax.org.uk>

Hello Hugo,

thanks for your hint.

On 16.08.2015 16:57, Hugo Mills wrote:
>     Here's your problem -- you've got a RAID 5 filesystem, which has a
> minimum allocation of 2 devices, but only one device has free space on
> it for allocation, so no more chunks can be allocated. I'm not sure
> how it ended up in this situation, but that's what's happened.
>
> 2) convert a few chunks of the existing FS, on devices 1 and 3, to
> single, which should free up some space across all the devices, and
> then run a full balance, and finally convert the single back to RAID
> 5:
>
> # btrfs balance start -dconvert=single,devid=1,limit=4/mnt/__Complete_Disk
> # btrfs balance start -dconvert=single,devid=3,limit=4/mnt/__Complete_Disk
> # btrfs balance start -dprofiles=raid5/mnt/__Complete_Disk
> # btrfs balance start -dconvert=raid5,soft/mnt/__Complete_Disk


I did that. In order to run the first two commands I had to free some 
space though, which was no problem.

Now the output is:
root@homeserver:/media# btrfs fi df /mnt/__Complete_Disk 

Data, RAID5: total=3.79TiB, used=3.78TiB
System, RAID5: total=32.00MiB, used=416.00KiB
Metadata, RAID5: total=6.46GiB, used=4.85GiB
GlobalReserve, single: total=512.00MiB, used=0.00B

root@homeserver:/media# btrfs fi show
Label: none  uuid: a8af3832-48c7-4568-861f-e80380dd7e0b
         Total devices 3 FS bytes used 3.79TiB
         devid    1 size 2.73TiB used 2.43TiB path /dev/sdf
         devid    2 size 2.73TiB used 2.43TiB path /dev/sdd
         devid    3 size 2.73TiB used 1.38TiB path /dev/sde

How can only 1.38TiB be used on devid 3?


Greetings,
Hendrik

-- 
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-19 16:10 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-08-16 14:33 understanding btrfs fi df Hendrik Friedel
2015-08-16 14:57 ` Hugo Mills
2015-08-19 16:10   ` Hendrik Friedel [this message]
2015-08-19 16:17     ` Hugo Mills
2015-08-19 17:37       ` Hendrik Friedel
2015-08-21 22:45         ` Hendrik Friedel

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=55D4AA5E.60306@friedels.name \
    --to=hendrik@friedels.name \
    --cc=hugo@carfax.org.uk \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.