[ha-clusters-discuss] MRSL.NONsharedDevice Agent

Thorsten Frueauf Thorsten.Frueauf at Sun.COM
Tue Sep 25 07:18:17 PDT 2007


Hi Leal et al,

well, I stated in previous mails that my AVS knowledge is limited, so I 
can't help you on that part.

I was just focusing on your problem that you wanted to store the 
hostname in a resource property, where the START method was last run.

And here my suggestion was to temporary store that hostname in a file (I 
picked /var/run/<resourcename>_last_started since /var/run will get 
cleaned out upon server reboot). That way you can update the resource 
property once the resource finished its reconfiguration (ie. finished 
START). I suggested Monitor_start, since that is called after START (but 
   it will not wait for you that START really finished, you would need 
to check for that in a new script for method Monitor_start). From within 
that script you can read the file and update the property, and then 
delete the temp file.

I am not aware of a standard SC function that would give you the node 
where the resource/RG last successfully started.

Greets
       Thorsten

msl wrote:
> Thanks very much! 
>  That was a really explanation about monitors, and i will bookmark that informations to start to implement it later.
>  But, what do you think in save "that" information on the filesystem? The solution that i'm working on, is for "nonshared" storage, but the "issue" that i'm trying to solve is for the use with AVS. So, i can assume that the discs are in sync, the other way (without AVS), i don't have the problem at all. Sorry by the english, i hope you can understand...
>  I mean, I'm just trying to know if i need to:
>  - do a reverse sync (the pool was last loaded on secondary node)
>  - don't need to do nothing (the pool was last loaded on primary node)
>  It would be nice if i could put that information on the pool properties... but i think there is no "generic" property that i can use. So, i'm thinking in create a "little" filesystem on it, and handle that problem within.
>  What do you think?
>  ps.: The SC does not have that information? I can not know where the resource was last started using standard SC functions?
> 
>  Leal.
> --


More information about the ha-clusters-discuss mailing list