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 [hidden email] http://lists.gemtalksystems.com/mailman/listinfo/glass |
Administrator
|
(I hit the wrong button and replied directly to Johan. This is what I sent him.) gslist -c From the usage: -c Remove locks of killed servers.
|
In reply to this post by GLASS mailing list
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 > [hidden email] > http://lists.gemtalksystems.com/mailman/listinfo/glass _______________________________________________ Glass mailing list [hidden email] http://lists.gemtalksystems.com/mailman/listinfo/glass |
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 <[hidden email]> 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 >> [hidden email] >> http://lists.gemtalksystems.com/mailman/listinfo/glass > > _______________________________________________ > Glass mailing list > [hidden email] > http://lists.gemtalksystems.com/mailman/listinfo/glass _______________________________________________ Glass mailing list [hidden email] http://lists.gemtalksystems.com/mailman/listinfo/glass |
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 <[hidden email]> wrote: Thanks guys for that info. _______________________________________________ Glass mailing list [hidden email] http://lists.gemtalksystems.com/mailman/listinfo/glass |
Free forum by Nabble | Edit this page |