How to Sync Cluster Configuration and Verify Failover Setup in Nodes – Part 4

If You Appreciate What We Do Here On TecMint, You Should Consider:

  1. Stay Connected to: Twitter | Facebook | Google Plus
  2. Subscribe to our email updates: Sign Up Now
  3. Get your own self-hosted blog with a Free Domain at ($3.95/month).
  4. Become a Supporter - Make a contribution via PayPal
  5. Support us by purchasing our premium books in PDF format.
  6. Support us by taking our online Linux courses

We are thankful for your never ending support.

Thilina Uvindasiri

I'm a BSc Special (Hons) graduate in Information Technology and works as an Engineer-Systems. Love to work, explore and research Linux and play rugby as a hobby.

Your name can also be listed here. Got a tip? Submit it here to become an TecMint author.

RedHat RHCE and RHCSA Certification Book
Linux Foundation LFCS and LFCE Certification Preparation Guide

You may also like...

45 Responses

  1. Karuppasamy K says:

    I have run the command:

    # ccs -h 192.168.1.122 --addresource fs name=my_fs device=/dev/mapper/vg_clusterserver-lv_home mountpoint=/home fstype=ext4

    Error:
    Validation Failure, unable to modify configuration file (use -i to ignore this error).

    Please give the solution?

  2. Anish says:

    Request to post something on Pacemaker cluster also this was very nice :)

  3. Liam Blom says:

    What happens when the Cluster Server dies? Isn’t that like a single point of failure?

  4. Nishith Niranjan Vyas says:

    Hello,

    I’ve completed all 3 parts successfully on CentOS 6.3 32 bit OS, but can’t justify 4th Part. I am configuring apache in failover mode. Below is the error I am having since more than 2 hours.

    # ccs -h 192.168.45.105 --addservice webservice1 domain=linuxboxfod recovery=relocate autostart=1

    Validation Failure, unable to modify configuration file (use -i to ignore this error).

  5. Rajnish Rana says:

    Hi Thilina,
    can you share your /etc/hosts file of your management node?

    When i run the command clustat it shows only one node active.
    My /etc/hosts is:
    [root@master cluster]# cat /etc/hosts
    127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
    ::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
    10.91.18.143 node1.uic.com node1.uic.com
    10.91.18.144 node2.uic.com node1.uic.com
    10.91.18.145 master.uic.com node1.uic.com

    If i dont add node1.uic.com as alias for 144 & 145 then cman service doesnt start.

    145 is my master node. Can you help me in this?

  6. DGi says:

    Very interesting series indeed, However there is a single point of failure: the cluster server.

    How do you suggest to come over?

  7. sandesh hegde says:

    During the add resource command I’m getting error like Validate failed. But I checked each and every syntax all are fine. Please give me a suggestion how to resolve the error used (ccs -h 192.168.1.9 –addresource fs name=my_fs device=/dev/sdb1 mountpoint=/cluster fstype=ext4)

  8. Raman says:

    Hello,

    First of all, great article.

    I am having trouble in one step .. as soon as run “ccs -h manager.example.com –sync –activate”, I get the error “Cluster.conf file specified is not a valid cluster.conf file (use -i to ignore this error)”.

    Any suggestion?

    • Raman says:

      I tried everything again but this time all the things worked fine except for “clustat” command .. I got “Could not connect to CMAN: No such file or directory” .. Do I need to start cman on my cluster server ?

      • CMAN should be online as a mandatory fact.

        • Rakesh Negi says:

          Getting this error while starting cman at master:

          service cman start
          Starting cluster:
          Checking if cluster has been disabled at boot… [ OK ]
          Checking Network Manager… [ OK ]
          Global setup… [ OK ]
          Loading kernel modules… [ OK ]
          Mounting configfs… [ OK ]
          Starting cman… Cannot find node name in cluster.conf
          Unable to get the configuration
          Cannot find node name in cluster.conf
          cman_tool: corosync daemon didn’t start Check cluster logs for details
          [FAILED]
          Stopping cluster:
          Leaving fence domain… [ OK ]
          Stopping gfs_controld… [ OK ]
          Stopping dlm_controld… [ OK ]
          Stopping fenced… [ OK ]
          Stopping cman… [ OK ]
          Unloading kernel modules… [ OK ]
          Unmounting configfs… [ OK ]

          Here is the sample Cluster.conf

          Topology is Node 1 :node1.uic.com
          Node2 :node2.uic.com
          Master Server :master.uic.com.Iam running luci onmaster server and cman is running fine on node 1 and 2

  9. ranjan says:

    how to take at luci interface please update sir

  10. ramesh says:

    Thanks a lot to shared your knowledge to us . I have learnt a real experience about cluster implementation, configuration setup.

Got something to say? Join the discussion.

Your email address will not be published. Required fields are marked *

Join Over 300K+ Linux Users
  1. 257,757
  2. 11,967
  3. 39,682

Are you subscribed?