星期六, 2月 09, 2013

[Oracle Solaris Cluster ] Resource Creation for Customized applications

Oracle solaris cluster resource creation

Ref:
https://forums.oracle.com/forums/thread.jspa?messageID=9920290
http://shumon.amitumioshay.com/index.php?option=com_content&view=article&id=158:installing-and-configuring-sun-cluster-32-x86-on-vmware-server&catid=7:tutorial&Itemid=149
------------------------------------------------------------------------------------------------------------\

1. On all nodes (or do it on one node and copy the file to other nodes in the same location), create a daemon that represents your customized application:

# vi /var/tmp/myappdaemon
#!/bin/ksh
while :
do
sleep 10
done

2. Make sure the file is executable on all nodes.

3. From any one node, create a new failover resource group for your application:

# clrg create -n node1,node2,[node3] myapp-rg

4. From one node, register the Generic Data Service resource type:

# clrt register SUNW.gds

5. From one node, create the new resource and enable the group:

# clrs create -g myapp-rg -t SUNW.gds \
-p Start_Command=/var/tmp/myappdaemon_start \
-p Probe_Command=/bin/true -p Network_aware=false \
-p stop_command=/var/tmp/myappdaemon_stop \
myapp-res

# clrg online -M myapp-rg

6. Verify the behavior of your customized application.

a. Verify that you can manually switch the group from node to node.

b. Kill the daemon. Wait a little while and note that it restarts on the same node. Wait until clrs status shows that the resource is fully online again.

c. Repeat step b a few times. Eventually, the group switches over to the other node.

沒有留言:

LinkWithin-相關文件

Related Posts Plugin for WordPress, Blogger...