[Gluster-users] NFS expose subfolders only
Shehjar Tikoo
shehjart at gluster.com
Mon Nov 14 10:54:36 UTC 2011
Directory exports are enabled by default. You just need to mount using
/bkfarm/00 as the export dir, not /00.
-Shehjar
Thai. Ngo Bao wrote:
> Anush, thanks for the quick reply.
>
>
>
> Below is the output of showmount at server side:
>
>
>
> [root at GS_BackupFarm_Cluster01 ~]# showmount -e localhost
>
> Export list for localhost:
>
> /bkfarm/00 *
>
>
>
> Output from netstat:
>
>
>
> [root at GS_BackupFarm_Cluster01 ~]# netstat -vtlpn
>
> Active Internet connections (only servers)
>
> Proto Recv-Q Send-Q Local Address Foreign
> Address State PID/Program name
>
> tcp 0 0 0.0.0.0:38465
> 0.0.0.0:* LISTEN 1531/glusterfs
>
> tcp 0 0 0.0.0.0:38466
> 0.0.0.0:* LISTEN 1531/glusterfs
>
> tcp 0 0 0.0.0.0:38467
> 0.0.0.0:* LISTEN 1531/glusterfs
>
> tcp 0 0 0.0.0.0:805
> 0.0.0.0:* LISTEN 4015/rpc.statd
>
> tcp 0 0 0.0.0.0:111
> 0.0.0.0:* LISTEN 3934/portmap
>
> tcp 0 0 :::24007
> :::* LISTEN 22996/glusterd
>
> tcp 0 0 :::24009
> :::* LISTEN 8653/glusterfsd
>
>
>
>
>
> ---------client side ---------------
>
> [root at GSO_DB_Local1 ~]# showmount -e localhost
>
> mount clntudp_create: RPC: Program not registered
>
> [root at GSO_DB_Local1 ~]# mount -o vers=3 bkf3:/00 /bkfarm/
>
> mount: bkf3:/00 failed, reason given by server: No such file or directory
>
>
>
> Any ideas?
>
>
>
> Thanks,
>
> ~Thai
>
>
>
> *From:* Anush Shetty [mailto:anush at gluster.com]
> *Sent:* Monday, November 14, 2011 5:40 PM
> *To:* Thai. Ngo Bao; gluster-users at gluster.org
> *Subject:* RE: NFS expose subfolders only
>
>
>
> Hi,
>
> Please make sure that nfs-kernel-server isn't running.
>
> Can you pase your showmount -e output?
>
> The right way to mount Gluster NFS is,
> mount -o vers=3 bkf3:/00 /bkfarm/
>
> -
> Anush
>
> ------------------------------------------------------------------------
>
> *From:* Thai. Ngo Bao [thainb at vng.com.vn]
> *Sent:* 14 November 2011 16:07:05
> *To:* Anush Shetty; gluster-users at gluster.org
> *Subject:* RE: NFS expose subfolders only
>
> Hi,
>
>
>
> I have tried the trick several times but had no success so far.
>
>
>
> Below is the info of my testing environment
>
>
>
> [root at GS_BackupFarm_Cluster01 ~]# gluster volume set bkfarm
> nfs.export-dir /00
>
> Set volume successful
>
> [root at GS_BackupFarm_Cluster01 ~]# gluster volume set bkfarm
> nfs.export-volumes off
>
> Set volume successful
>
> [root at GS_BackupFarm_Cluster01 ~]# gluster volume info
>
>
>
> Volume Name: bkfarm
>
> Type: Distributed-Replicate
>
> Status: Started
>
> Number of Bricks: 4 x 2 = 8
>
> Transport-type: tcp
>
> Bricks:
>
> Brick1: bkf1:/sfarm
>
> Brick2: bkf2:/sfarm
>
> Brick3: bkf3:/sfarm
>
> Brick4: bkf4:/sfarm
>
> Brick5: bkf5:/sfarm
>
> Brick6: bkf6:/sfarm
>
> Brick7: bkf7:/sfarm
>
> Brick8: bkf8:/sfarm
>
> Options Reconfigured:
>
> nfs.disable: Off
>
> nfs.export-dir: /00
>
More information about the Gluster-users
mailing list