Linux Btrfs filesystem development
 help / color / mirror / Atom feed
* btrfs over nfs
@ 2011-08-22 21:07 Jim Maloney
  2011-08-22 21:28 ` Hugo Mills
  0 siblings, 1 reply; 3+ messages in thread
From: Jim Maloney @ 2011-08-22 21:07 UTC (permalink / raw)
  To: linux-btrfs

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)

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


--
Jim Maloney

email - jim@webstarts.com

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: btrfs over nfs
  2011-08-22 21:07 btrfs over nfs Jim Maloney
@ 2011-08-22 21:28 ` Hugo Mills
  2011-08-23 13:27   ` Jim Maloney
  0 siblings, 1 reply; 3+ messages in thread
From: Hugo Mills @ 2011-08-22 21:28 UTC (permalink / raw)
  To: Jim Maloney; +Cc: linux-btrfs

[-- 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 --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: btrfs over nfs
  2011-08-22 21:28 ` Hugo Mills
@ 2011-08-23 13:27   ` Jim Maloney
  0 siblings, 0 replies; 3+ messages in thread
From: Jim Maloney @ 2011-08-23 13:27 UTC (permalink / raw)
  To: Hugo Mills, Jim Maloney, linux-btrfs

Thanks Hugo, I totally missed the fsid's.  That works perfectly.
Jim

On Mon, Aug 22, 2011 at 5:28 PM, Hugo Mills <hugo@carfax.org.uk> wrote:
> On Mon, Aug 22, 2011 at 05:07:45PM -0400, Jim Maloney wrote:
>> I have been experimenting exporting btrfs subvolumes over nfs. =C2=A0=
Main
>> subvolume is filesys1 mounted at /filesys1. =C2=A0Below this is subv=
olume
>> base, user1 is in base and documents is in user1. =C2=A0 documents i=
s
>> mounted at /documents. =C2=A0/etc/exports is:
>> /filesys1/base/user1 =C2=A0 =C2=A0172.16.0.0/24(rw,no_acl,no_root_sq=
uash,fsid=3D0)
>> /filesys1/user1-snapshot =C2=A0 =C2=A0 =C2=A0 =C2=A0172.16.0.0/24(rw=
,no_acl,no_root_squash,fsid=3D0)
>> /documents =C2=A0 =C2=A0 =C2=A0172.16.0.0/24(rw,no_acl,no_root_squas=
h,fsid=3D0)
>
> =C2=A0 I think you need to specify a different fsid for each export.
> That's what I've got here, and it seems to work.
>
> =C2=A0 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 an=
d
>> 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. =C2=A0=
Mount
>> also shows:
>> 172.16.0.28:/documents/ on /mnt/user type nfs
>> (rw,relatime,vers=3D3,rsize=3D262144,wsize=3D262144,namlen=3D255,har=
d,proto=3Dtcp,timeo=3D600,retrans=3D2,sec=3Dsys,mountaddr=3D172.16.0.28=
,mountvers=3D3,mountport=3D892,mountproto=3Dudp,local_lock=3Dnone,addr=3D=
172.16.0.28)
>> 172.16.0.28:/documents/ on /mnt/documents type nfs
>> (rw,relatime,vers=3D3,rsize=3D262144,wsize=3D262144,namlen=3D255,har=
d,proto=3Dtcp,timeo=3D600,retrans=3D2,sec=3Dsys,mountaddr=3D172.16.0.28=
,mountvers=3D3,mountport=3D892,mountproto=3Dudp,local_lock=3Dnone,addr=3D=
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. =C2=A0I am happy to provide a=
ny 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 kern=
el
>> 2.6.40-4.fc15.x86_64
>> Thanks
>> Jim Maloney
>>
>>
>
> --
> =3D=3D=3D Hugo Mills: hugo@... carfax.org.uk | darksatanic.net | lug.=
org.uk =3D=3D=3D
> =C2=A0PGP key: 515C238D from wwwkeys.eu.pgp.net or http://www.carfax.=
org.uk
> =C2=A0 =C2=A0 =C2=A0 --- Someone's been throwing dead sheep down my F=
un Well ---
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.10 (GNU/Linux)
>
> iD8DBQFOUsoPIKyzvlFcI40RAkm1AJ4no85LpWeJEHDQKM+FYmGhyQOnrgCeOYlU
> hdRi30122c6NTzMYX9y2XvY=3D
> =3DnwXm
> -----END PGP SIGNATURE-----
>
>



--=20
Jim Maloney

email - jim@webstarts.com
--
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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-08-23 13:27 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-08-22 21:07 btrfs over nfs Jim Maloney
2011-08-22 21:28 ` Hugo Mills
2011-08-23 13:27   ` Jim Maloney

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox