[Gluster-users] Reexporting glusterfs to nfs fail

Anand Avati avati at zresearch.com
Wed Nov 5 04:24:56 UTC 2008


Martin,
 Please refer to the FUSE docs (README.NFS) about how to get NFS working for
any FUSE based FS. This issue is not specific to GlusterFS.

avati

2008/11/4, Martin Gumbau <mgumbau at iciq.es>:
>
> Hi,
> I have a machine that must to reexport glusterfs to nfs.
> CONFIGURATION
>
> 2 glusterfs servers
>
>         |
>         |
>         |
>
> 1 gluterfs client
> 1 nfs server
>
>         |
>         |
>         |
>
> 1 nfs client
>
>
> #***********************************************
> # GLUSTERFS SERVER
> #***********************************************
> # Export with glusterfs
> $ glusterfs -f /etc/glusterfs/glusterfs-server.vol
>
> $ cat /etc/glusterfs/glusterfs-server.vol
> # file: /etc/glusterfs/glusterfs-server.vol
> volume brick
>   type storage/posix
>   option directory /cfs/infi/
> end-volume
>
> volume server
>   type protocol/server
>   option transport-type tcp/server
>   option auth.ip.brick.allow *
>   subvolumes brick
> end-volume
>
> #***********************************************
> # GLUSTERFS CLIENT
> #***********************************************
> #Mounting glusterfs in client side
> $ glusterfs -l /var/log/glusterfs/gfscli.log -L DEBUG \
> --direct-io-mode=DISABLE \
> -f /etc/glusterfs/glusterfs-client.vol
>
> $ cat /etc/glusterfs/glusterfs-client.vol
> volume sirius00
>   type protocol/client
>   option transport-type tcp/client
>   option remote-host server00
>   option remote-subvolume brick
> end-volume
>
> volume sirius01
>   type protocol/client
>   option transport-type tcp/client
>   option remote-host server01
>   option remote-subvolume brick
> end-volume
>
> volume mirror0
>   type cluster/afr
>   subvolumes server00 server01
> end-volume
>
> #************************************************
> # NFS-SERVER
> #************************************************
>
> $  cat /etc/exports
> # See the exports(5) manpage for a description of the syntax of this
> file.
> # This file contains a list of all directories that are to be exported
> to
> # other computers via NFS (Network File System).
> # This file used by rpc.nfsd and rpc.mountd. See their manpages for
> details
> # on how make changes in this file effective.
> /mnt/glusterfs *(async,no_root_squash,subtree_check,rw)
>
> #************************************************
> # NFS-CLIENT
> #************************************************
>
> $ mount -tnfs ip_nfs_server:/mnt/glusterfs /mnt/gfs2nfs
>
> #************************************************
>
> RESULT:
> mount: ip_nfs_server:/mnt/glusterfs failed, reason given by server:
> Permission denied
>
> #************************************************
>
> NOTE: if I export /mnt/pendrive that is only a directory in NFS-SERVER,
> the NFS-CLIENT mount it without any problem.
>
>
> --
> Martin Gumbau - mgumbau at iciq.es
> Responsable Informatic
> dels grups teorics
> de Quimica Computacional
> del ICIQ
>
>
> _______________________________________________
> Gluster-users mailing list
> Gluster-users at gluster.org
> http://zresearch.com/cgi-bin/mailman/listinfo/gluster-users
>



-- 
If I traveled to the end of the rainbow
As Dame Fortune did intend,
Murphy would be there to tell me
The pot's at the other end.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://supercolony.gluster.org/pipermail/gluster-users/attachments/20081105/363ee8e8/attachment.html>


More information about the Gluster-users mailing list