From: Duncan <1i5t5.duncan@cox.net>
To: linux-btrfs@vger.kernel.org
Subject: Re: how long should "btrfs device delete missing ..." take?
Date: Fri, 12 Sep 2014 05:59:37 +0000 (UTC) [thread overview]
Message-ID: <pan$b85d$251aebce$f889e0c4$87a03321@cox.net> (raw)
In-Reply-To: 6AE06E73-C89E-42F0-9A09-FA92C68DED69@colorremedies.com
Chris Murphy posted on Thu, 11 Sep 2014 20:10:26 -0600 as excerpted:
> Sure. But what's the next step? Given 260+ snapshots might mean well
> more than 350GB of data, depending on how deduplicated the fs is, it
> still probably would be faster to rsync this to a pile of drives in
> linear/concat+XFS than wait a month (?) for device delete to finish.
That was what I was getting at in my other just-finished short reply. It
may be time to give up on the btrfs specific solutions for the moment and
go with tried and tested traditional solutions (tho I'd definitely *NOT*
try rsync or the like with the delete still going, we know from other
reports that rsync places its own stresses on btrfs and one major
stressor, the delete-triggered rebalance, at a time, is bad enough).
> Alternatively, script some way to create 260+ ro snapshots to btrfs
> send/receive to a new btrfs volume; and turn it into a raid1 later.
No confirmation yet but I strongly suspect most of those subs are
snapshots. Assuming that's the case, it's very likely most of them can
simply be eliminated as I originally suggested, a process that /should/
be fast, decomplexifying the situation dramatically.
> I'm curious if a sysrq+s followed by sysrq+u might leave the filessystem
> in a state where it could still be rw mountable. But I'm skeptical of
> anything interrupting the device delete before being fully prepared for
> the fs to be toast for rw mount. If only ro mount is possible, any
> chance of creating ro snapshots is out.
In theory, that is, barring bugs, interrupting the delete with normal
shutdown to the extent possible, then sysrq+s, sysrq+u, should not be a
problem. The delete is basically a balance, going chunk by chunk, and
either the chunk has been duplicated to the new device or it hasn't. In
either case, the existing chunk on the remaining old device shouldn't be
affected.
So rebooting in that way in ordered to stop the delete temporarily
/should/ have no bad effects. Of course, that's barring bugs. Btrfs is
still not fully stabilized, and bugs do happen, so anything's possible.
But I'd consider it safe enough to try here, certainly so if I had
backups, as is still STRONGLY recommended for btrfs at this point, much
more so than the routine sysadmin "if it's not backed up by definition
it's not valuable to you" rule.
--
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-09-12 5:59 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-09-11 15:22 how long should "btrfs device delete missing ..." take? Tomasz Chmielewski
2014-09-11 19:31 ` Duncan
2014-09-11 21:25 ` Chris Murphy
2014-09-11 23:51 ` Duncan
2014-09-12 2:10 ` Chris Murphy
2014-09-12 5:19 ` Russell Coker
2014-09-12 5:33 ` Duncan
2014-09-12 6:27 ` Chris Murphy
2014-09-12 5:41 ` Duncan
2014-09-12 5:59 ` Duncan [this message]
2014-09-11 23:06 ` Tomasz Chmielewski
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$b85d$251aebce$f889e0c4$87a03321@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).