[Gluster-users] XenServer and Glusterfs 3.1
stefano.baronio at gmail.com
Thu Nov 11 10:00:53 UTC 2010
Thank you Shehjar,
as we are planning to use glsuterfs in a production environment, we
prefer to stay with the 3.1 stable version.
As for now the port forwarding seems to work properly, because XenServer,
after the testing step on port 2049, correctly connects to the nfs share
using the right ports.
I just have the problem that I cannot mount a NFS share subdirectory.
XenServer, when creating the sr, makes a new directory (the sr uuid) just
under the share root and put its VM file under that directory.
When mounting that subdir, Glusterfs returns the "No such file or directory"
2010/11/11 Tikoo <shehjart at gluster.com>
> Yes. That was a limitation on 3.1 release and is already fixed in mainline.
> This support allows you to change the nfs port number that Gluster NFS uses
> by default. It'll be available in 3.1.1 but if you'd like to test right
> away, please use 3.1.1qa5 by checking it out from the repository:
> $ git clone git://git.gluster.com/glusterfs.git
> $ cd glusterfs
> $ git checkout -b v3.1.1qa5 3.1.1qa5
> Then build and install.
> To change the nfs port, locate the volume section nfs/server in
> /etc/glusterd/nfs/nfs-server.vol and add the following line:
> option nfs.port 2049
> Note that this option is not yet available in the gluster CLI, so you'll
> have to manually edit this file and restart the gluster nfs daemon. Be
> careful while using that tool, because on a restart of a volume using
> gluster CLI, your edited volume file will get over-written with the default
> Stefano Baronio wrote:
>> Hello all,
>> I'm new to the list and I'm working on glusterfs since a month right now.
>> I'm posting a request about how to get XenServer working with Glusterfs.
>> I have a standard setup of both XenServer and Glusterfs.
>> I can mount the glusterfs nfs share from the Xen CLI, write in it and
>> it as an ISO library as well.
>> I just can't mount it for storage purpose.
>> It seems that XenServer is testing the NFS share directly to port 2049,
>> without checking with portmapper.
>> I have tried to make glusterfs listen on port 2049 without any success, so
>> have setup a port forwarding on the gluster server.
>> Lets say:
>> xen01 - 192.168.14.33
>> xenfs01 (gluster nfs) - 192.168.14.61
>> The iptables settings are:
>> iptables -A PREROUTING -d 192.168.14.61 -p tcp -m tcp --dport 2049 -j DNAT
>> --to-destination 192.168.14.61:38467
>> iptables -A FORWARD -d 192.168.14.61 -p tcp -m tcp --dport 38467 -j ACCEPT
>> Now XenServer can correctly test the gluster nfs share. It creates the
>> sr-uuid directory in it, but it can't mount it, with the following error:
>> FAILED: (errno 32) stdout: '', stderr: 'mount:
>> xenfs01:/xenfs/1ca32487-42fe-376e-194c-17f78afc006c failed, reason given
>> server: No such file or directory
>> Any help appreciated.
>> Thank you
>> Gluster-users mailing list
>> Gluster-users at gluster.org
More information about the Gluster-users