From: Russell Coker <russell@coker.com.au>
To: Duncan <1i5t5.duncan@cox.net>
Cc: linux-btrfs@vger.kernel.org
Subject: Re: syntax for deleting subvolumes?
Date: Sat, 21 Mar 2015 03:17:07 +0000 [thread overview]
Message-ID: <201503210317.07435.russell@coker.com.au> (raw)
In-Reply-To: <pan$e3d8c$58030454$dbd36547$e1e1c7cd@cox.net>
On Fri, 20 Mar 2015 04:18:38 AM Duncan wrote:
> If cp --reflink=auto was the default, it'd "just work", making a reflink
> where possible, falling back to a normal copy where not possible to
> reflink.
>
> However, I'd be wary of such a change, because admins are used to cp
> creating a separate copy which may well be intended as a backup, guarding
> against I/O errors on the original. Btrfs does do checksum checking to
> ensure validity, but if that fails, do you really want it failing for
> BOTH copies, including the one the admin made specifically to AVOID such
If you have a second copy on the same filesystem then an error on any of the
metadata that is a parent will corrupt both. EG if you have 2 copies under
your home directory then a directory error for /, /home, or /home/$USER will
make both copies unavailable.
Also any errors on superblocks or other essential filesystem metadata risks
losing both copies.
If BTRFS was to adopt something equivalent to the ZFS "copies=" feature then
the sysadmin could specify that certain subtrees would have extra copies of
data AND each metadata block would have 1 more copy than the data blocks it
refers to.
In conclusion I think that the ZFS copies= feature is the correct solution to
this problem. Until/unless the BFTRFS developers copy that design concept the
thing to do if you want backups on the same storage hardware is to copy the
data to a filesystem on a different partition - the NetApp research shows that
disk read errors tend to be correlated by location on disk.
--
My Main Blog http://etbe.coker.com.au/
My Documents Blog http://doc.coker.com.au/
next prev parent reply other threads:[~2015-03-21 3:17 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-03-18 20:42 syntax for deleting subvolumes? K Richard Pixley
2015-03-18 21:06 ` Chris Murphy
2015-03-18 21:39 ` K Richard Pixley
2015-03-18 21:55 ` Hugo Mills
2015-03-18 23:01 ` K Richard Pixley
2015-03-18 23:33 ` Chris Murphy
2015-03-19 0:47 ` Jeff Mahoney
2015-03-19 2:55 ` Chris Murphy
2015-03-18 22:15 ` Chris Murphy
2015-03-18 23:22 ` K Richard Pixley
2015-03-18 23:50 ` Chris Murphy
2015-03-19 7:18 ` Erkki Seppala
2015-03-21 3:20 ` Russell Coker
2015-03-19 19:09 ` Chris Murphy
2015-03-20 4:18 ` Duncan
2015-03-21 3:17 ` Russell Coker [this message]
2015-03-18 21:09 ` 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=201503210317.07435.russell@coker.com.au \
--to=russell@coker.com.au \
--cc=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