proxy
Hi,
I like to configure with proxy resource a group.
root@test6:/etc/VRTSvcs/conf/config# more main.cf
include "OracleASMTypes.cf"
include "types.cf"
include "Db2udbTypes.cf"
include "OracleTypes.cf"
include "SybaseTypes.cf"
cluster clust (
ClusterAddress = "192.168.114.35"
SecureClus = 1
GuestGroups = { test5 }
)
system test6 (
)
system test89 (
)
group ClusterService (
SystemList = { test6 = 0, test89 = 1 }
AutoStartList = { test6, test89 }
OnlineRetryLimit = 3
OnlineRetryInterval = 120
)
Application wac (
StartProgram = "/opt/VRTSvcs/bin/wacstart"
StopProgram = "/opt/VRTSvcs/bin/wacstop"
MonitorProcesses = { "/opt/VRTSvcs/bin/wac" }
RestartLimit = 3
)
IP gcoip (
Device Test6 = net0
Device @test89 = net0
Address = "192.168.114.35"
NetMask = "255.255.255.0"
)
NIC gconic (
Device = net0
)
gcoip requires gconic
wac requires gcoip
// resource dependency tree
//
// group ClusterService
// {
// Application wac
// {
// IP gcoip
// {
// NIC gconic
// }
// }
// }
group nic (
SystemList = { test89 = 0, test6 = 1 }
AutoStartList = { test6, test89 }
)
MultiNICA MultiNICA1 (
Device @test89 = { nic0 = "192.168.114.100" }
Device Test6 = { nic0 = "192.168.114.101" }
)
Phantom grp1phantom (
)
// resource dependency tree
//
// group nic
// {
// MultiNICA MultiNICA1
// Phantom grp1phantom
// }
group test5 (
SystemList = { test6 = 0, test89 = 1 }
AutoStartList = { test6, test89 }
)
Application apache (
StartProgram = "/usr/apache2/2.2/bin/apachectl start"
StopProgram = "/lib/svc/method/http-apache22 stop"
CleanProgram = "/root/test5"
PidFiles = { "/system/volatile/apache2/2.2/httpd.pid" }
)
IPMultiNIC IPMulti2 (
Address = "192.1678.114.188"
MultiNICResName = MultiNICA1
)
Proxy MultiNICproxy (
TargetResName = MultiNICA1
)
IPMulti2 requires MultiNICproxy
apache requires IPMulti2
// resource dependency tree
//
// group test5
// {
// Application apache
// {
// IPMultiNIC IPMulti2
// {
// Proxy MultiNICproxy
// }
// }
// }
node 89 and node 6 are the nodes where test5 should be online.
root@test6:~# hagrp -state
#Group Attribute System Value
ClusterService State test6 |ONLINE|
ClusterService State test89 |OFFLINE|
nic State test6 |ONLINE|
nic State test89 |OFFLINE|
test5 State test6 |OFFLINE|
test5 State test89 |OFFLINE|
root@test6:~# hares -state
#Resource Attribute System Value
IPMulti2 State test6 OFFLINE|STATE UNKNOWN
IPMulti2 State test89 OFFLINE|STATE UNKNOWN
MultiNICA1 State test6 ONLINE|STATE UNKNOWN
MultiNICA1 State test89 ONLINE|STATE UNKNOWN
MultiNICproxy State test6 ONLINE|STATE UNKNOWN
MultiNICproxy State test89 ONLINE|STATE UNKNOWN
apache State test6 OFFLINE
apache State test89 OFFLINE
gcoip State test6 ONLINE
gcoip State test89 OFFLINE
gconic State test6 ONLINE
gconic State test89 ONLINE
grp1phantom State test6 ONLINE
grp1phantom State test89 OFFLINE
wac State test6 ONLINE
wac State test89 OFFLINE
hagrp -autoenable test5 -sys test89
hagrp -autoenable test5 -sys test6
root@test6:~# hagrp -online test5 -sys test6
VCS WARNING V-16-1-10159 Group test5 is auto-disabled in cluster. This can happen if group is not probed on all alive nodes in group's SystemList or VCS engine is not running on all alive nodes in group's SystemList
root@test6:~# hares -display|grep Probed
IPMulti2 ArgListValues test6 MultiNICResName:Device 2 nic0 192.168.114.101 Address 1 192.1678.114.188 NetMask 1 "" MultiNICResName:ArpDelay 1 1 Options 1 "" MultiNICResName:Probed 1 0 MultiNICResName 1 MultiNICA1 IfconfigTwice 1 0 PrefixLen 1 0
IPMulti2 ArgListValues test89 MultiNICResName:Device 2 nic0 192.168.114.100 Address 1 192.1678.114.188 NetMask 1 "" MultiNICResName:ArpDelay 1 1 Options 1 "" MultiNICResName:Probed 1 0 MultiNICResName 1 MultiNICA1 IfconfigTwice 1 0 PrefixLen 1 0
IPMulti2 Probed test6 0
IPMulti2 Probed test89 0
MultiNICA1 Probed test6 0
MultiNICA1 Probed test89 0
MultiNICproxy ArgListValues test6 TargetResName 1 MultiNICA1 TargetSysName 1 "" TargetResName:Probed 1 0 TargetResName:State 1 2
MultiNICproxy ArgListValues test89 TargetResName 1 MultiNICA1 TargetSysName 1 "" TargetResName:Probed 1 0 TargetResName:State 1 2
MultiNICproxy Probed test6 0
MultiNICproxy Probed test89 0
apache Probed test6 1
apache Probed test89 1
gcoip Probed test6 1
gcoip Probed test89 1
gconic Probed test6 1
gconic Probed test89 1
grp1phantom Probed test6 1
grp1phantom Probed test89 1
wac Probed test6 1
wac Probed test89 1
hares -probe MultiNICproxy -sys test89
hares -probe MultiNICproxy -sys test6
hares -display|grep Probed
MultiNICproxy Probed test6 0
MultiNICproxy Probed test89 0
apache Probed test6 1
apache Probed test89 1
gcoip Probed test6 1
gcoip Probed test89 1
gconic Probed test6 1
gconic Probed test89 1
grp1phantom Probed test6 1
grp1phantom Probed test89 1
wac Probed test6 1
wac Probed test89 1
tnx.
Well mate, here is a problem. VCS on Solaris does not support the MultiNICA agent. In Solaris you have options of NIC and MultiNICB agents. You need to fix this first.