LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices



Reply
 
Search this Thread
Old 09-13-2009, 06:21 AM   #1
yashgoley
Member
 
Registered: Apr 2009
Posts: 40

Rep: Reputation: 15
Question clustering on centOS using Vmware


Hi All,
i am new to clustering, i want to practice clustering on centos.
i m using vmware workstation v6.
i have installed three centOS VM 500mb ram each.

i am following all docs from centos site but geeting more confuse as those are advance one.

so please tell me.
>can clustering can be done on vmware?
>what should be the fencing device?
>while using conga it's asking for fully qualified domain name, does it required?
>can i direct start to make a cluster or do i need to learn to make gfs,clvm before?
>how a single hardware drive can be share by all VMs.

if anyone has proper steps to configure cluster on VM please share with me.
 
Old 09-13-2009, 12:26 PM   #2
kirukan
Senior Member
 
Registered: Jun 2008
Location: Eelam
Distribution: Redhat, Solaris, Suse
Posts: 1,240

Rep: Reputation: 132Reputation: 132
There are 4 types of clustering setup in Linux
Storage - with GFS
High Availability - single point of failure
Load balance - load balance through LVS
High performance - allow application work parallel

1.Yess. you can setup such testing environment using Vmeare.
2.At virtual environment you dont need fencing device just define it as manual devices.
3.Not necessary you can access through localhost.
4.Yess directly you can configure high availability cluster environment, gfs is a file system even you can have some other file systems if you need.
5.what hardware drive that you want to share?

#system-config-cluster
first you configure one node and safe the same configuration to all other nodes


refer this manual for further idea(centos and redhat manuals are same)
https://www.redhat.com/docs/manuals/...owse/rh-cs-en/

Last edited by kirukan; 09-13-2009 at 12:28 PM.
 
Old 09-14-2009, 02:15 AM   #3
yashgoley
Member
 
Registered: Apr 2009
Posts: 40

Original Poster
Rep: Reputation: 15
Hi kirukan ,
thanks for your clear reply.

while creating cluster using conga, after entering the node name( i give ip ) and password when i submit, it gives an error.

"unable to create cluster luci database object".

so what can be the issue.

i told abt shared harddisk.
 
Old 09-14-2009, 02:30 AM   #4
vishesh
Member
 
Registered: Feb 2008
Distribution: Fedora,RHEL,Ubuntu
Posts: 661

Rep: Reputation: 66
Recently i done clustering using vmware server 2.1 . steps to configure can be found on by signature link. I done storage clustering using ocfs2.

thnks
 
Old 09-15-2009, 04:55 AM   #5
yashgoley
Member
 
Registered: Apr 2009
Posts: 40

Original Poster
Rep: Reputation: 15
As i am usign vmware workstation v6 .
so can anyone tell me how to share a harddisk among all VMs .
and how to access that.
 
Old 09-15-2009, 06:47 AM   #6
vishesh
Member
 
Registered: Feb 2008
Distribution: Fedora,RHEL,Ubuntu
Posts: 661

Rep: Reputation: 66
To share hard disk in all vm, you must edit .vmx file by adding following lines

disk.locking = false
scsi1.sharedbus = virtual

also ensure shared disk have diffrent bus allocation that hard disk on whick you install os

thnks
 
Old 09-17-2009, 01:22 AM   #7
kirukan
Senior Member
 
Registered: Jun 2008
Location: Eelam
Distribution: Redhat, Solaris, Suse
Posts: 1,240

Rep: Reputation: 132Reputation: 132
setup a common storage area by using iscsi (just like a SAN) and mount that common storage to all of your cluster environment where you need common storage.

Last edited by kirukan; 09-17-2009 at 01:25 AM.
 
Old 09-17-2009, 02:36 AM   #8
yashgoley
Member
 
Registered: Apr 2009
Posts: 40

Original Poster
Rep: Reputation: 15
Question

can you please tell me the procedure to setup a common storage area by using iscsi on vmware.
as i am trying clustering on vmware test environment.

now i configured ethernet bonding on all my three VM's.
i configure bond0 on eth0 & eth1. same for all machines following procedure in guide "https://www.redhat.com/docs/manuals/...owse/rh-cs-en/"
in starting everything was fine ,all VMs were pinging properly.
but after rebooting, i donno wt happen all three are not pinging.

so please tell me wt can be the issue with bonding.

Last edited by yashgoley; 09-17-2009 at 02:59 AM.
 
Old 09-17-2009, 02:50 AM   #9
kirukan
Senior Member
 
Registered: Jun 2008
Location: Eelam
Distribution: Redhat, Solaris, Suse
Posts: 1,240

Rep: Reputation: 132Reputation: 132
setup a VM with iscsitarget for server side(this is like a SAN server) and install iscsi-initiator-utils to client side where you like to mount common storage. for further idea

http://sys-admin.wikidot.com/install-iscsi-target

the following url for virtualbox but you can get some idea
http://www.rbti.com.br/Home/creating...ge-using-iscsi
 
Old 09-17-2009, 04:18 AM   #10
yashgoley
Member
 
Registered: Apr 2009
Posts: 40

Original Poster
Rep: Reputation: 15
Question

Thanks kirukan

Please also look pinging issue in my last post.

it's giving Host destination not reachable.

also i have configured cluster but while starting cluster m/m tool
system-config-cluster it gives an error "an err was encountered while reading conf file click ok to create new conf. click ok to continue anyway"
Attached Images
File Type: jpg cluster err.JPG (156.8 KB, 22 views)

Last edited by yashgoley; 09-17-2009 at 05:30 AM.
 
Old 09-17-2009, 08:09 AM   #11
kirukan
Senior Member
 
Registered: Jun 2008
Location: Eelam
Distribution: Redhat, Solaris, Suse
Posts: 1,240

Rep: Reputation: 132Reputation: 132
Hmm your output not much clear however have u start cman service without any issues if yes output may be like this....
Quote:
#/etc/init.d/cman start
Starting cluster:
Loading modules... done
Mounting configfs... done
Starting ccsd... done
Starting cman... done
Starting daemons... done
Starting fencing... done
herewith i am attaching 2 images from there i hope you can get some right idea.
if your cluster started sucessfully then only 2nd tab "cluster managements" will appear at system-config-cluster(cluster configuration window) and all of your cluster nodes added on the cluster environment.
Attached Images
File Type: png cluster_manager1.PNG (43.8 KB, 28 views)
File Type: png cluster_manager2.PNG (29.7 KB, 22 views)

Last edited by kirukan; 09-17-2009 at 08:28 AM.
 
Old 09-17-2009, 11:35 AM   #12
yashgoley
Member
 
Registered: Apr 2009
Posts: 40

Original Poster
Rep: Reputation: 15
Question

thanks ,

ya m getting the same output , you provided in snapshots.
also getting the cluster manager window and everything alright.

upto now it's simple.

now can you provide some steps to test clustering.

as i have added httpd service and a "ext3 filesystem resource"

so next wt to do.

Last edited by yashgoley; 09-17-2009 at 11:38 AM.
 
Old 09-18-2009, 02:14 AM   #13
kirukan
Senior Member
 
Registered: Jun 2008
Location: Eelam
Distribution: Redhat, Solaris, Suse
Posts: 1,240

Rep: Reputation: 132Reputation: 132
Then its simple just stop and start the service and check whether the httpd service handle by both cluster node (if one down other will have to take the job)
 
Old 09-21-2009, 12:22 AM   #14
yashgoley
Member
 
Registered: Apr 2009
Posts: 40

Original Poster
Rep: Reputation: 15
Smile

Hi Kirukan,
now it's working fine, but i need to explore this clustring more.

Thanks a lot for your clear and valuable suggestions.
 
Old 06-17-2010, 10:31 AM   #15
hussain_dilshad
LQ Newbie
 
Registered: Jun 2010
Posts: 1

Rep: Reputation: 0
Hi yashgoley,
Its dilshad. could you please send me the step by step tutorials regarding Linux cluster on vmware workstation.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
CentOS 5.3 Server Clustering/ Storage Cluster settup xshad0wfx Linux - Server 12 05-30-2010 09:35 PM
LXer: HowTo setup GFS2 with Clustering on Red Hat or CentOS LXer Syndicated Linux News 0 08-16-2009 02:12 AM
simple linux clustering. can it be done on with vmware iinfi Linux - Server 2 01-03-2009 12:12 PM
Wrapping my head around Xen/RHCS Clustering (CentOS 5) binjured Red Hat 1 12-31-2007 10:12 AM
Clustering for VMware Server bharathvn Linux - Server 3 12-13-2006 09:33 AM


All times are GMT -5. The time now is 09:20 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration