[Gluster-users] question on NFS mounting

Mike Hanby mhanby at uab.edu
Mon Nov 8 23:13:11 UTC 2010

Each Gluster server that is going to also act as an NFS server (or Samba) has to mount the volume using the Gluster client:

For example, on my two GlusterFS servers I have the following:
LABEL=brick01-01        /export/nas-01/brick01  ext4    defaults,_netdev         0 2
LABEL=brick01-02        /export/nas-01/brick02  ext4    defaults,_netdev         0 2
...bricks 3-8
LABEL=brick01-09        /export/nas-01/brick09  ext4    defaults,_netdev         0 2
localhost:/dev-storage  /develop                glusterfs defaults,_netdev       0 0

LABEL=brick02-01        /export/nas-02/brick01  ext4    defaults,_netdev         0 2
LABEL=brick02-02        /export/nas-02/brick02  ext4    defaults,_netdev         0 2
...bricks 3-8
LABEL=brick02-09        /export/nas-02/brick09  ext4    defaults,_netdev         0 2
localhost:/dev-storage  /develop                glusterfs defaults,_netdev       0 0

And then "/usr/sbin/showmount -e nas-01" and "/usr/sbin/showmount -e nas-02" both show the "/dev-storage *" export.

Also verify your firewalls have the appropriate ports open on all servers. For example on CentOS 5 for 2 servers with 18 bricks and 1 volume:

# GlusterFS
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 111 -j ACCEPT
-A RH-Firewall-1-INPUT -m state --state NEW -m udp -p udp --dport 111 -j ACCEPT
# GlsuterFS 24007, 24008 plus 1 port per brick across all volumes, 18 bricks in this case
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 24007:24026 -j ACCEPT
# Gluster port 38465 and NFS for 2 Gluster servers, 1 port per server
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 38465:38468 -j ACCEPT
# End GlusterFS


-----Original Message-----
From: gluster-users-bounces at gluster.org [mailto:gluster-users-bounces at gluster.org] On Behalf Of Bernard Li
Sent: Sunday, November 07, 2010 1:10 AM
To: landman at scalableinformatics.com
Cc: gluster-users at gluster.org
Subject: Re: [Gluster-users] question on NFS mounting

Hi Joe:

On Sun, Nov 7, 2010 at 12:03 AM, Joe Landman
<landman at scalableinformatics.com> wrote:

> Actually, showmount didn't work.
> We get permission denied.  Even after playing with the auth.allowed flag.

That's an indication that the gNFS server is not running.

I would recommend you review the FAQ and some of the recent posts on
the list, as there have been a couple threads discussing numerous
NFS-related issues and their solutions.  I've collected them for you
here for your convenience:



Gluster-users mailing list
Gluster-users at gluster.org

More information about the Gluster-users mailing list