<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<STYLE>
BLOCKQUOTE {
MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px; MARGIN-LEFT: 2em
}
OL {
MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px
}
UL {
MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px
}
P {
MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px
}
BODY {
FONT-SIZE: 10.5pt; COLOR: #000000; LINE-HEIGHT: 1.5; FONT-FAMILY: ËÎÌå
}
</STYLE>
<META content="MSHTML 6.00.2900.6148" name=GENERATOR></HEAD>
<BODY style="MARGIN: 10px">
<DIV><SPAN class=Apple-style-span
style="WORD-SPACING: 0px; FONT: 12px Verdana, Arial, Helvetica, sans-serif; TEXT-TRANSFORM: none; COLOR: rgb(70,70,70); TEXT-INDENT: 0px; WHITE-SPACE: normal; LETTER-SPACING: normal; BACKGROUND-COLOR: rgb(250,250,250); orphans: 2; widows: 2; webkit-text-decorations-in-effect: none; webkit-text-size-adjust: auto; webkit-text-stroke-width: 0px">Hi£¬
All:<BR><BR>I have two physical machines as KVM hosts (clusterA.RHCS and
clusterB.RHCS) , an iscsi target set into GFS.<SPAN
class=Apple-converted-space> </SPAN><BR>All I want is a HA Cluster which
could migrate all the virtual machines on a node to another when the first node
failed into some error status.<BR><BR>So I created a cluster "cluster" using
RHCS ,added the two hosts into the cluster . created a fence device .<BR>for
every virtual machine on clusterA , create a service ,added a resouce which type
is "virtual machine" , and set it's properties.<BR><BR>But when I start the
service ,I got these errors in /var/log/message :<BR><BR>[<A
style="FONT-WEIGHT: bold; COLOR: rgb(153,0,153); BACKGROUND-COLOR: transparent; TEXT-DECORATION: none"
href="mailto:root@clusterA">root@clusterA</A><SPAN
class=Apple-converted-space> </SPAN>~]# tail -f /var/log/messages<BR>Nov 24
16:19:29 clusterA libvirtd: Could not find keytab file: /etc/libvirt/krb5.tab:
Permission denied<BR>Nov 24 16:19:30 clusterA modclusterd: startup
succeeded<BR>Nov 24 16:19:48 clusterA rgmanager[6754]: Executing
/etc/init.d/httpd status<BR>Nov 24 16:19:56 clusterA modcluster: Starting
service: wuguang-xp on node<SPAN
class=Apple-converted-space> </SPAN><BR>Nov 24 16:19:56 clusterA
rgmanager[2198]: Stopping service vm:wuguang-xp<BR>Nov 24 16:19:56 clusterA
rgmanager[6850]: Using /etc/libvirt/qemu/wuguang-xp.xml instead of searching
/etc/libvirt/qemu<BR>Nov 24 16:19:56 clusterA rgmanager[6906]: xend/libvirtd is
dead; cannot stop wuguang-xp<BR>Nov 24 16:19:56 clusterA rgmanager[2198]: stop
on vm "wuguang-xp" returned 1 (generic error)<BR>Nov 24 16:19:56 clusterA
rgmanager[2198]: Marking vm:wuguang-xp as 'disabled', but some resources may
still be allocated!<BR>Nov 24 16:19:56 clusterA rgmanager[2198]: Service
vm:wuguang-xp is disabled<BR><BR><BR>But I set the libvirt tcp authority to
"none" , here is my libvirtd.conf:<BR><BR><BR>listen_tls =
0<BR><BR><BR>listen_tcp = 1<BR><BR><BR>tcp_port = "16509"<BR></SPAN></DIV>
<DIV><SPAN class=Apple-style-span
style="WORD-SPACING: 0px; FONT: 12px Verdana, Arial, Helvetica, sans-serif; TEXT-TRANSFORM: none; COLOR: rgb(70,70,70); TEXT-INDENT: 0px; WHITE-SPACE: normal; LETTER-SPACING: normal; BACKGROUND-COLOR: rgb(250,250,250); orphans: 2; widows: 2; webkit-text-decorations-in-effect: none; webkit-text-size-adjust: auto; webkit-text-stroke-width: 0px"></SPAN> </DIV>
<DIV><SPAN class=Apple-style-span
style="WORD-SPACING: 0px; FONT: 12px Verdana, Arial, Helvetica, sans-serif; TEXT-TRANSFORM: none; COLOR: rgb(70,70,70); TEXT-INDENT: 0px; WHITE-SPACE: normal; LETTER-SPACING: normal; BACKGROUND-COLOR: rgb(250,250,250); orphans: 2; widows: 2; webkit-text-decorations-in-effect: none; webkit-text-size-adjust: auto; webkit-text-stroke-width: 0px">auth_tcp
= "none"</DIV>
<DIV><BR><BR><BR>my cluster.conf is :<BR><BR><?xml
version="1.0"?><BR><cluster config_version="83"
name="cluster"><BR><fence_daemon clean_start="0" post_fail_delay="0"
post_join_delay="3"/><BR><clusternodes><BR><clusternode
name="clusterA.RHCS" nodeid="1" votes="1"><BR><fence><BR><method
name="fence1"><BR><device
name="fence1"/><BR></method><BR></fence><BR></clusternode><BR><clusternode
name="clusterB.RHCS" nodeid="2" votes="1"><BR><fence><BR><method
name="fence2"><BR><device
name="fence2"/><BR></method><BR></fence><BR></clusternode><BR></clusternodes><BR><cman
expected_votes="1" two_node="1"/><BR><fencedevices><BR><fencedevice
agent="fence_scsi" name="fence1"
nodename="clusterA.RHCS"/><BR><fencedevice agent="fence_scsi"
name="fence2"
nodename="clusterB.RHCS"/><BR></fencedevices><BR><rm><BR><failoverdomains><BR><failoverdomain
name="FD" nofailback="0" ordered="1"
restricted="1"><BR><failoverdomainnode name="clusterA.RHCS"
priority="1"/><BR><failoverdomainnode name="clusterB.RHCS"
priority="2"/><BR></failoverdomain><BR></failoverdomains><BR><resources><BR><ip
address="192.168.6.250/24" monitor_link="on" sleeptime="10"/><BR><script
file="/etc/init.d/httpd" name="www_script"/><BR><clusterfs
device="/dev/dm-0" force_unmount="on" fsid="56449" fstype="gfs2"
mountpoint="/var/lib/libvirt/images/iscsi" name="gfs2"
self_fence="on"/><BR></resources><BR><service autostart="1"
domain="FD" exclusive="0" name="www_service" recovery="relocate"><BR><ip
ref="192.168.6.250/24"/><BR><script ref="www_script"/><BR><clusterfs
ref="gfs2"/><BR></service><BR><vm autostart="1" domain="FD"
exclusive="0" migrate="live" name="wuguang-xp" path="/etc/libvirt/qemu"
recovery="relocate"
xmlfile="/etc/libvirt/qemu/wuguang-xp.xml"/><BR></rm><BR></cluster><BR><BR>What's
wrong with my configuration of RHCS or libvirt?<BR>Thanks in advance</DIV>
<DIV> </DIV>
<DIV>wade</SPAN></DIV>
<DIV> </DIV>
<HR style="WIDTH: 210px; HEIGHT: 1px" align=left color=#b5c4df SIZE=1>
<DIV><SPAN>xuteng<SPAN
style="FONT-SIZE: 10.5pt; COLOR: #969696; FONT-STYLE: italic; FONT-FAMILY: Microsoft Sans Serif">
via foxmail</SPAN></SPAN></DIV></BODY></HTML>