From: pille <pille+kernel.org+mailinglist+linux-nfs@struction.de>
To: "J. Bruce Fields" <bfields@fieldses.org>
Cc: linux-nfs@vger.kernel.org, 1071733@bugs.launchpad.net
Subject: Re: NFS export of LVM snapshot exports origin instead of snapshot
Date: Thu, 08 Nov 2012 21:20:41 +0100 [thread overview]
Message-ID: <509C1419.2030802@struction.de> (raw)
In-Reply-To: <20121108195025.GA5042@fieldses.org>
On 11/08/2012 08:50 PM, J. Bruce Fields wrote:
> The protocol references files on the filesystem using filehandles. The
> linux NFS server generates a filehandle that has a part which identifies
> the filesystem and a part which identifies the particular file (usually
> an inode and generation number).
sounds comprehensible.
> The filesystem part in your case is probably a uuid which is part of
> what's copied when you snapshot (as are all the inode numbers). So
> you're left with filehandles that are the same for the two filesystems.
i can confirm that both filesystems by design have the same UUID.
> You can tell it to instead to use whatever integer you'd like using the
> "fsid=" export option (just don't used fsid=0, which has a special
> meaning).
tried that already (using 2 and 6) and it did not work.
> Or, probably better--you should be able to be able to modify the uuid...
> Looking at the tune2fs man page, I think it should be:
>
> tune2fs -U random /dev/vg0/nfssnapshot
we're using xfs in production, but it has some similar tool. i'll look
into it tomorrow, because it doesn't works out that quick.
my problem with this issue is that we're running this setup for over two
years now and the NFS server wasn't rebooted since half a year and the
bug just showed recently. while we didn't had safety-checks in place to
be sure what we mounted, we regularly simulated file-operations on a
snapshot which never affected the origin volume.
pille
prev parent reply other threads:[~2012-11-08 20:20 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-11-08 16:13 NFS export of LVM snapshot exports origin instead of snapshot pille
2012-11-08 19:50 ` J. Bruce Fields
2012-11-08 20:20 ` pille [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=509C1419.2030802@struction.de \
--to=pille+kernel.org+mailinglist+linux-nfs@struction.de \
--cc=1071733@bugs.launchpad.net \
--cc=bfields@fieldses.org \
--cc=linux-nfs@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).