[Gluster-users] Question on HA Active-Active Ganesha setup
Surya K Ghatty
ghatty at us.ibm.com
Mon Nov 9 19:15:30 UTC 2015
Hi Soumya, Avra,
The gluster_shared_storage volume has not be created, and there is no
shared_storage directory that has been created. The gluster peer status
shows the two nodes (gluster1, and gluster2) are up and running. Also,
restarting the glusterd on either machines did not make any difference.
I used to have a three node setup (gluster3, in addition to the above
setup), and I detached one of them uninstalled gluster on it. jiffin and
kkeithley_ pointed on ganesha irc channel, "I think it didn't work because
it wants three nodes/bricks to make a "replica 3" volume"
I cleaned up glusterd on the remaining machines by stopping the glusterd,
deleting /var/run/gluster/* and then restarted glusterd on both machines.
It is at this point that the cluster.enable-shared-storage seemed to work.
>Has the "gluster_shared_storage" volume creation itself failed? Verify
>in 'gluster volume info'.
>Also check if the gluster nodes are in healthy state 'gluster peer
>status'. Try restarting 'glusterd' service on both the nodes.
My observation:
1. I would expect the script to return unsuccessful if the creation of
gluster_shared_volume or shared directory fails. The command currently
returns successful message.
2. The command should display an appropriate error message indicating what
went wrong. Instead, there is no indication either in the logs or on the
console that something failed.
Let me know what you think.
Regards,
Surya Ghatty
"This too shall pass"
________________________________________________________________________________________________________
Surya Ghatty | Software Engineer | IBM Cloud Infrastructure Services
Development | tel: (507) 316-0559 | ghatty at us.ibm.com
From: Soumya Koduri <skoduri at redhat.com>
To: Surya K Ghatty/Rochester/IBM at IBMUS, gluster-users at gluster.org
Cc: Avra Sengupta <asengupt at redhat.com>
Date: 11/06/2015 11:18 AM
Subject: Re: [Gluster-users] Question on HA Active-Active Ganesha setup
On 11/05/2015 08:43 PM, Surya K Ghatty wrote:
> All... I need your help! I am trying to setup Highly available
> Active-Active Ganesha configuration on two glusterfs nodes based on
> instructions here:
>
>
https://gluster.readthedocs.org/en/latest/Administrator%20Guide/Configuring%20HA%20NFS%20Server/
> and
> http://www.slideshare.net/SoumyaKoduri/high-49117846 and
> https://www.youtube.com/watch?v=Z4mvTQC-efM.
>
>
> *My questions:*
>
> 1. what is the expected behvaior? Is the cluster.enable-shared-storage
> command expected to create shared storage? It seems odd to return a
> success message without creating the shared volume.
> 2. Any suggestions on how to get past this problem?
>
> *Details:*
> I am using glusterfs 3.7.5 and Ganesha 2.2.0.6 installable packages. I'm
> installing
>
> Also, I am using the following command
>
> gluster volume set all cluster.enable-shared-storage enable
>
> that would automatically setup the shared_storage directory under
> /run/gluster/ and automounts the shared volume for HA.
>
> This command was working perfectly fine, and I was able to setup ganesha
> HA successfully on cent OS 7.0 running on bare metals - until now.
>
>
>
> [root at qint-tor01-c7 gluster]# gluster vol set all
> cluster.enable-shared-storage enable
> volume set: success
>
> [root at qint-tor01-c7 gluster]# pwd
> /run/gluster
>
> [root at qint-tor01-c7 gluster]# ls
> 5027ba011969a8b2eca99ca5c9fb77ae.socket shared_storage
> changelog-9fe3f3fdd745db918d7d5c39fbe94017.sock snaps
> changelog-a9bf0a82aba38610df80c75a9adc45ad.sock
>
>
> Yesterday, we tried to deploy Ganesha HA with Gluster FSAL on a
> different cloud. and when I run the same command there, (same version of
> glusterfs and ganesha, same cent OS 7) - the command returned
> successfully, but it did not auto create the shared_storage directory.
> There were no logs either in
> /var/log/glusterfs/etc-glusterfs-glusterd.vol.log
>
> or /var/log/ganesha.log related to the command.
>
> However, I do see these logs written to the
etc-glusterfs-glusterd.vol.log
>
> [2015-11-05 14:43:00.692762] W [socket.c:588:__socket_rwv] 0-nfs: readv
> on /var/run/gluster/9d5e1ba5e44bd1aa3331d2ee752a806a.socket failed
> (Invalid argument)
>
> on both ganesha nodes independent of the commands I execute.
>
> regarding this error, I did a ss -x | grep
> /var/run/gluster/9d5e1ba5e44bd1aa3331d2ee752a806a.socket
>
> and it appears that no process was using these sockets, on either
machines.
>
> My questions:
>
> 1. what is the expected behvaior? Is the cluster.enable-shared-storage
> command expected to create shared storage? It seems odd to return a
> success message without creating the shared volume.
yes. This command creates the volume "gluster_shared_storage" and
mounts it at '/run/gluster/shared_storage'.
> 2. Any suggestions on how to get past this problem?
Has the "gluster_shared_storage" volume creation itself failed? Verify
in 'gluster volume info'.
Also check if the gluster nodes are in healthy state 'gluster peer
status'. Try restarting 'glusterd' service on both the nodes.
CCin Avra who may provide more details.
Thanks,
Soumya
> Regards,
>
> Surya Ghatty
>
> "This too shall pass"
>
________________________________________________________________________________________________________
> Surya Ghatty | Software Engineer | IBM Cloud Infrastructure Services
> Development | tel: (507) 316-0559 | ghatty at us.ibm.com
>
>
>
> _______________________________________________
> Gluster-users mailing list
> Gluster-users at gluster.org
> http://www.gluster.org/mailman/listinfo/gluster-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.gluster.org/pipermail/gluster-users/attachments/20151109/de75a34e/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: graycol.gif
Type: image/gif
Size: 105 bytes
Desc: not available
URL: <http://www.gluster.org/pipermail/gluster-users/attachments/20151109/de75a34e/attachment.gif>
More information about the Gluster-users
mailing list