LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise
User Name
Password
Linux - Enterprise This forum is for all items relating to using Linux in the Enterprise.

Notices


Reply
  Search this Thread
Old 01-03-2008, 12:29 PM   #1
mjanota
LQ Newbie
 
Registered: Jan 2008
Posts: 3

Rep: Reputation: 0
rhel5 - lucci - cluster - problem


Hi everybody,

I am working on a Linux cluster. I am a beginner and can't jump over one thing.

I am using rh5 with ricci and lucci. Have two nodes and I try to configure a cluster. I have the following error trying to create a cluster on a node:

******
Unable to add the key for node 172.21.35.101 to the trusted key list.
Unable to connect to 172.21.35.101: Error setting up SSL connection to 172.21.35.101
******

The other server's IP is 172.21.35.100. I have two network cards in each one. they are joined with cross-over and thru the network.

If anybody could help I would appreciate it much.
Thanks
Mirek
 
Old 01-03-2008, 02:02 PM   #2
brianmcgee
Member
 
Registered: Jun 2007
Location: Munich, Germany
Distribution: RHEL, CentOS, Fedora, SLES (...)
Posts: 399

Rep: Reputation: 40
You need to configure SSL on your webserver to configure the cluser with lucci. However I would recommend to edit /etc/cluster/cluster.conf manually (system-config-cluster may be used to get a sample clustger.conf). You will certainly learn a lot more and it is easier to get help on the net as you are able to describe your configuration steps with more detail.
 
Old 01-03-2008, 03:04 PM   #3
mjanota
LQ Newbie
 
Registered: Jan 2008
Posts: 3

Original Poster
Rep: Reputation: 0
Thank you for your reply !

I was using system-config-cluster before, but problem was similar it said "the other" node is not a part of the cluster or something similar.
I would appreciate a step by step advice or simple files or whatever please.

thank you
Mirek

Quote:
Originally Posted by brianmcgee View Post
You need to configure SSL on your webserver to configure the cluser with lucci. However I would recommend to edit /etc/cluster/cluster.conf manually (system-config-cluster may be used to get a sample clustger.conf). You will certainly learn a lot more and it is easier to get help on the net as you are able to describe your configuration steps with more detail.
 
Old 01-03-2008, 06:34 PM   #4
brianmcgee
Member
 
Registered: Jun 2007
Location: Munich, Germany
Distribution: RHEL, CentOS, Fedora, SLES (...)
Posts: 399

Rep: Reputation: 40
Each node needs an entry in /etc/hosts. The hostname must be identical to the nodename in /etc/cluster.conf.
Code:
172.16.40.50  node01
172.16.40.51  node02
You need to create the /etc/yum.repos.d/csgfs.repo file:
Code:
[csgfs]
name=CentOS-5 - CSGFS
baseurl=http://mirror.centos.org/centos/$releasever/csgfs/$basearch/
gpgcheck=1
enabled=1
The following packages need to be installed on all nodes:
Code:
# yum install cman gfs-utils kmod-gfs lvm2-cluster
lvm2 clustering needs to be enabled
Code:
lvmconf --enable-cluster
For a beginning, the following /etc/cluster.conf may be used:
Code:
<?xml version="1.0"?>
<cluster config_version="1" name="atixcluster">
        <cman expected_votes="1" two_node="1"/>
        <fence_daemon clean_start="1" post_fail_delay="0" post_join_delay="3"/>
        <clusternodes>
                <clusternode name="node01" votes="1" nodeid="1">
                        <fence>
                                 <method name="1">
                                 </method>
                        </fence>
                </clusternode>
        <clusternode name="node02" votes="1" nodeid="2">
                        <fence>
                                 <method name="1">
                                 </method>
                        </fence>
                </clusternode>
        </clusternodes>
   <cman/>
   <fencedevices/>
   <rm>
           <failoverdomains/>
           <resources/>
   </rm>
</cluster>
Please note that you must configure a valid fencing method for productive use. The default method "Fence manual" is only suitable for first tests.

Also be aware that this is a special two node configuration.

It is better to include a third node or a quorum device to get another vote and to further avoid any split brain issues.

Now you may start your cluster:
Code:
# /etc/init.d/ccsd start
# /etc/init.d/cman start
# /etc/init.d/fenced start
Now you may create your first GFS volume:
Code:
# pvcreate /dev/sdx
# vgcreate vg_gfs /dev/sdx
# lvcreate lvcreate -l $(vgdisplay vg_gfs | grep "Total PE" | cut -d " " -f18-) -n lv_gfs vg_gfs
# gfs_mkfs -j 3 -t atixcluster:lv_gfs -p lock_dlm /dev/vg_gfs/lv_gfs
Have fun...

Last edited by brianmcgee; 01-03-2008 at 06:37 PM.
 
Old 01-03-2008, 06:35 PM   #5
brianmcgee
Member
 
Registered: Jun 2007
Location: Munich, Germany
Distribution: RHEL, CentOS, Fedora, SLES (...)
Posts: 399

Rep: Reputation: 40
Doublepost

Last edited by brianmcgee; 01-05-2008 at 01:50 AM. Reason: Doublepost
 
Old 01-04-2008, 07:10 AM   #6
mjanota
LQ Newbie
 
Registered: Jan 2008
Posts: 3

Original Poster
Rep: Reputation: 0
Thanks Brian,

I'll work on that ASAP and let you know how it looks like. Just one question: I am using RedHat5 and you suggest to enter CentOS line in /etc/yum.repos.d/csgfs.repo file, ist that correct ?

Mirek
 
Old 01-05-2008, 01:52 AM   #7
brianmcgee
Member
 
Registered: Jun 2007
Location: Munich, Germany
Distribution: RHEL, CentOS, Fedora, SLES (...)
Posts: 399

Rep: Reputation: 40
If you use RHEL 5 you need an active subscription to Red Hat Network with the additional GFS and Cluster Suite channels registered for your machine.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
rhel5 desktop problem solanki.chandrakant Linux - Desktop 1 12-29-2007 06:51 AM
anaconda-ks.cfg problem on RHEL5 matrol Red Hat 0 12-09-2007 03:02 AM
Problem Samba in RHEL5 soumalya Linux - Networking 3 11-02-2007 01:07 AM
Weird Network Problem on RHEL5 yusiang Linux - Networking 1 08-09-2007 01:49 AM
RHEL5 - Xen - Guest Install Problem TAB4336 Linux - Enterprise 4 05-15-2007 02:31 AM

LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise

All times are GMT -5. The time now is 10:11 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration