[Gluster-users] Reexporting glusterfs to nfs fail

Martin Gumbau mgumbau at iciq.es
Tue Nov 4 09:17:25 PST 2008


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




More information about the Gluster-users mailing list