[Gluster-users] NFS expose subfolders only

Thai. Ngo Bao thainb at vng.com.vn
Mon Nov 14 16:06:51 UTC 2011


Hi,

Is it possible to expose multiple sub-folders using nfs.export-dir? I do not have an access to my test environment right now, so I guess something similar should be done: gluster volume set volume_name nfs.export-dir  /sub-folder1   /sub-folder2 ... ?

Any insight into this is much appreciated, and I will definitely figure out what should be done tomorrow for the case.

Thanks,
~Thai
________________________________________
From: gluster-users-bounces at gluster.org [gluster-users-bounces at gluster.org] On Behalf Of Thai. Ngo Bao [thainb at vng.com.vn]
Sent: Monday, November 14, 2011 6:02 PM
To: Shehjar Tikoo
Cc: gluster-users at gluster.org
Subject: Re: [Gluster-users] NFS expose subfolders only

Bingo. It works. Shehjar, thanks for your hint.

~Thai


-----Original Message-----
From: Shehjar Tikoo [mailto:shehjart at gluster.com]
Sent: Monday, November 14, 2011 5:55 PM
To: Thai. Ngo Bao
Cc: Anush Shetty; gluster-users at gluster.org
Subject: Re: [Gluster-users] NFS expose subfolders only

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
>


-----
No virus found in this message.
Checked by AVG - www.avg.com
Version: 2012.0.1869 / Virus Database: 2092/4615 - Release Date: 11/13/11
_______________________________________________
Gluster-users mailing list
Gluster-users at gluster.org
http://gluster.org/cgi-bin/mailman/listinfo/gluster-users

-----
No virus found in this message.
Checked by AVG - www.avg.com
Version: 2012.0.1869 / Virus Database: 2092/4615 - Release Date: 11/13/11



More information about the Gluster-users mailing list