Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

lscm command line does not properly acquire locks (iscsi)

 I read through https://jazz.net/library/article/533 and even posted before on this topic @ https://jazz.net/forum/questions/164481/lscm-scm-command-line-is-very-slow-solved

But I have hit this problem again. It seems RTC lscm does not support file locks properly.  Our homespaces have moved to a new server that has an iSCSI connected hard drive.  While flock works exactly as expected, lscm does not.  While the drive is virtually local, i also tried using it as an NFS mount using the -nolock mount option and still no luck

The end result is lscm does not work. Basically, I can run
lscm show status
lscm show status

The second one will return
Problem running 'show status':
Could not initialize data area. Could not lock /data/home/bwaldo/projects/rtc - locked by other process.

Running pgrep -f rtc shows that multiple daemons get spawned. Typically 5-6 for each call. After a few calls I'll have 30 daemons running (or could run lscm list daemons, would return a slightly smaller set)

Again, flock works just fine. I'm not sure what RTC is doing to not acquire the locks properly.  I can run
lsof .jazz5/.jazzlock and see
java    27578 bwaldo  179uw  REG  253,3        0 5371513730 .jazz5/.jazzlock

So it has the lock, but doesn't really know it and keeps spawning new daemons.  Again, this is an iSCSI device, XFS filesystem.   Note, the config dir is always set to /tmp to avoid any locking issues there.

Would happily provide more information but dont' know what is useful.  

Thanks in advance.


0 votes


Accepted answer

Permanent link

 The solution was just to not use iSCSI. Not really an answer but easiest path forward in our use case. Getting IBM access to our network was too big of a hurdle for them to troubleshoot.

Ralph Schoon selected this answer as the correct answer

0 votes


2 other answers

Permanent link
I would suggest to open a PMR with support.

1 vote


Permanent link

 Hi Brett Waldo

can you please the answer of this question if you got it.

0 votes

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 12,021
× 1,202
× 158
× 67

Question asked: Feb 16 '15, 11:54 p.m.

Question was seen: 4,913 times

Last updated: Apr 03 '17, 8:57 a.m.

Confirmation Cancel Confirm