* How to mount a copy of a disk with a Btrfs file system on it?
@ 2013-06-10 15:19 kevin
0 siblings, 0 replies; only message in thread
From: kevin @ 2013-06-10 15:19 UTC (permalink / raw)
To: linux-btrfs
Consider the following environment. We have a storage array that
provides its own facilities for creating snapshots, replicas, and
clones. We create a Btrfs file system on a volume on one of these
storage arrays, and we mount a snapshot of that volume on the same
host. (The simple use-case is that the snapshot is being used to
restore a set of files.)
We've noticed two problems:
1. The dmesg log shows that the kernel recognizes the Btrfs object id
for both devices. For example:
[ 2920.923517] btrfs: device fsid 54c6e67c-fd51-4aed-a865-4ed4e1cd246a
devid 1 transid 7 /dev/dm-2
[ 2921.007179] btrfs: device fsid 54c6e67c-fd51-4aed-a865-4ed4e1cd246a devid 1
transid 6 /dev/dm-9
If a user process modifies the original file system, the changes also
appear on the snapshot. This is highly undesirable as we want to
preserve the integrity of the snapshot so that it reflects the state
of the volume when the snapshot was created.
2. We cannot mount the original volume read-write and mount the
snapshot read-only.
Is there a mount option for Btrfs that will allow us to mount the
Btrfs file system and ignore the UUID on the device or allow us to
assign a new (random) UUID for the volume? For example, xfs provides
a mount option "-o nouuid". Gfs2 allows mount option "-o
locktable=<UUID>" to specify a new locktable.
Thank you.
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2013-06-10 15:51 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-06-10 15:19 How to mount a copy of a disk with a Btrfs file system on it? kevin
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).