SUMMARY: rscadm lock file

From: Romeo Theriault <romeotheriault_at_gmail.com>
Date: Fri Nov 02 2007 - 11:59:49 EDT
Thank you very much to the following people for pointing me in the correct
direction.

Saxon Stuart
Peter Winterflood
Francisco Puente

See Original Question at bottom of mail.

The suggestion that they all pointed me at was to truss the command to find
where the lock file was, and that indeed showed me where the lock file was.
It was /tmp/RSCLockFile.txt   . See below.

Here is what I did:

# truss ./rscadm help

execve("../../SUNW,Sun-Fire-280R/rsc/rscadm", 0xFFBFFD14, 0xFFBFFD20)  argc
= 2
resolvepath("/usr/lib/ld.so.1", "/usr/lib/ld.so.1", 1023) = 16
open(".", O_RDONLY|O_LARGEFILE)                 = 3
fstat64(3, 0xFFBFF400)                          = 0
close(3)                                        = 0
<snip bunch of output>

open("/tmp/RSCLockFile.txt", O_WRONLY|O_CREAT|O_EXCL, 0666) Err#17 EEXIST
nanosleep(0xFFBFFAF0, 0xFFBFFAE8)               = 0
open("/tmp/RSCLockFile.txt", O_WRONLY|O_CREAT|O_EXCL, 0666) Err#17 EEXIST
nanosleep(0xFFBFFAF0, 0xFFBFFAE8)               = 0
open("/tmp/RSCLockFile.txt", O_WRONLY|O_CREAT|O_EXCL, 0666) Err#17 EEXIST
nanosleep(0xFFBFFAF0, 0xFFBFFAE8) (sleeping...)
nanosleep(0xFFBFFAF0, 0xFFBFFAE8)               = 0
open("/tmp/RSCLockFile.txt", O_WRONLY|O_CREAT|O_EXCL, 0666) Err#17 EEXIST
open("/tmp/RSCLockFile.txt", O_RDONLY)          = 3




Original question: "I'm replacing an admin who didn't leave their passwords
for the servers ALOM (System Controllers). So far I've been able to reset
the SC passwords on the machines through the scadm or rscadm commands,
depending on the server type. But on one machine (Sun-Fire-880) when I try
to reset the SC password with the rscadm command or do anything with the
rscadm command for that matter I get this error:

# ./rscadm help

rscadm: The RSC lock file was found. Only one
        instance of rscadm can run at a given time

I've read the System Controller documentation and they mention this error
but they don't tell you where the lock file is or how to get rid of it. I've
done a pretty thorough search for the lock file and can't seem to find it.

Anyone know where the lock file is kept for this or how I might be able to
handle this?"


-- 
Romeo Theriault
<romeo.theriault@maine.edu>
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers
Received on Fri Nov 2 11:00:12 2007

This archive was generated by hypermail 2.1.8 : Thu Mar 03 2016 - 06:44:07 EST