[Gluster-users] NFS expose subfolders only

Anush Shetty anush at gluster.com
Mon Nov 14 10:39:58 UTC 2011


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
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 at 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:anush at gluster.com]
Sent: Monday, November 14, 2011 5:21 PM
To: Thai. Ngo Bao; gluster-users at gluster.org
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: gluster-users-bounces at gluster.org [gluster-users-bounces at gluster.org] on behalf of Thai. Ngo Bao [thainb at vng.com.vn]
Sent: 14 November 2011 15:39:46
To: gluster-users at gluster.org
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://supercolony.gluster.org/pipermail/gluster-users/attachments/20111114/b919b525/attachment.html>


More information about the Gluster-users mailing list