Forum Discussion

linuly's avatar
linuly
Level 4
6 years ago

hares

i was in the situation when hares -state showed me that a resorce is online and i was unable to offline her ->hares -offline resource -sys <node> so i removed the resoure not using vcs.then i started the group with vcs control.is this right to proceed like this?

hares -state
#Resource Attribute System Value
apacheApp State test5 OFFLINE
apacheApp State test9 OFFLINE
data_dg State test5 ONLINE
data_dg State test9 OFFLINE

hares -offline data_dg -sys test5

hares -state
#Resource Attribute System Value
apacheApp State test5 OFFLINE
apacheApp State test9 OFFLINE
data_dg State test5 ONLINE

vxdg list
NAME STATE ID
y enabled,cds 1550767601.11.linux-l9dq

vxdg deport y

hares -state
#Resource Attribute System Value
apacheApp State test5 OFFLINE
apacheApp State test9 OFFLINE
data_dg State test5 OFFLINE
data_dg State test9 OFFLINE

hagrp -online y -sys test5

 

other thing.

vol2 is active but is brrought up not by vcs.

vxprint

v vol2 fsgen ENABLED 2097152 - ACTIVE - -
pl vol2-01 vol2 ENABLED 2097152 - ACTIVE - -
sd disk0-02 vol2-01 ENABLED 2097152 0 - - -

hares -state

vol2 State test5 OFFLINE
vol2 State test9 OFFLINE

hares -online vol2 -sys test5

hares -state

vol2 State test5 OFFLINE
vol2 State test9 OFFLINE

why the resource not change in online status?

tnx

  • There are three seperate issues here.

    1. Resource not going offline. You need to work out why. That means looking through the various log files (engine/agent/system) for any relevant messages. It's likely to be a configuration issue, but there isn't enough information here to give a definitive answer.

    2. The volumes will become active when the diskgroup is imported. That is the default behaviour. So a volume resource is there, primarily, for monitoring.

    3. Resource not showing ONLINE state. Best guess is, again, a misconfiguration. The relevant part of the main.cf would be useful.

    • linuly's avatar
      linuly
      Level 4

      hi,

      to bring fast the group online maybe what i have done is ok.then i will investigaste the log.right?

      • snockles's avatar
        snockles
        Level 3

        It's OK as long are you aren't causing an issue with the service. If you are going to work on resources behind the scenes, then this is where freezing the service group might be useful.