Windows Vista Tips

Windows Vista Tips > Newsgroups > Windows Server > Clustering > How to handle - Deleting resource and service shutdown

Reply
Thread Tools Display Modes

How to handle - Deleting resource and service shutdown

 
 
RD
Guest
Posts: n/a

 
      11-13-2008
I'm writting a resource dll and tyring to perfrom some actions when my
resource is deleted from the cluster config. I looked at adding code during
OnClose() function, but it turned out that OnClose() is called when clussvc
is stopped. My question is how can I distinguished between delete/remove of
resource and cluster/system shutdown. Is there a way to capture service as
well as system shutdown from resource DLL. Thanks.
 
Reply With Quote
 
 
 
 
Ritu
Guest
Posts: n/a

 
      11-14-2008
To handle deletion of your resource, you can handle CLUSCTL_RESOURCE_DELETE
control code in your resource dll's ResourceControl Callback Function. You
wont be able to stop deletion of your resource butu you can certianly take
any action in this handler.


"RD" wrote:

> I'm writting a resource dll and tyring to perfrom some actions when my
> resource is deleted from the cluster config. I looked at adding code during
> OnClose() function, but it turned out that OnClose() is called when clussvc
> is stopped. My question is how can I distinguished between delete/remove of
> resource and cluster/system shutdown. Is there a way to capture service as
> well as system shutdown from resource DLL. Thanks.

 
Reply With Quote
 
RD
Guest
Posts: n/a

 
      11-17-2008
Thanks for the info. That was it. Also, you are right in that even if you
return !ERROR_SUCCESS, resource does get deleted and that is fine with me and
probably in many cases. I guess defuat handler in resource monitor process
ignores it.
Thanks again.

"Ritu" wrote:

> To handle deletion of your resource, you can handle CLUSCTL_RESOURCE_DELETE
> control code in your resource dll's ResourceControl Callback Function. You
> wont be able to stop deletion of your resource butu you can certianly take
> any action in this handler.
>
>
> "RD" wrote:
>
> > I'm writting a resource dll and tyring to perfrom some actions when my
> > resource is deleted from the cluster config. I looked at adding code during
> > OnClose() function, but it turned out that OnClose() is called when clussvc
> > is stopped. My question is how can I distinguished between delete/remove of
> > resource and cluster/system shutdown. Is there a way to capture service as
> > well as system shutdown from resource DLL. Thanks.

 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
RE: setting to prevent MSCS ORACLE resource to fail when shutdown Franco Clustering 0 12-28-2005 09:39 AM
RE: setting to prevent MSCS ORACLE resource to fail when shutdown Mike Rosado [Windows BETA] Clustering 0 12-27-2005 02:41 PM
WSUS does not handle Service Packs? Pat Windows Server 2 07-15-2005 05:40 AM
POP3 Connector Service won't start - Invalid Handle? Neil Smith Windows Small Business Server 4 01-04-2005 01:13 AM
How Does MS Update Service handle this case..... ? Al Dykes Windows Update 1 06-16-2004 05:02 PM



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59