From: Duncan <1i5t5.duncan@cox.net>
To: linux-btrfs@vger.kernel.org
Subject: Re: BTRFS cannot remove empry directory pretending it is not empty
Date: Fri, 21 Aug 2015 18:07:12 +0000 (UTC) [thread overview]
Message-ID: <pan$4fa97$8f2170ac$4ac8e423$97115d2@cox.net> (raw)
In-Reply-To: 1563126.2Gc1A7GJcV@zafu
Swâmi Petaramesh posted on Fri, 21 Aug 2015 17:39:49 +0200 as excerpted:
> Even though I have backups, I don't have too much time and desire for
> breaking and restoring my system, and I'd rather keep this "dead"
> directory forever rather than taking any risk of frying my root FS...
Understood. FWIW, you should be able to rename it...
That's what I did for awhile, when I got "an undeletable", awhile back.
My primary backups, however, are identically sized partitions on the same
set of physical devices, with fstab actually being a symlink that I can
easily switch between fstab.working and fstab.bak1, that has the working
and primary-backup mounts switched, the idea being that I have an
emergency boot partition that's guaranteed to be 100% functional, same
manpages, same full boot to kde on X GUI, same web browser and media
players installed, everything, since it's effectively a snapshot (not
btrfs snapshot, separate filesystem) copy of the root filesystem as it
was at the time I did the backup. No cramped limited-functionality
emergency boot disk for me, just select the option in grub that sets the
variable that I use in the root= kernel commandline option to point to
the backup root instead of the working root, and I'm good to go! =:^)
And with the working set and primary-backups being on dual-device btrfs
raid1, I'm protected from device failure and fat-finger or filesystem
failure, both.
Meanwhile, every so often when it's time to freshen the backup, instead
of simply doing a mkfs on the backup and copying everything over again,
I'll do that, then boot to the backup (which I always do to test it
anyway), and from there reverse the process, doing a mkfs on the normal
working version and copying everything back to it again.
Particularly back when btrfs was still rather more experimental and
buggy, that was my way of ensuring that any latent bugs in the after all
then still experimental filesystem had a limited lifetime on my system,
so they couldn't come back to haunt me years later. It also allowed me
to take better advantage of newly introduced filesystem features (like
the now default 16 KiB metadata nodes, where the old default was 4 KiB)
that couldn't be enabled on existing filesystems.
So that undeletable was eventually blown away, along with the filesystem
it was on, when I recreated my working copy with a fresh mkfs and copy
back over from the backup.
Of course I have secondary (other physical media, and my pre-btrfs
filesystem, reiserfs, same computer) and third level backup (external
media, disconnected by default) as well, tho they're updated relatively
less frequently. Same backup strategy, tho. The backup media has a
local copy of grub2 installed that I can boot by simply selecting the
appropriate boot device in the BIOS, and from any of the grub copies, I
can scan all devices and boot any of the backup rootfs I find, switching
to its local grub config and set of loadable kernels first, should I need
to. Similarly with the other partitions, home partitions/filesystem,
log, distro packages, media...
--
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:[~2015-08-21 18:07 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-08-21 8:19 BTRFS cannot remove empry directory pretending it is not empty Swâmi Petaramesh
2015-08-21 8:47 ` Karsten Heymann
2015-08-21 9:15 ` Swâmi Petaramesh
2015-08-21 9:16 ` Roman Mamedov
2015-08-21 9:45 ` Hugo Mills
2015-08-21 11:23 ` Duncan
2015-08-21 15:39 ` Swâmi Petaramesh
2015-08-21 18:07 ` Duncan [this message]
2015-08-25 8:18 ` BTRFS cannot remove empty " Swâmi Petaramesh
2015-08-25 8:37 ` Duncan
2015-08-25 13:25 ` Swâmi Petaramesh
2015-08-25 14:03 ` Swâmi Petaramesh
2015-08-25 22:29 ` Duncan
2015-08-25 22:38 ` Hugo Mills
[not found] ` <9Aea1r00U2Q6ekd01Aebva>
2015-08-25 23:32 ` 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$4fa97$8f2170ac$4ac8e423$97115d2@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).