Forum Discussion

shiv124's avatar
shiv124
Level 4
12 years ago

VCS error

HI All ,   I observerd VCS throwing a service group violation error.I just happened to check the logs i found the below messages.I understood why a service group violation wrror comes but not sur...
  • mikebounds's avatar
    12 years ago

    A failover group is only allowed to run on one system so when VCS detects a resource is running on a second system it reports a concurrency violation and runs the violation trigger - see extract from VCS Admin guide:

     

    violation event trigger

    Description
     
    This trigger is invoked only on the system that caused the concurrency
    violation. Specifically, it takes the service group offline on the system where
    the trigger was invoked. Note that this trigger applies to failover groups only.
    The default trigger takes the service group offline on the system that caused
    the concurrency violation.
    So it is the violation trigger that runs the "hagrp -offline" - see extract from the trigger (in /opt/VRTSvcs/bin/triggers):
     
    VCSAG_LOG_MSG ("W", "Offlining group $grp_name on system $system_name", 15034, "$grp_name", "$system_name");
    # ABOVE IS THE WARNING MESSAGE YOU SEE AND THEN THE GROUP IS OFFLINED AS BELOW
    
    if ( $grp_name eq "ClusterService" ) {
    `$vcs_home/bin/hagrp -offline -force $grp_name -sys $system_name`;
    } else {
    `$vcs_home/bin/hagrp -offline $grp_name -sys $system_name`;
    }

    Mike