Hi, With NFS (including Gluster NFS), if I export 192.168.1.1:/bob, and in bob I have a directory called sally, I can mount sally directly (mount -t nfs 192.168.1.1:/bob/sally /mnt/sally. Can I do that with Gluster directly? Basically, what I'm trying to do, is get Gluster to work directly in Citrix XenServer. When I export bob, and ask XenServer to create a storage repository, it creates sally and then mounts sally as the storage repo. If that makes sense. Gerald
On 04/10/12 17:17, Gerald Brandt wrote:> Can I do that with Gluster directly? > > Basically, what I'm trying to do, is get Gluster to work > directly in Citrix XenServer. When I export bob, and ask > XenServer to create a storage repository, it creates sally > and then mounts sally as the storage repo.You can't mount subdirectories using the fuse mount. I use bind mount to get around this. Mount gluster somewhere (/gluster/vol01) and then bind mount to where you want. mount --bind /gluster/vol01/sally /home/sally /etc/fstab: glusternode01:/vol01 /glusterfs/vol01 glusterfs defaults,transport=tcp,_netdev 0 0 /glusterfs/vol01/sally /home/sally none bind,_netdev 0 0 -- Mr. Flibble King of the Potato People