Forum Discussion

Fugitive's avatar
Fugitive
Level 4
14 years ago

Zone Cluster in VCS

I have 2 systems Node1 and Node2 running VCS5.1 MP1 with solaris10_u8. I want to configure an oracle database in solaris zone which is able to failover to other node. Current Configuration is as following 
The Zone root is on shared storage zonedg. And the zone is able to start on both the systems node1 and node2 when the zonedg ( zoneroot)  is switched over.  Now i do not know how to configure 
the zone under VCS control with hazonesetup



V-16-34-1100 Usage: /opt/VRTSvcs/bin/hazonesetup <SG> <res> <Zone> <passwd> <autostart> <Systems>

What will be the SG, res ? here ? 


node2:/>hagrp -state zoneSG
#Group       Attribute             System         Value
zoneSG       State                 node1 |OFFLINE|
zoneSG       State                 node2 |ONLINE|
node2:/>zoneadm list -cv
  ID NAME             STATUS     PATH                           BRAND    IP
   0 global           running    /                              native   shared
   1 zone1            running    /zone1                         native   shared
node2:/>hares -state | grep zone
zoneDG       State               node1 OFFLINE
zoneDG       State               node2 ONLINE
zoneDataMNT  State               node1 OFFLINE
zoneDataMNT  State               node2 ONLINE
zoneDataVOL  State               node1 OFFLINE
zoneDataVOL  State               node2 ONLINE
zoneRootMNT  State               node1 OFFLINE
zoneRootMNT  State               node2 ONLINE
zoneRootVOL  State               node1 OFFLINE
zoneRootVOL  State               node2 ONLINE
node2:/>df -h | grep vx
swap                    13G     0K    13G     0%    /dev/vx/dmp
swap                    13G     0K    13G     0%    /dev/vx/rdmp
/dev/vx/dsk/zonedg/vol1    10G    20M   9.4G     1%    /vol1
/dev/vx/dsk/zonedg/zonevol   7.0G   190M   6.4G     3%    /zone1
node2:/>
  • For monitoring applications in the zone, VCS requires to run HA commands from the zone as zone root.

    After you ran hazonesetup, there would be a zone username created.  You will need to authenticate these users from the zone.

    Please do the following:

    Login to the local zone:

    globalzone # zlogin localzone

    Set the environment variable:

    localzone # VCS_HOST=<hostname of global zone>
    localzone # export VCS_HOST

    login to the VCS engine from localzone:
    localzone # /opt/VRTSvcs/bin/halogin <username> <password> 

    The username can be found in the main.cf file for the service group and password is the one that you entered while running hazonesetup

    Check and verify if the following files are created in localzone:

    localzone # ls -l ~/.vcspwd
    localzone # ls -l /etc/VRTSvcs/.vcshost

    Probe or online the resources and it should work this time.

    Regards,
    Kunal Parmar





5 Replies

  • http://sfdoccentral.symantec.com/sf/5.1/solaris/manpages/cluster_server/man/html/man1m/hazonesetup.1m.html

    Assuming you want to set the zone up in the existing group (zoneSG) then

    SG: zoneSG
    resource: (whatever you want to call the zone resource, eg: myzoneres)
    zonename: (name of the zone, eg: myzone)
    autostart: (1 if you want it to start when vcs starts, 0 if you want to start it manually on cluster restart)
    Systems: (list of systems that can run the zone, in this case node1, node2)

    Edit: the following whitepaper may also be helpful:
    How to configure failover of Solaris non-global zones using Storage Foundation for Oracle/HA Procedural steps to set up a highly available Oracle application in a Solaris nonglobal zone environment
    ftp://ftp.entsupport.symantec.com/pub/support/products/Database_Edition_for_Oracle/302453.pdf
  • I ran the following command and after it i 'm unable to start the service group. And get following Warnings

    node2:/>/opt/VRTSvcs/bin/hazonesetup zoneSG zoners zone1 temp123 0 node2 node1


     
    node1:/>hagrp -online zoneSG -sys node1
    VCS WARNING V-16-1-10162 Group zoneSG has not been fully probed on system node1
    node1:/>hagrp -online zoneSG -sys node2
    VCS WARNING V-16-1-10162 Group zoneSG has not been fully probed on system node2
    node1:/>hastatus -sum
     
    -- SYSTEM STATE
    -- System               State                Frozen
     
    A  node1       RUNNING              0
    A  node2       RUNNING              0
     
    -- GROUP STATE
    -- Group           System               Probed     AutoDisabled    State
     
    B  zoneSG          node1       N          N               OFFLINE
    B  zoneSG          node2       N          N               OFFLINE
     
    -- RESOURCES NOT PROBED
    -- Group           Type                 Resource             System
     
    E  zoneSG          Zone                 zoneRES              node1
    E  zoneSG          Zone                 zoneRES              node2
    node1:/>



    I brought the resources one by one and then i was able to bring the group ... 

    but i 'm getting following warning  in the engine log 


    VCS ERROR V-16-1-11332 Invalid credentials, unable to create halogin session
  • For monitoring applications in the zone, VCS requires to run HA commands from the zone as zone root.

    After you ran hazonesetup, there would be a zone username created.  You will need to authenticate these users from the zone.

    Please do the following:

    Login to the local zone:

    globalzone # zlogin localzone

    Set the environment variable:

    localzone # VCS_HOST=<hostname of global zone>
    localzone # export VCS_HOST

    login to the VCS engine from localzone:
    localzone # /opt/VRTSvcs/bin/halogin <username> <password> 

    The username can be found in the main.cf file for the service group and password is the one that you entered while running hazonesetup

    Check and verify if the following files are created in localzone:

    localzone # ls -l ~/.vcspwd
    localzone # ls -l /etc/VRTSvcs/.vcshost

    Probe or online the resources and it should work this time.

    Regards,
    Kunal Parmar





  • Ok  that worked    thanks for that ....... but once the zone is up and running and if i want to run a an oracle instance .. which resources should be configured 
    I 'm not getting .. how the resources like oracle server, listener, etc should be created .. 
  • Now, most of agents provide facility to monitor resources in local zone while agents are installed in Gloabal zone. "containername" attribute is introduced to bring this flexibility.

    If you want to run Oracle and Listener in local zone and monitor them through VCS agents. You can install agents in Global Zone and use containername attribute ( use local zone name ) with resource to make them monitoring in local zone.

    You can refer the document provided by Lee for more details or agent guide for Oracle.

    ftp://ftp.entsupport.symantec.com/pub/support/products/Database_Edition_for_Oracle/302453.pdf

    http://sfdoccentral.symantec.com/sf/5.1/solaris/html/vcs_oracle_agent/apbs06.htm

    However there is bit difference in 5.1, below is update fro Oracle Agent guide.

    The attributes ContainerName and ContainerType are replaced with resource
    type-level attribute ContainerOpts, and a service group-level attribute
    ContainerInfo.

    http://sfdoccentral.symantec.com/sf/5.1/solaris/pdf/vcs_oracle_agent.pdf

    Cheers !