Hi Susant, I have installed Glusterfs in 2 machines which I want to use for establishing cluster. I am using CentOs 6.6. The gluster volume is set up and running fine. I am manually creating the files onto the mounted volume and they are replicating.. So far looks like everything is working. Now I have configured a shared ip address for reaching the replicated volume by using the following command: gluster volume set [VOLUME] auth.allow [IP ADDRESS] This IP address is visible to me under "gluster volume info", but I am unable to ping this ip address. I am getting the message that "Host is unreachable" I need this ip address reachable so that I can connect my application which needs to use this shared ip to connect to cluster. This application is a little urgent for me. I would really appreciate your help.. Thanks Sharad -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://www.gluster.org/pipermail/gluster-users/attachments/20150429/99570bd2/attachment.html>
On 29/04/15 10:34, Sharad Shukla wrote:> Hi Susant, > > I have installed Glusterfs in 2 machines which I want to use for > establishing cluster. I am using CentOs 6.6. The gluster volume is set > up and running fine. I am manually creating the files onto the mounted > volume and they are replicating.. > > So far looks like everything is working. Now I have configured a > shared ip address for reaching the replicated volume by using the > following command: > > gluster volume set[VOLUME]auth.allow[IP ADDRESS] > > This IP address is visible to me under "gluster volume info", but I am > unable to ping this ip address. I am getting the message that "Host is > unreachable" > > I need this ip address reachable so that I can connect my application > which needs to use this shared ip to connect to cluster. > > This application is a little urgent for me. I would really appreciate > your help.. > > Thanks > SharadHi, That command is just setting an acl for that IP to connect to the gluster daemon. Normally you don't need to add any IP addresses as glusterfs clients will know about both servers as soon as they connect to one of them. If you're using Samba or NFS the preferred option is to use CTDB to spread a pool of virtual IP addresses over the servers. Cheers Alex> > > -- > This message has been scanned for viruses and > dangerous content by *MailScanner* <http://www.mailscanner.info/>, and is > believed to be clean. > > > _______________________________________________ > Gluster-users mailing list > Gluster-users at gluster.org > http://www.gluster.org/mailman/listinfo/gluster-users-- This message is intended only for the addressee and may contain confidential information. Unless you are that person, you may not disclose its contents or use it in any way and are requested to delete the message along with any attachments and notify us immediately. "Transact" is operated by Integrated Financial Arrangements plc. 29 Clement's Lane, London EC4N 7AE. Tel: (020) 7608 4900 Fax: (020) 7608 5300. (Registered office: as above; Registered in England and Wales under number: 3727592). Authorised and regulated by the Financial Conduct Authority (entered on the Financial Services Register; no. 190856). -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://www.gluster.org/pipermail/gluster-users/attachments/20150429/af3b5e81/attachment.html>
On Wed, Apr 29, 2015 at 11:34:31AM +0200, Sharad Shukla wrote:> Hi Susant, > > I have installed Glusterfs in 2 machines which I want to use for > establishing cluster. I am using CentOs 6.6. The gluster volume is set up > and running fine. I am manually creating the files onto the mounted volume > and they are replicating.. > > So far looks like everything is working. Now I have configured a shared ip > address for reaching the replicated volume by using the following command: > > gluster volume set [VOLUME] auth.allow [IP ADDRESS] > > This IP address is visible to me under "gluster volume info", but I am > unable to ping this ip address. I am getting the message that "Host is > unreachable"This option allows connecting *from* that IP-address to the volume. It is not an option that automatically configures a virtual ip-address for the trusted storage pool of your Gluster servers.> I need this ip address reachable so that I can connect my application which > needs to use this shared ip to connect to cluster.You would need to use a cluster manager that handles IP-addresses and their relocation on failure. Or a load-balancer that redirects the IP-address to the actual servers. An other option is to use the "backup-volfile-servers" or "backupvolfile-server" mount option. That way you an specify a fall-back server during the mount process. After the mounting, the client will talk to all the bricks in the volume directly, and not use the virtual IP-address anymore. HTH, Niels -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 181 bytes Desc: not available URL: <http://www.gluster.org/pipermail/gluster-users/attachments/20150429/5b6325b9/attachment.sig>