From: Hugo Mills <hugo@carfax.org.uk>
To: Jim Maloney <jim@webstarts.com>
Cc: linux-btrfs@vger.kernel.org
Subject: Re: btrfs over nfs
Date: Mon, 22 Aug 2011 22:28:47 +0100 [thread overview]
Message-ID: <20110822212847.GA5412@carfax.org.uk> (raw)
In-Reply-To: <CAGFoeJ8J4f2_r=bdWapr0CM+Oq+aSJ78-E4D2zP5atHXdovoFw@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 2183 bytes --]
On Mon, Aug 22, 2011 at 05:07:45PM -0400, Jim Maloney wrote:
> I have been experimenting exporting btrfs subvolumes over nfs. Main
> subvolume is filesys1 mounted at /filesys1. Below this is subvolume
> base, user1 is in base and documents is in user1. documents is
> mounted at /documents. /etc/exports is:
> /filesys1/base/user1 172.16.0.0/24(rw,no_acl,no_root_squash,fsid=0)
> /filesys1/user1-snapshot 172.16.0.0/24(rw,no_acl,no_root_squash,fsid=0)
> /documents 172.16.0.0/24(rw,no_acl,no_root_squash,fsid=0)
I think you need to specify a different fsid for each export.
That's what I've got here, and it seems to work.
Hugo.
>
> On the client machine I mount user1 as /mnt/user and all data from
> user is present.
> I can also umount /mnt/usr and mount /documents as /mnt/documents and
> all data is present.
> However, if I mount user1 as /mnt/user and then mount /documents as
> /mnt/documents
> the data from the last subvolume mounted shows in both mounts. Mount
> also shows:
> 172.16.0.28:/documents/ on /mnt/user type nfs
> (rw,relatime,vers=3,rsize=262144,wsize=262144,namlen=255,hard,proto=tcp,timeo=600,retrans=2,sec=sys,mountaddr=172.16.0.28,mountvers=3,mountport=892,mountproto=udp,local_lock=none,addr=172.16.0.28)
> 172.16.0.28:/documents/ on /mnt/documents type nfs
> (rw,relatime,vers=3,rsize=262144,wsize=262144,namlen=255,hard,proto=tcp,timeo=600,retrans=2,sec=sys,mountaddr=172.16.0.28,mountvers=3,mountport=892,mountproto=udp,local_lock=none,addr=172.16.0.28)
>
> The initial mount of user1 on /mnt/user showed correctly in mount.
> Mount changes when I add the mount for /documents.
> I don't know how to troubleshoot this. I am happy to provide any info
> which can help.
> Btrfs is currently on a centOS6 machine running kernel 3.0.1 with
> btrfs-progs from git unstable.
> NFS is v3 on both server and client and the client is Fedora 15 kernel
> 2.6.40-4.fc15.x86_64
> Thanks
> Jim Maloney
>
>
--
=== 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
--- Someone's been throwing dead sheep down my Fun Well ---
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 190 bytes --]
next prev parent reply other threads:[~2011-08-22 21:28 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-08-22 21:07 btrfs over nfs Jim Maloney
2011-08-22 21:28 ` Hugo Mills [this message]
2011-08-23 13:27 ` Jim Maloney
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=20110822212847.GA5412@carfax.org.uk \
--to=hugo@carfax.org.uk \
--cc=jim@webstarts.com \
--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