Jordan Brown wrote:
> Joe Blount wrote:
>> I have a situation where, to my knowledge, SMF dependencies alone
>> cannot ensure the proper shutdown sequence during a shutdown.
>
> It seems like you are describing precisely a dependency problem, and 
> not an unreasonable one, so either there's a way to map it into 
> dependencies or there should be.
I agree - precisely a dependency problem.
>
>> The ADM event manager service need to hang around until after
>> unmounts of the file systems it manages.  But unmounts are not
>> controlled by an SMF service.
>
> That seems to be the key.  Why aren't unmounts controlled by an SMF 
> service?  Why doesn't it work to make them controlled by an SMF 
> service, and make that SMF service depend on your event manager service?
I asked about it a few months ago:
http://www.opensolaris.org/jive/thread.jspa?threadID=52613

and was told:

/_"zfs mount" is called by filesystem/local which is dependent on
filesystem/minimal; so it's ok for during startup.

However, upon shutdown, there is no "zfs unmount" called by any
service. It's svc.startd that calls "umountall" right before the
shutdown. So presently, your service cannot stop after zfs unmounts._/

/end quote

I didn't find I thought was a clean solution at the time, so its been an 
open issue to back to...

Thanks,
Joe

Reply via email to