You can only mount sub dirs via NFS:

[root@login1-dev ~]# mount -t glusterfs storage0-dev.cssd.pitt.edu:/vol_home /mnt
[root@login1-dev ~]# echo $?
0
[root@login1-dev ~]# umount /mnt
[root@login1-dev ~]# mount -t glusterfs storage0-dev.cssd.pitt.edu:/vol_home/cssd /mnt
Mount failed. Please check the log file for more details.
[root@login1-dev ~]# echo $?
1
[root@login1-dev ~]# mount -t nfs -o tcp,vers=3 storage0-dev.cssd.pitt.edu:/vol_home /mnt
[root@login1-dev ~]# echo $?
0
[root@login1-dev ~]# umount /mnt
[root@login1-dev ~]# mount -t nfs -o tcp,vers=3 storage0-dev.cssd.pitt.edu:/vol_home/cssd /mnt
[root@login1-dev ~]# echo $?
0
[root@login1-dev ~]# ls /mnt
adc57  jar7  jaw171  SecurityScanSvc

From the server side I don't think there is a way to limit what client can mount what subdir. You control that at the volume level with the nfs.rpc-auth-allow option (see 'volume set' in the docs) but not at the subdir level.

Jeff White - GNU+Linux Systems Engineer
University of Pittsburgh - CSSD


On 07/12/2012 06:45 PM, Mailing Lists wrote:
Hello everybody,

I would export thought NFS, or evently native glusterFs, some directories from 
a volume but I need that each directory should be only exported to a specific 
IP address.

As an exemple :

/data1 would be exported only to 10.0.0.1
/data2 would be exported only to 10.0.0.2
/dataX would be exported only to 10.0.0.X

with /data1, /data2 and /dataX being subdirectories in the same gluster volume.

How can I do that ?

I've read the parameters of the gluster NFS server but I did not saw a way to 
do this.

Thank for your help.

Michel.
_______________________________________________
Gluster-users mailing list
Gluster-users@gluster.org
http://gluster.org/cgi-bin/mailman/listinfo/gluster-users
_______________________________________________
Gluster-users mailing list
Gluster-users@gluster.org
http://gluster.org/cgi-bin/mailman/listinfo/gluster-users

Reply via email to