From: Hugo Mills <hugo-lkml@carfax.org.uk>
To: Alan Chandler <alan@chandlerfamily.org.uk>
Cc: linux-btrfs@vger.kernel.org, Hugo Mills <hugo-lkml@carfax.org.uk>
Subject: Re: Synching a Backup Server
Date: Tue, 11 Jan 2011 22:25:10 +0000 [thread overview]
Message-ID: <20110111222510.GD29572@carfax.org.uk> (raw)
In-Reply-To: <4D2A4584.4020901@chandlerfamily.org.uk>
[-- Attachment #1: Type: text/plain, Size: 2826 bytes --]
On Sun, Jan 09, 2011 at 11:32:20PM +0000, Alan Chandler wrote:
> On 09/01/11 22:01, Hugo Mills wrote:
> >> I find the wiki
> >>also confusing because it talks about subvolumes having to be at the
> >>first level of the filesystem, but again further up this thread
> >>there is an example which is used for real of it not being at the
> >>first level, but at one level down inside a directory.
> >
> > Try it, see what happens, and fix the wiki where it's wrong? :)
> >
> > Or at least say what page this is on, and I can try the experiment
> >and fix it later...
> I don't have an account right now, but the page its on is here.
>
> https://btrfs.wiki.kernel.org/index.php/Getting_started#Basic_Filesystem_Commands
OK, I've just tried this. The page is actually accurate, but
doesn't tell the whole story. You can *create* subvolumes and
snapshots anywhere:
hrm@molinar:~ $ sudo btrfs sub list /mnt
ID 256 top level 5 path snap1
ID 257 top level 5 path foo/snap1
ID 258 top level 5 path snap1/snap2
However, you can't *mount* one by name unless it's at the top
level:
hrm@molinar:~ $ sudo mount /dev/vdb /media/btr1 -o subvol=snap1
hrm@molinar:~ $ sudo mount /dev/vdb /media/btr2 -o subvol=foo/snap1
mount: block device /dev/vdb is write-protected, mounting read-only
mount: /dev/vdb already mounted or /media/btr2 busy
mount: according to mtab, /dev/vdb is mounted on /mnt
Mounting by ID works, though:
hrm@molinar:~ $ sudo mount /dev/vdb /media/btr2 -o subvolid=257
hrm@molinar:~ $ ls /media/btr2/
foo linux-image.deb snap1 subdir
This would seem to imply that the limitation is in mount, rather
than in the btrfs kernel implementation.
I've clarified that particular piece of text on the wiki.
> ...
> > From trying it a while ago, I don't think it is possible to create
> >a filesystem in degraded mode. Again, I'll try it again when I have
> >the time to do some experimentation and see what actually happens.
>
> As I wondered before it might be possible to fake it by using
> something like a USB stick initially and then failing it, and
> replacing it with the real device when ready.
>
> If thats possible, then perhaps functionality to do it without
> faking it could be added to the "to do" list. It sure would be
> useful in migrating from mdmadm/lvm setup.
I haven't got to this one yet -- someone on IRC just asked the same
thing, though, so I'll probably have a stab at it tomorrow.
Hugo.
--
=== Hugo Mills: hugo@... carfax.org.uk | darksatanic.net | lug.org.uk ===
PGP key: 515C238D from wwwkeys.eu.pgp.net or http://www.carfax.org.uk
--- But people have always eaten people, / what else is there to ---
eat? / If the Juju had meant us not to eat people / he
wouldn't have made us of meat.
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 190 bytes --]
next prev parent reply other threads:[~2011-01-11 22:25 UTC|newest]
Thread overview: 43+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-01-06 17:35 Synching a Backup Server Carl Cook
2011-01-06 19:16 ` Freddie Cash
2011-01-06 19:34 ` Marcin Kuk
[not found] ` <AANLkTik-rhXAHW18id4WMMtdqXkicvzTZ47+2r6YMuY0@mail.gmail.com>
2011-01-06 19:47 ` Freddie Cash
2011-01-06 20:07 ` C Anthony Risinger
2011-01-06 20:13 ` Freddie Cash
2011-01-06 20:21 ` C Anthony Risinger
2011-01-06 21:06 ` Gordan Bobic
2011-01-06 21:39 ` Freddie Cash
2011-01-06 21:44 ` Carl Cook
2011-01-06 21:53 ` Gordan Bobic
2011-01-06 21:58 ` Freddie Cash
2011-01-06 22:26 ` Carl Cook
2011-01-06 22:29 ` Gordan Bobic
2011-01-06 23:07 ` Carl Cook
2011-01-07 16:14 ` Hubert Kario
2011-01-06 23:15 ` Fajar A. Nugraha
2011-01-06 21:42 ` Carl Cook
2011-01-06 21:52 ` Freddie Cash
2011-01-07 16:20 ` Hubert Kario
2011-01-09 11:46 ` Alan Chandler
2011-01-09 13:54 ` Fajar A. Nugraha
2011-01-09 15:32 ` Alan Chandler
2011-01-09 17:59 ` Freddie Cash
2011-01-09 18:30 ` Hugo Mills
2011-01-09 20:57 ` Alan Chandler
2011-01-09 22:01 ` Hugo Mills
2011-01-09 23:32 ` Alan Chandler
2011-01-11 22:25 ` Hugo Mills [this message]
2011-01-10 2:22 ` Fajar A. Nugraha
2011-01-11 22:41 ` Hugo Mills
2011-01-21 19:28 ` Freddie Cash
2011-01-22 13:45 ` Hugo Mills
2011-01-24 17:45 ` Freddie Cash
2011-01-22 13:55 ` Hubert Kario
2011-01-25 17:29 ` Kaspar Schleiser
2011-01-25 17:43 ` Hubert Kario
2011-01-25 17:59 ` Freddie Cash
2011-01-25 18:36 ` Hubert Kario
2011-01-10 13:14 ` Hubert Kario
2011-01-06 20:12 ` Fajar A. Nugraha
2011-01-06 21:43 ` Carl Cook
2011-01-06 21:43 ` Goffredo Baroncelli
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=20110111222510.GD29572@carfax.org.uk \
--to=hugo-lkml@carfax.org.uk \
--cc=alan@chandlerfamily.org.uk \
--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).