Hi,

Try this on the client,

mount -o vers=3 server_ip:/bkfarm/ /mnt/nfs

-
Anush
________________________________
From: Thai. Ngo Bao [[email protected]]
Sent: 14 November 2011 16:19:34
To: Anush Shetty; [email protected]
Subject: RE: NFS expose subfolders only

Anush, thanks for the quick reply.

Below is the output of showmount at server side:

[root@GS_BackupFarm_Cluster01 ~]# showmount -e localhost
Export list for localhost:
/bkfarm/00 *

Output from netstat:

[root@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@GSO_DB_Local1 ~]# showmount -e localhost
mount clntudp_create: RPC: Program not registered
[root@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:[email protected]]
Sent: Monday, November 14, 2011 5:40 PM
To: Thai. Ngo Bao; [email protected]
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 [[email protected]]
Sent: 14 November 2011 16:07:05
To: Anush Shetty; [email protected]
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@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
________________________________
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