Hi,

I have tried the trick several times but had no success so far.

Below is the info of my testing environment

[root@GS_BackupFarm_Cluster01 ~]# gluster volume set bkfarm nfs.export-dir /00
Set volume successful
[root@GS_BackupFarm_Cluster01 ~]# gluster volume set bkfarm nfs.export-volumes 
off
Set volume successful
[root@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
nfs.export-volumes: off
diagnostics.client-log-level: ERROR
diagnostics.brick-log-level: ERROR
cluster.min-free-disk: 10%
performance.cache-size: 2048MB

----------client side ---------
[root@GSO_DB_Local1 ~]# mount -t nfs bkf3:/00 /bkfarm/
mount: bkf3:/00 failed, reason given by server: No such file or directory

What am I missing? Any thought?

Thanks,
~Thai

From: Anush Shetty [mailto:[email protected]]
Sent: Monday, November 14, 2011 5:21 PM
To: Thai. Ngo Bao; [email protected]
Subject: RE: NFS expose subfolders only

Hi,

These volume set options should do the trick

gluster volume set xfsvol nfs.export-dir /subdir

 gluster volume set xfsvol nfs.export-volumes off

Let me know.
-
Anush
________________________________
From: [email protected] [[email protected]] on 
behalf of Thai. Ngo Bao [[email protected]]
Sent: 14 November 2011 15:39:46
To: [email protected]
Subject: [Gluster-users] NFS expose subfolders only
Hi,

AFAIK one can expose subfolders thru gluster NFS for a client if he/she has 
option nfs.export-volumes ON and nfs.export-dir Enable. There will be a case 
(for security purpose)  when people just want to expose only subfolders for 
clients thru NFS.  I wonder if it is possible to expose only subfolders thru 
gluster NFS protocol for a client?

Any insight into this is much appreciated.

Thanks,
~Thai

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

Reply via email to