LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 01-26-2010, 09:40 AM   #1
tnats
LQ Newbie
 
Registered: Jan 2010
Posts: 1

Rep: Reputation: 0
Help with gfs/fencing/gnbd


Hey smart people, was hoping someone could help me out here. I am more of a programmer but can get around debian/centos systems.

I'm trying to put together a simple 2 node attaching to a shared gfs directory from a 3rd server.

1U 1U
| |
| |
|
4U

Ok, I've read and read and I get confused on the more I read. I installed CentOS on all 3 machines. Added "Cluster Storage" and "Clustering" on all 3. Fired up Luci and created a cluster with all 3 servers.

So far so good right?
[root@db1 ~]# cman_tool nodes
Node Sts Inc Joined Name
1 M 812 2010-01-25 16:15:15 infa2.mydomain.com
2 M 792 2010-01-25 16:02:35 db1.mydomain.com
3 M 808 2010-01-25 16:13:35 infa1.mydomain.com

Now, I have 2 problems.

1. If I perform a service cman restart, it says "Stopping fencing" and never comes back until I hit control C. (even does this on boot up) So, basically, I'm trying to figure out how I set up fencing on these 3 servers. This is just a test lab for me so I don't have APC remote rebooters/ipmi cards. I will post my cluster.conf at the end for comments in how I can set up the fencing.

2. As I understand it, once I get the cluster going, I create my pg, vg and lv:
LV Name /dev/infa/infa_lv
VG Name infa
LV Size 273.00 GB
now, I start gnbd_serv and export the filesystem:
gnbd_export -d /dev/infa/infa_lv -e infa_gfs
as that seemed to have worked.

Now, in my 2 nodes, I import them:
gnbd_import -i db1.ayont.com

Now, if I try to mount it:
mount.gfs2 /dev/gnbd/infa_gfs /storage/
and it just hangs. I see it though:

brw-r--r-- 1 root root 252, 0 Jan 25 16:36 infa_gfs

[root@infa1 gnbd]# pwd
/dev/gnbd

Am I close? Way far off...??? Thanks for any help, pulling my hair out, one at a time.

My cluster.conf file:

<?xml version="1.0"?>
<cluster alias="infa" config_version="4" name="infa">
<fence_daemon clean_start="0" post_fail_delay="0" post_join_delay="3"/>
<clusternodes>
<clusternode name="infa2.ayont.com" nodeid="1" votes="1">
<fence>
<method name="single">
<device name="gnbd" nodename="infa2.ayont.com"/>
</method>
</fence>
</clusternode>
<clusternode name="db1.ayont.com" nodeid="2" votes="1">
<fence/>
</clusternode>
<clusternode name="infa1.ayont.com" nodeid="3" votes="1">
<fence>
<method name="single">
<device name="gnbd" nodename="infa1.ayont.com"/>
</method>
</fence>
</clusternode>
</clusternodes>
<cman/>
<fencedevices><fencedevice name="gnbd" agent="fence_gnbd" servers="db1.ayont.com"/></fencedevices>
<rm>
<failoverdomains/>
<resources/>
</rm>
</cluster>
 
  


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
Clustering & Fencing in GFS Brad.Scalio@noaa.gov Linux - Software 1 07-08-2009 04:09 AM
GFS and Fencing akvino Linux - Enterprise 2 09-08-2008 04:48 PM
GFS unable (incomplete set-up) to mount automatically GNBD file system darknight1726 Red Hat 7 08-12-2008 09:57 PM
GFS ISCSI fencing ionic_slim Linux - Server 0 07-04-2008 11:16 PM
Pick: GFS or GNBD or NFS To make a single FS Roboam León López Linux - Enterprise 5 10-26-2007 01:52 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 04:32 AM.

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