Video Screencast Help

How to remove a service group

Created: 19 Aug 2013 • Updated: 27 Aug 2013 | 7 comments
This issue has been solved. See solution.

I would like to remove the SG, will the below steps work? hagrp -offline SG –sys server1 hares –delete resources - delete parent resources first since resources are dependent on others Parent - tony, Child - ting So, run command hares -delete tony (first) hagrp –delete SG

Discussion Filed Under:

Comments 7 CommentsJump to latest comment

mikebounds's picture

 

Yes this would fine, but it does not matter what order you delete the resources, in fact you don't even have to stop the service group first, so basically as you have listed, you just delete all resources and then delete the group.
 
Mike

UK Symantec Consultant in VCS, GCO, SF, VVR, VxAT on Solaris, AIX, HP-ux, Linux & Windows

If this post has answered your question then please click on "Mark as solution" link below

sureshpeters's picture

So, Can I delete child resource first before deleting parent one?

# hares -dep tony
#Parent Child Relationship
tony ting online local firm

mikebounds's picture

Yes - you can delete resource in whatever order you like.

Mike

UK Symantec Consultant in VCS, GCO, SF, VVR, VxAT on Solaris, AIX, HP-ux, Linux & Windows

If this post has answered your question then please click on "Mark as solution" link below

sureshpeters's picture

Just want to confirm again,

No matter how many resources exist and their dependencies, we can delete resource in whatorder order we like. AM I correct?

g_lee's picture

resources yes, groups no (ie: you need to unlink any dependent groups before deleting)

Interestingly (or suspiciously?) - the dependency output example you provided above ( https://www-secure.symantec.com/connect/forums/how... ) seems to be for a group (online local firm) rather than a resource, even though the cmd was supposedly hares .....

If this post has helped you, please vote or mark as solution

sureshpeters's picture

Sorry for the confusion. The resource dependency is somthing like this...

@test1 /root # hares -dep tony-o
#Group Parent Child
tom-SG tony-o tom-fs-M
tom-SG tony-o tom-oracle-fs-M
tom-SG tony-o tom-ora-dum-fs-M
tom-SG tony-o tom-ora-aud-fs-M
tom-SG tony-o tom-data-temp-fs-M
tom-SG tony-o tom-tony-ora-fs-M

So, we can delete the parent resource (tony-o) first and then remove the child resources (or) any order as you suggested.

mikebounds's picture

Any order as these are resource dependencies (hares -dep), not group dependencies (hagrp -dep).

Mike

UK Symantec Consultant in VCS, GCO, SF, VVR, VxAT on Solaris, AIX, HP-ux, Linux & Windows

If this post has answered your question then please click on "Mark as solution" link below

SOLUTION