[Glass] stale lock files: best practice?

Mariano Martinez Peck via Glass glass at lists.gemtalksystems.com
Fri Feb 26 03:07:08 PST 2016


Hi Johan,

In the past, I had problems with `gslist -c`  as it was not deleting lock
files. This was a 3.1.0.6 and I don't remember the exact issue (maybe
ownership of the files or something). So my workaround was to do:

find /opt/gemstone/locks/ -type f -not -name 'gemstone.hostid' -delete
from my OS boot script


Cheers,



On Fri, Feb 26, 2016 at 6:25 AM, Johan Brichau via Glass <
glass at lists.gemtalksystems.com> wrote:

> Thanks guys for that info.
>
> I’m adding the gslist -c command to the boot script.
> The only moment that should get run is in case of linux server (re)boot.
>
> Johan
>
> > On 25 Feb 2016, at 23:14, Dale Henrichs via Glass <
> glass at lists.gemtalksystems.com> wrote:
> >
> > In addition to Richard's comments here are a few more comments from
> folks here at GemTalk Systems:
> >
> >  - I like deleting everything in the directory on operating system
> startup.
> >
> >  - A live stone, shrpcmonitor or  netldi will recreate it's .LCK
> >    file if it is deleted by accident.  There could be a small delay,
> >    so some logins could fail for a few seconds ...
> >
> > Dale
> >
> > On 02/25/2016 10:58 AM, Johan Brichau via Glass wrote:
> >> Hi there,
> >>
> >> On a server crash and subsequent reboot, it may happen the stone does
> not want to start because of stale lock files.
> >>
> >> I want to avoid this manual action of removing stale lock files and I
> am wondering what the best practice is.
> >>
> >> Is it OK to remove the lock files in a system boot script?
> >> Since I’m using monit I may also try to add to the stone start script?
> >> What would happen if you remove lock files for a running stone?
> >>
> >> What are others doing?
> >>
> >> cheers
> >> Johan
> >> _______________________________________________
> >> Glass mailing list
> >> Glass at lists.gemtalksystems.com
> >> http://lists.gemtalksystems.com/mailman/listinfo/glass
> >
> > _______________________________________________
> > Glass mailing list
> > Glass at lists.gemtalksystems.com
> > http://lists.gemtalksystems.com/mailman/listinfo/glass
>
> _______________________________________________
> Glass mailing list
> Glass at lists.gemtalksystems.com
> http://lists.gemtalksystems.com/mailman/listinfo/glass
>



-- 
Mariano
http://marianopeck.wordpress.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gemtalksystems.com/mailman/private/glass/attachments/20160226/7c376238/attachment-0001.html>


More information about the Glass mailing list