[Linux-cluster] RHCS / DRBD / MYSQL
Arjuna Christensen
arjuna.christensen at maxnet.co.nz
Fri Mar 28 04:24:16 UTC 2008
Sorry to bump my own post again (again), but I've loaded my config up in system-config-cluster and rebuilt it to the best of my knowledge, and am still experiencing the same issue (my childest scripts aren't being launched).
See rg_tool:
Running in test mode.
Loaded 17 resource rules
=== Resources List ===
Resource type: fs
Instances: 1/1
Agent: fs.sh
Attributes:
name = mysqlfs [ primary ]
mountpoint = /var/lib/mysql [ unique required ]
device = /dev/drbd0 [ unique required ]
fstype = ext3
force_unmount = 0
self_fence = 1
nfslock [ inherit("nfslock") ]
fsid = 11607
force_fsck = 0
options =
Resource type: ip
Instances: 1/1
Agent: ip.sh
Attributes:
address = 192.168.111.1 [ primary unique ]
monitor_link = 1
nfslock [ inherit("service%nfslock") ]
Resource type: script
Agent: script.sh
Attributes:
name = drbdcontrol [ primary unique ]
file = /etc/init.d/drbdcontrol [ unique required ]
service_name [ inherit("service%name") ]
Resource type: script
Agent: script.sh
Attributes:
name = asterisk [ primary unique ]
file = /etc/init.d/asterisk [ unique required ]
service_name [ inherit("service%name") ]
Resource type: script
Agent: script.sh
Attributes:
name = mysql [ primary unique ]
file = /etc/init.d/mysql [ unique required ]
service_name [ inherit("service%name") ]
Resource type: service [INLINE]
Instances: 1/1
Agent: service.sh
Attributes:
name = asteriskcluster [ primary unique required ]
domain = asterisk
autostart = 1
=== Resource Tree ===
service {
name = "asteriskcluster";
domain = "asterisk";
autostart = "1";
ip {
address = "192.168.111.1";
monitor_link = "1";
script {
name = "drbdcontrol";
file = "/etc/init.d/drbdcontrol";
fs {
name = "mysqlfs";
mountpoint = "/var/lib/mysql";
device = "/dev/drbd0";
fstype = "ext3";
force_unmount = "0";
self_fence = "1";
fsid = "11607";
force_fsck = "0";
options = "";
script {
name = "asterisk";
file = "/etc/init.d/asterisk";
}
script {
name = "mysql";
file = "/etc/init.d/mysql";
}
}
}
}
}
=== Failover Domains ===
Failover domain: asterisk
Flags: Restricted
Node asterisktest01 priority 1 nodeid 1
Node asterisktest02 priority 1 nodeid 2
+++ Memory table dump +++
0xb749be48 (16 bytes) allocation trace:
0x804bc04
0xb748b3a8 (24 bytes) allocation trace:
0x804bc04
--- End Memory table dump ---
And my revised cluster.conf:
<?xml version="1.0"?>
<cluster alias="asterisk" config_version="37" name="asterisk">
<fence_daemon clean_start="0" post_fail_delay="0" post_join_delay="5"/>
<cman expected_votes="1" two_node="1"/>
<clusternodes>
<clusternode name="asterisktest01" nodeid="1" votes="1">
<fence>
<method name="single">
<device ipaddr="10.0.0.1" name="asterisktest01"/>
</method>
</fence>
</clusternode>
<clusternode name="asterisktest02" nodeid="2" votes="1">
<fence>
<method name="single">
<device ipaddr="10.0.0.2" name="asterisktest02"/>
</method>
</fence>
</clusternode>
</clusternodes>
<fencedevices>
<fencedevice agent="fence_vi3" ipaddr="vc01.maxnet.net.nz" login="fence_vmware" name="asterisktest01" passwd="fence123" vmname="asterisktest01"/>
<fencedevice agent="fence_vi3" ipaddr="vc01.maxnet.net.nz" login="fence_vmware" name="asterisktest02" passwd="fence123" vmname="asterisktest02"/>
</fencedevices>
<rm>
<failoverdomains>
<failoverdomain name="asterisk" ordered="0" restricted="1">
<failoverdomainnode name="asterisktest01" priority="1"/>
<failoverdomainnode name="asterisktest02" priority="1"/>
</failoverdomain>
</failoverdomains>
<resources>
<ip address="192.168.111.1" monitor_link="1"/>
<script file="/etc/init.d/drbdcontrol" name="drbdcontrol"/>
<script file="/etc/init.d/asterisk" name="asterisk"/>
<script file="/etc/init.d/mysql" name="mysql"/>
<fs device="/dev/drbd0" force_fsck="0" force_unmount="0" fsid="11607" fstype="ext3" mountpoint="/var/lib/mysql" name="mysqlfs" options="" self_fence="1"/>
</resources>
<service autostart="1" domain="asterisk" name="asteriskcluster">
<ip ref="192.168.111.1">
<script ref="drbdcontrol">
<fs ref="mysqlfs">
<script ref="asterisk"/>
<script ref="mysql"/>
</fs>
</script>
</ip>
</service>
</rm>
</cluster>
As before, I'm keen for any enlightenment :(
Regards,
Arjuna Christensen | Systems Engineer
Maximum Internet Ltd
DDI: + 64 9 913 9683 | Ph: +64 9 915 1825 | Fax:: +64 9 300 7227
arjuna.christensen at maxnet.co.nz| www.maxnet.co.nz
-----Original Message-----
From: linux-cluster-bounces at redhat.com [mailto:linux-cluster-bounces at redhat.com] On Behalf Of Arjuna Christensen
Sent: Friday, 28 March 2008 2:02 p.m.
To: linux-cluster at redhat.com
Subject: RE: [Linux-cluster] RHCS / DRBD / MYSQL
Of note, testing with rg_tool yields the correct sequence (or so I'd expect), yet, I don't see the mysql/asterisk scripts called at all...
root at asterisktest01:/etc/cluster# rg_test noop cluster.conf start service asterisk
Running in test mode.
Starting asterisk...
[start] service:asterisk
[start] ip:192.168.111.1
[start] script:drbdcontrol
[start] fs:mysql_disk
[start] script:mysql
[start] script:asterisk
Start of asterisk complete
+++ Memory table dump +++
0xb74d6d10 (32 bytes) allocation trace:
0x804bc04
--- End Memory table dump ---
root at asterisktest01:/etc/cluster# rg_test noop cluster.conf stop service asterisk
Running in test mode.
Stopping asterisk...
[stop] script:asterisk
[stop] script:mysql
[stop] fs:mysql_disk
[stop] script:drbdcontrol
[stop] ip:192.168.111.1
[stop] service:asterisk
Stop of asterisk complete
+++ Memory table dump +++
0xb74c5d10 (32 bytes) allocation trace:
0x804bc04
--- End Memory table dump ---
Arjuna Christensen | Systems Engineer
Maximum Internet Ltd
7a Parkhead Pl, Albany, North Shore, 0632 | PO Box 8006, Auckland, 1150, NZ
DDI: + 64 9 913 9683 | Ph: +64 9 915 1825 | Fax:: +64 9 300 7227
arjuna.christensen at maxnet.co.nz| www.maxnet.co.nz
________________________________
Maxnet | mission critical internet
________________________________
This email (including any attachments) is confidential and intended only for the person to whom it is addressed.
If you have received this email in error, please notify the sender immediately and erase all copies of this message
and attachments. The views expressed in this email do not necessarily reflect those held by Maxnet.
-----Original Message-----
From: linux-cluster-bounces at redhat.com [mailto:linux-cluster-bounces at redhat.com] On Behalf Of Arjuna Christensen
Sent: Friday, 28 March 2008 1:54 p.m.
To: linux-cluster at redhat.com
Subject: [Linux-cluster] RHCS / DRBD / MYSQL
Hiyas,
I'm having some slight issues getting RHCS to work with drbd/asterisk/mysql. Basically I've got a service configured which (as far as I know) should bring up an IP address, set itself to the DRBD primary, mount the MySQL DRBD partition and then proceed to start up mysql/asterisk.
I can see it bringing the IP up, setting itself as the DRBD primary and even mounting the partition, yet it fails to bring up asterisk/mysql. Could anyone take a look at my clusterconf - see below.
<?xml version="1.0"?>
<cluster name="asterisk" config_version="23">
<fence_daemon clean_start="0" post_fail_delay="0" post_join_delay="5"/>
<cman two_node="1" expected_votes="1"/>
<clusternodes>
<clusternode name="asterisktest01" votes="1" nodeid="1">
<fence>
<method name="single">
<device name="asterisktest01" ipaddr="10.0.0.1"/>
</method>
</fence>
</clusternode>
<clusternode name="asterisktest02" votes="1" nodeid="2">
<fence>
<method name="single">
<device name="asterisktest02" ipaddr="10.0.0.2"/>
</method>
</fence>
</clusternode>
</clusternodes>
<fencedevices>
<fencedevice agent="fence_vi3" name="asterisktest01" ipaddr="vc01.maxnet.net.nz" login="fence_vmware" passwd="fence123" vmname="asterisktest01"/>
<fencedevice agent="fence_vi3" name="asterisktest02" ipaddr="vc01.maxnet.net.nz" login="fence_vmware" passwd="fence123" vmname="asterisktest02"/>
</fencedevices>
<rm>
<failoverdomains>
<failoverdomain name="asterisk" ordered="0" restricted="1">
<failoverdomainnode name="asterisktest01" priority="1"/>
<failoverdomainnode name="asterisktest02" priority="1"/>
</failoverdomain>
</failoverdomains>
<service name="asterisk" autostart="1" domain="asterisk">
<ip address="192.168.111.1" monitor_link="1">
<script name="drbdcontrol" file="/etc/init.d/drbdcontrol">
<fs name="mysql_disk" device="/dev/drbd0" mountpoint="/var/lib/mysql">
<script name="mysql" file="/etc/init.d/mysql"/>
<script name="asterisk" file="/etc/init.d/asterisk"/>
</fs>
</script>
</ip>
</service>
</rm>
</cluster>
Any enlightenment would be much appreciated :)
Regards,
Arjuna Christensen | Systems Engineer
Maximum Internet Ltd
7a Parkhead Pl, Albany, North Shore, 0632 | PO Box 8006, Auckland, 1150, NZ
DDI: + 64 9 913 9683 | Ph: +64 9 915 1825 | Fax:: +64 9 300 7227
arjuna.christensen at maxnet.co.nz| www.maxnet.co.nz
________________________________
Maxnet | mission critical internet
________________________________
This email (including any attachments) is confidential and intended only for the person to whom it is addressed.
If you have received this email in error, please notify the sender immediately and erase all copies of this message
and attachments. The views expressed in this email do not necessarily reflect those held by Maxnet.
--
Linux-cluster mailing list
Linux-cluster at redhat.com
https://www.redhat.com/mailman/listinfo/linux-cluster
--
Linux-cluster mailing list
Linux-cluster at redhat.com
https://www.redhat.com/mailman/listinfo/linux-cluster
More information about the Linux-cluster
mailing list