From: Duncan <1i5t5.duncan@cox.net>
To: linux-btrfs@vger.kernel.org
Subject: Re: 40TB volume taking over 16 hours to mount, any ideas?
Date: Sun, 10 Aug 2014 10:16:15 +0000 (UTC) [thread overview]
Message-ID: <pan$5f2d0$4150a54b$fca9a377$6a5344e7@cox.net> (raw)
In-Reply-To: CAGqmi75ne1BNzZdzU_RxOBEBaCgZsH0K1dLLUZ6y-YUn_byCbg@mail.gmail.com
Timofey Titovets posted on Sun, 10 Aug 2014 11:50:39 +0300 as excerpted:
> Jose, I add my 50 cents,
> i know, what you want backup data from raid through network and what you
> have only 11 TB data from 40 TB fs As i now, you can safety resize btrfs
> fs, without btrfs fi resize, something like that:
> $ btrfs fi df /
> Data, single: total=81.00GiB, used=60.33GiB
> System, DUP: total=32.00MiB, used=16.00KiB
> Metadata, DUP: total=1.50GiB, used=507.48MiB
> GlobalReserve, single: total=176.00MiB, used=0.00B
>
> - I can cut partitions to 81+1.5+~256 = 83g and + 1G for safety = 84G.
> And my data not lost and btrfs still working after this.
> After, you can use free space on the disk, to create new fs and backup
> data to him without problems,
> Developers, please сorrect me if I'm wrong.
You're correct, but two points, plus another less related one:
1) Most critical for the OP, he has to get the filesystem mounted and
working first, and that's proving troublesome (tho with the patches I
mentioned it might be doable).
2) While in theory you /could/ cut your filesystem even a bit further
than that after a balance to trim down data usage (trimming it to ~61 GB
allocated data area from the 81 GB current), given that btrfs can
allocate chunks but requires a balance to deallocate, and data and
metadata chunks can only be allocated from unallocated, not switched from
one to the other directly, it's good to keep a reasonable safety margin
of unallocated space.
The 1 GiB of unallocated space you propose since you didn't mention a
balance is cutting it rather close, particularly since data chunks are
normally 1 GiB. On a filesystem around that size I'd recommend keeping
10 GiB or so free at least, so maybe 95 GiB minimum in the example, or
about 75 GiB minimum if you did a data-balance first, cutting data chunk
allocation to 61 GiB and total allocated to ~63 GiB.
On a bit over 10 TiB of usage, however, I'd suggest keeping perhaps half
a TiB spare/unallocated, so on 11 TiB data usage and perhaps half a TiB
of metadata usage, resizing the filesystem no smaller than say 12 TiB,
but 15 TiB would be somewhat more comfortable.
3) But that's a lot of data in a single filesystem basket. Balancing or
btrfs checking simply takes a LONG time at that size, let alone backup
and restore of the entire thing. So I'd suggest breaking it up into
perhaps TiB sized independent filesystems, as well, if possible. If say
only half of them need mounted at a time, and half of those can be read-
only mounted, then that's "only" 2-3 TiB of data to balance/check/restore
if something goes wrong, the rest with any luck should be unaffected as
it wasn't mounted or was read-only mounted, and 2-3 TiB will take a lot
less time to process than 10+ TiB, for sure.
--
Duncan - List replies preferred. No HTML msgs.
"Every nonfree program has a lord, a master --
and if you use the program, he is your master." Richard Stallman
next prev parent reply other threads:[~2014-08-10 10:16 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-08-08 21:35 40TB volume taking over 16 hours to mount, any ideas? Jose Ildefonso Camargo Tolosa
2014-08-09 3:38 ` Russell Coker
2014-08-09 14:32 ` Andy Smith
2014-08-09 14:58 ` Jose Ildefonso Camargo Tolosa
2014-08-09 16:06 ` Jose Ildefonso Camargo Tolosa
2014-08-09 17:01 ` Duncan
2014-08-09 18:21 ` Marc MERLIN
2014-08-10 4:03 ` Duncan
2014-08-10 12:43 ` Holger Hoffstätte
2014-08-10 14:39 ` Fixing the btrfs deadlocks Marc MERLIN
2014-08-10 15:42 ` Holger Hoffstätte
2014-08-10 16:36 ` Marc MERLIN
2014-08-09 18:38 ` 40TB volume taking over 16 hours to mount, any ideas? Jose Ildefonso Camargo Tolosa
2014-08-09 21:02 ` Jose Ildefonso Camargo Tolosa
2014-08-10 3:58 ` Jose Ildefonso Camargo Tolosa
2014-08-10 8:24 ` Duncan
2014-08-10 8:50 ` Timofey Titovets
2014-08-10 10:16 ` Duncan [this message]
2014-08-10 16:25 ` Chris Murphy
2014-08-11 21:33 ` Jose Ildefonso Camargo Tolosa
2014-08-12 4:15 ` Duncan
2014-08-12 14:24 ` Marc MERLIN
2014-08-13 2:02 ` Jose Ildefonso Camargo Tolosa
2014-08-10 4:21 ` Duncan
2014-08-10 4:57 ` Mitch Harder
2014-08-10 7:21 ` 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='pan$5f2d0$4150a54b$fca9a377$6a5344e7@cox.net' \
--to=1i5t5.duncan@cox.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).