From: Kai Herlemann <nesadaw@freenet.de>
To: Chris Murphy <lists@colorremedies.com>
Cc: linux-btrfs@vger.kernel.org
Subject: Re: rollback to a snapshot and delete old top volume - missing of "@"
Date: Fri, 8 Jul 2016 22:08:19 +0200 [thread overview]
Message-ID: <0e0dcbb3-73a4-0c5f-9978-67109d505b79@freenet.de> (raw)
In-Reply-To: <CAJCQCtQt2A7w4JNUuhU7YOHTyj_z8M_RqsZCDw0G2YEENXaBvg@mail.gmail.com>
Am 07.07.2016 um 19:40 schrieb Chris Murphy:
> And very clearly from the OP's output from 'btrfs sub list' there are
> no subvolumes with @ in the path, so there is no subvolume @, nor are
> there any subvolumes contained in a directory @.
>
> [...]
>
> Anyway the reason why the command fails is stated in the error
> message. The system appears to be installed in the top level of the
> file system (subvolid=5), and that can't be deleted. First it's the
> immutable first subvolume of a Btrfs file system, and second it's
> populated with other subvolumes which would inhibit its removal even
> if it weren't the top level subvolume.
>
> What can be done is delete the directories in the top level, retaining
> the subvolumes that are there.
Thank you, that was it: there was really no subvolume named @ existing.
Thank you to Henk and Andrei, too.
I didn't believed that, although there was no @ from ot the output of
"btrfs sub list", because all websites that dealt with this topic and
which I used for research statet that a subvolume named @ would
automatically be created (or I misunderstood the sites), and secondly,
because the ID of the top level volume is in my case 5, and I
(mis)understand, in cases where's the subvolume "@" automatically
created, the ID of that subvolume would be also 5.
I created now myself a subvolume "@" on the top level volume, moved then
all the data from the snapshot, which I used the last days, to the new
subvolume, and deleted then all data from the top level volume, except
the sub level volume @ of course, and made previously a backup snapshot
from the top level volume. Other users who reading later here and want
to move their data from top level volume should able to do the same.
If here any developers read along: I'd like to suggest that there's
automatically made a subvolume "@" by default, which is set as default
subvolume, or a tip to the distribution, that it would made sense to do
that with the installation. It would protect other users against
confusion and work like I had it.
Thank you,
Kai
next prev parent reply other threads:[~2016-07-08 20:10 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-07-07 12:17 rollback to a snapshot and delete old top volume - missing of "@" Kai Herlemann
2016-07-07 16:01 ` Henk Slager
2016-07-07 17:40 ` Chris Murphy
2016-07-07 18:27 ` Henk Slager
2016-07-08 20:08 ` Kai Herlemann [this message]
2016-07-08 21:39 ` Chris Murphy
2016-07-08 21:50 ` Chris Murphy
2016-07-08 23:21 ` Henk Slager
2016-07-09 5:30 ` Andrei Borzenkov
2016-07-09 12:45 ` Chris Murphy
2016-07-09 1:20 ` Chris Murphy
2016-07-08 18:51 ` Andrei Borzenkov
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=0e0dcbb3-73a4-0c5f-9978-67109d505b79@freenet.de \
--to=nesadaw@freenet.de \
--cc=linux-btrfs@vger.kernel.org \
--cc=lists@colorremedies.com \
/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).