Forum Discussion

Symen's avatar
Symen
Level 2
13 years ago

VCS probe issue with puredisk cluster

Perform the following action in a puredisk cluster:

  • Freeze the cluster
  • Take down puredisk for maintenance

At this point, the cluster will set the state of puredisk to "offline"

  • Bring puredisk back up

At this point, the cluster will NOT set the state of puredisk back to online. Probing the resource doesn't bring the service back either. The only way of getting the resource back online, is by "onlining" it. This will cause a number of startup and initialization scripts to run on an already running system. Not good.

The cause is in /opt/pdcl/bin/cluster/vcs/monitor:

if ($ServerType  eq "PD")
{
        if (($monRC == 0) && ($NBUSTATE eq "OFFLINE"))
        {
                # if all services are up, state is offline, return OFFLINE
                $monRC = 100;
        }
=> When all services are running, return offline ?

I would change it to this:

if ($ServerType  eq "PD")
{
        if (($monRC == 0) && ($NBUSTATE eq "OFFLINE"))
        {
                # if all services are up, state is offline, return OFFLINE
                $monRC = 110;
        }

Tried this out: after a probe, my resource is online