From: Goffredo Baroncelli <kreijack@alice.it>
To: linux-btrfs@vger.kernel.org
Subject: Re: subvolume/snapshot usage question
Date: Sat, 22 Aug 2009 08:34:35 +0200 [thread overview]
Message-ID: <200908220834.36388.kreijack@alice.it> (raw)
In-Reply-To: <84fb38e30908212135r296382a9t294926ac4d977089@mail.gmail.com>
Hello tsuraan,
"bcp" is what you need. "bcp" is part of "btrfs-prog-unstable"
See http://www.mail-archive.com/linux-btrfs@vger.kernel.org/msg02292.html
BR
Goffredo
On Saturday 22 August 2009, tsuraan wrote:
> Suppose I have a directory under my home on a btrfs filesystem where I
> store virtual machine images. I have one base virtual machine, and
> from it I make copies that I actually run. To make a copy of a VM
> today, I do cp -r, which seems pretty wasteful since the VMs are
> almost entirely identical. Is there some way that I can do a snapshot
> of just the directory that holds my base VM, and then mount different
> "forks" of that snapshot to be the bases of my different running
> machines?
>
> It looks like I could create a snapshot of the root of my btrfs
> filesystem for each vm, mount that snapshot somewhere, and run the vm
> from that full fs snapshot, but that's not ideal. I could also create
> a large file for my base VM directory, format it btrfs, mount it using
> the loopback device, and then mount snapshots of that loopback
> filesystem, but having to preallocate filesystem space for my VMs is
> not as nice as being able to share space with the rest of my
> filesystem. Is there a partial-snapshot capability in btrfs? I don't
> understand what subvolumes are, and I think they're unrelated to what
> I want, but the name sounds promising...
> --
> To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
--
gpg key@ keyserver.linux.it: Goffredo Baroncelli (ghigo) <kreijackATinwind.it>
Key fingerprint = 4769 7E51 5293 D36C 814E C054 BF04 F161 3DC5 0512
prev parent reply other threads:[~2009-08-22 6:34 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-08-22 4:35 subvolume/snapshot usage question tsuraan
2009-08-22 6:34 ` Goffredo Baroncelli [this message]
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=200908220834.36388.kreijack@alice.it \
--to=kreijack@alice.it \
--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