[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[Linux-cluster] when i reboot the node1(node2) , my cluster is hung at "umounting file system"



linux-cluster,!

	    	my compuet : two DELL 1950 , HBA,  HP EVA 4400 SAN 

			RHEL 5.2,GFS,LVM 
	
			when i reboot the node1 or node2 ,the node will be hung at "umounting file system"
				and  the other node will be hung 
			
			this is my operation
--------------------------------------------------------
#node 1
pvcreate /dev/sdb
pvcreate /dev/sdc
vgcreate volGFS01 /dev/sdb	
vgcreate volGFS02 /dev/sdc	
lvcreate -L 10G  volGFS01  -n vg01
lvcreate -L 2197G  volGFS02  -n vg02
gfs_mkfs -p lock_dlm -t webcs:gfs01 -j 10 /dev/volGFS01/vg01
gfs_mkfs -p lock_dlm -t webcs:gfs02 -j 10 /dev/volGFS02/vg02

#node2

sfdisk -R  /dev/sdb
sfdisk -R  /dev/sdc
lvmdiskscan

#then run them on node1 and node2

service cman start
service clvmd start
service rgmanager start

mkdir /web
mkdir /file

mount /dev/volGFS01/vg01 /web		
mount /dev/volGFS02/vg02 /file

# then i set cman clvmd  rgmanager  to auto start  when systems start , change the /etc/lvm/lvm.conf 

locking_type=3

#this is the cluster.conf

<?xml version="1.0"?>
<cluster alias="webcs" config_version="12" name="webcs">
        <fence_daemon post_fail_delay="0" post_join_delay="3"/>
        <clusternodes>
                <clusternode name="web1" nodeid="1" votes="1">
                        <fence>
                                <method name="1">
                                        <device name="f-man" nodename="web1"/>
                                </method>
                        </fence>
                </clusternode>
                <clusternode name="web2" nodeid="2" votes="1">
                        <fence>
                                <method name="1">
                                        <device name="f-man" nodename="web2"/>
                                </method>
                        </fence>
                </clusternode>
        </clusternodes>
        <cman expected_votes="1" two_node="1"/>
        <fencedevices>
                <fencedevice agent="fence_manual" name="f-man"/>
        </fencedevices>
        <rm>
                <failoverdomains>
                        <failoverdomain name="web" ordered="0" restricted="0">
                                <failoverdomainnode name="web1" priority="1"/>
                                <failoverdomainnode name="web2" priority="1"/>
                        </failoverdomain>
                </failoverdomains>
                <resources>
                        <ip address="192.168.0.60" monitor_link="1"/>
                        <script file="/etc/init.d/httpd" name="httpd"/>
                </resources>
                <service autostart="1" domain="web" name="web">
                        <ip ref="192.168.0.60"/>
                        <script ref="httpd"/>
                </service>
        </rm>
</cluster>





--------------------------------------------------------

        致
礼!
 				

        victory.xu
        july_snow 163 com
          2008-12-27


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]