How to start/stop/monitor resources in Global Zone selectively in VCS 6.2 and higher

book

Article ID: 100026901

calendar_today

Updated On:

Cause

Due to the introduction of Service Group attribute ContainerInfo in VCS 6.2 and higher, all resources under a Service Group with a valid value of ContainerInfo are started and monitored only in the Local Zone by default.

Resolution

In order to selectively online, offline and monitor resources outside Local Zone and only in Global Zone, the Resource Type attribute ContainerOpts can be overridden with the value of '0' for both keys RunInContainer and PassCInfo.
 

Warning: Since this change affects the  location of the resource (Whether to start and monitor in Global Zone or Local Zone), this change requires the concerned resource to be offline during this modification.


Example:

 

hares -offline -sys

haconf -makerw

hares -override ContainerOpts  (Use the Resource Name of concerned IP Type)
hares -modify ContainerOpts RunInContainer 0 PassCInfo 0

haconf -dump -makero
hares -display -attribute ContainerOpts (Verify in main.cf as well) 

hares -online -sys

Verify the state of the resource in both Global and Local Zones, and ensure the resource is only online in Global Zone.
 

 

 

Issue/Introduction

How to online, offline and monitor VCS resources in Solaris Global Zone (outside Local Zone) in VCS 6.2 and higher.