LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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, 05: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, 11:26 AM   #2
kirukan
Senior Member
 
Registered: Jun 2008
Location: Eelam
Distribution: Redhat, Solaris, Suse
Posts: 1,278

Rep: Reputation: 148Reputation: 148
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 11:28 AM.
 
Old 09-14-2009, 01: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, 01: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, 03: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, 05: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, 12:22 AM   #7
kirukan
Senior Member
 
Registered: Jun 2008
Location: Eelam
Distribution: Redhat, Solaris, Suse
Posts: 1,278

Rep: Reputation: 148Reputation: 148
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 12:25 AM.
 
Old 09-17-2009, 01: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 01:59 AM.
 
Old 09-17-2009, 01:50 AM   #9
kirukan
Senior Member
 
Registered: Jun 2008
Location: Eelam
Distribution: Redhat, Solaris, Suse
Posts: 1,278

Rep: Reputation: 148Reputation: 148
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, 03: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 Thumbnails
Click image for larger version

Name:	cluster err.JPG
Views:	103
Size:	156.8 KB
ID:	1523  

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

Rep: Reputation: 148Reputation: 148
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 Thumbnails
Click image for larger version

Name:	cluster_manager1.PNG
Views:	117
Size:	43.8 KB
ID:	1527   Click image for larger version

Name:	cluster_manager2.PNG
Views:	69
Size:	29.7 KB
ID:	1528  

Last edited by kirukan; 09-17-2009 at 07:28 AM.
 
Old 09-17-2009, 10: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 10:38 AM.
 
Old 09-18-2009, 01:14 AM   #13
kirukan
Senior Member
 
Registered: Jun 2008
Location: Eelam
Distribution: Redhat, Solaris, Suse
Posts: 1,278

Rep: Reputation: 148Reputation: 148
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-20-2009, 11:22 PM   #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, 09: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



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:29 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