Just set the fsid to something unique for each exported fuse filesystem,
eg fsid=111
See man 5 exports
On Fri, 2010-01-29 at 14:50 -0500, linlin wrote:
> Actually I am using ubuntu kernel 2.6.28. iIt is not very not. However, I
> still can not export fuse to NFS.
>
> Also I am no sure how to set the fsid in the /etc/exports
>
> On Fri, Jan 29, 2010 at 5:26 AM, Sven Utcke <
> utcke+fuse@...>
> > wrote:
>
> > Hi Patrick,
> >
> > I'll send this to the list, as it might be of interest to others...
> >
> > > > > If you read the README.NFS in the distribution of version 2.8.x
> > > > > you'll find a note indicating that your OS kernel needs to be
> > > > > 2.6.27 or newer.
> > > > >
> > > > > I don't know if it is possible to get it working on an older
> > > > > kernel (e.g. 2.6.18 in CentOS5.4)
> > > >
> > > > I have NFS-export running on 2.6.18-92.1.22.el5 using fuse 2.6.3
> > > > --- it's fairly slow(*) (and probably has other, so far
> > > > undetected, shortcomings) but mostly seems to work alright. But
> > > > yeah, it would be real nice to have a writeup which version of
> > > > fuse compiled against which kernel requires which options to make
> > > > what exactly working with regard to nfs-export...
> >
> > > Thanks, do you have any records of what exactly you did to make this
> > > work? We've been happily using it fuse 2.8.0 with Ubuntu9 with the
> > > fuse module in the distribution
> > > Linux 2.6.28-15-server #49-Ubuntu SMP Tue Aug 18 20:09:37 UTC 2009
> > x86_64 GNU/Linux
> > > but can't get it to go with CentOS5.4
> > > Linux 2.6.18-164.10.1.el5 #1 SMP Thu Jan 7 19:54:26 EST 2010 x86_64
> > x86_64 x86_64 GNU/Linux
> >
> > Sure, here's what I did:
> >
> > Minimum requirement:
> >
> > in /etc/exports:
> > # set the fsid!
> > /tmp/dcfs/ hasgkss*.desy.de
> > (rw,root_squash,sync,nohide,fsid=10815,anonuid=99,anongid=99)
> >
> > in /etc/fuse.conf:
> > user_allow_other
> >
> > Then started my FS:
> > ./dcfs-main -o allow_other /tmp/dcfs
> >
> > And restarted nfs:
> > /etc/init.d/nfs restart
> >
> > On the client I mount with
> >
> > mount hasgkssdcfs:/mnt/dcfs /tmp/mnt/ -osoft
> >
> > Although I also tried a number of other flags to speed things up some
> > more, such as:
> >
> > fuse:
> > * allow_other
> > * kernel_cache
> > * use_ino
> >
> > mount;
> > * rsize=32768
> > * wsize=32768
> >
> > However, results on that are inconclusive; and in any case I only see
> > about 10MByte/s, which is half the speed for local access through my
> > filesystem (on a slow experimental platform). This is presumably due
> > to the overhead created by NFS's repeated open-read-close cycles (each
> > of which requires a database access).
> >
> > Other options not yet tried, but named as potentially helpful in
> > other posts:
> >
> > -o large_read issue large read requests (2.4 only)
> > -o max_read=N set maximum size of read requests
> > -o kernel_cache cache files in kernel
> > -o max_write=N set maximum size of write requests
> > -o max_readahead=N set maximum readahead
> >
> > Hope this helps
> >
> > Sven
> > --
> > _ ___ ___ ___
> > __| |/ __|| __|/ __| The dCache File System
> > / _` | (__ | _| \__ \ An archive file-system for PB of data
> > \__,_|\___||_| |___/ http://www.desy.de/~utcke/Data/
> >
> >
> > ------------------------------------------------------------------------------
> > The Planet: dedicated and managed hosting, cloud storage, colocation
> > Stay online with enterprise data centers and the best network in the
> > business
> > Choose flexible plans and management services without long-term contracts
> > Personal 24x7 support from experience hosting pros just a phone call away.
> > http://p.sf.net/sfu/theplanet-com
> > _______________________________________________
> > fuse-devel mailing list
> > fuse-devel@...
> > https://lists.sourceforge.net/lists/listinfo/fuse-devel
> >
>
>
>
> --
> Thanks and best regards,
>
> lin
> ------------------------------------------------------------------------------
> The Planet: dedicated and managed hosting, cloud storage, colocation
> Stay online with enterprise data centers and the best network in the business
> Choose flexible plans and management services without long-term contracts
> Personal 24x7 support from experience hosting pros just a phone call away.
> http://p.sf.net/sfu/theplanet-com
> _______________________________________________
> fuse-devel mailing list
> fuse-devel@...
> https://lists.sourceforge.net/lists/listinfo/fuse-devel
|