[Glass] Monit scripts for gemstone?

Mariano Martinez Peck marianopeck at gmail.com
Wed Aug 20 07:02:32 PDT 2014

On Wed, Aug 20, 2014 at 7:56 AM, James Foster <
james.foster at gemtalksystems.com> wrote:

> The presence of lock files will prevent processes from starting, so they
> might need to be cleared. They can be cleared by gslist with the ‘-c’
> option and/or you could clear them as part of an init.d script at system
> boot time. Obviously, they should not be always cleared as part of a
> general start-up script since this would defeat the purpose,

mmmm why?  I do run it always in my init.t script as part of my startup.
See my other answer to Johan.
Is my assumption wrong?

> though a ‘gslist -c’ could be done anytime (my environments typically have
> an alias for gslist=‘gslist -clv’).
I tried that yesterday in my server when I had these lock files of dead
process, and gslist -c did nothing. It simply displayed the stones and it
didn't delete anything from /opt/gemstone/locks and I am sure the processes
associated to those locks are dead.


> James
> On Aug 20, 2014, at 4:17 AM, Johan Brichau <johan at yesplan.be> wrote:
> > On 20 Aug 2014, at 06:11, Mariano Martinez Peck <marianopeck at gmail.com>
> wrote:
> >
> >> So...before everything...are you using init.d to start your stones as
> well? or you let monit do it lazily?
> >
> > In case of reboot, I have found that monit does not work well to get
> everything up and running fast.
> > So, yes, I am using init.d to start all stones and gems.
> >
> >> if the later...how do you handle a proper shutdown? it happens to me
> that some lock files remind alive but the process are gone. So upon reboot,
> I cannot start my process again.
> >
> > Yes, I do recall that this happened but I have contradicting
> experiences. On my laptop I often need to remove the lock files when they
> are present. In contrast, last june all our servers got rebooted because of
> a SAN network problem and there were no issues with the lock files. Maybe
> someone from GemTalk can shed more light on that...
> >
> >> In summary.... I am having problems with locks file in
> /opt/gemstone/locks and the presence of both, init.d and monit scripts.
> >>
> >> I can explain with more details what I am doing exactly, but just
> wanted to know what you were doing.
> >
> > At the moment, I'm not doing anything automated with the lock files.
> > If there is an issue starting a stone, it is one of the things I look at
> but I don't have an automated strategy for handling them.
> >
> > It would be great to know and develop a common strategy for everyone to
> follow...
> >
> > Johan
> > _______________________________________________
> > Glass mailing list
> > Glass at lists.gemtalksystems.com
> > http://lists.gemtalksystems.com/mailman/listinfo/glass

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gemtalksystems.com/mailman/private/glass/attachments/20140820/a55b5b1b/attachment-0001.html>

More information about the Glass mailing list