[GE users] problem with migrating to shadow master

reuti reuti at staff.uni-marburg.de
Mon Nov 22 19:48:52 GMT 2010

Am 22.11.2010 um 15:12 schrieb rumpelkeks:

> Hello list,
> I have just discovered that I can't seem to migrate my qmaster service 
> any more (it definitely used to work).
> I get the "old qmaster did not write lock file. Cannot migrate qmaster." 
> error. If I manually touch a file called 'lock' in the spool directory, 
> all works fine. Oh plus it successfully shuts down the qmaster (just 
> never starts one). So I've probably traced it down to 'no lock file'.
> Have found nothing in the logs to explain it either.
> Now. Need some pointers for further debugging.
> I don't quite understand this 'locking' mechanism - when and where (and 
> where to) is the 'lock' written? (I can't really find anything in the 
> startup script that writes the file, only things that check for it). Is 
> this something that the old qmaster writes when it's shutting down and 
> the new one only starts once it appears? (There certainly is no 'lock' 
> file in the spool directory when the qmaster is running.)

AFAIK: the lock file is written by the qmaster, and removed when it's shut down in a proper fashion. But when it crashes, the file will stay there and the heartbeat file won't be updated any longer. Then the shadow master decides to take over and start a now qmaster.

Do you have a file $SGE_ROOT/default/common/shadow_masters?

-- Reuti

> Tina
> PS the sgeadmin user that the qmaster runs as can most certainly write 
> into the spool directory
> -- 
> Tina Friedrich, Computer Systems Administrator, Diamond Light Source Ltd
> Diamond House, Harwell Science and Innovation Campus - 01235 77 8442
> -- 
> This e-mail and any attachments may contain confidential, copyright and or privileged material, and are for the use of the intended addressee only. If you are not the intended addressee or an authorised recipient of the addressee please notify us of receipt by returning the e-mail and do not use, copy, retain, distribute or disclose the information in or attached to the e-mail.
> Any opinions expressed within this e-mail are those of the individual and not necessarily of Diamond Light Source Ltd. 
> Diamond Light Source Ltd. cannot guarantee that this e-mail or any attachments are free from viruses and we cannot accept liability for any damage which you may sustain as a result of software viruses which may be transmitted in or with the message.
> Diamond Light Source Limited (company no. 4375679). Registered in England and Wales with its registered office at Diamond House, Harwell Science and Innovation Campus, Didcot, Oxfordshire, OX11 0DE, United Kingdom
> ------------------------------------------------------
> http://gridengine.sunsource.net/ds/viewMessage.do?dsForumId=38&dsMessageId=297664
> To unsubscribe from this discussion, e-mail: [users-unsubscribe at gridengine.sunsource.net].


To unsubscribe from this discussion, e-mail: [users-unsubscribe at gridengine.sunsource.net].

More information about the gridengine-users mailing list