[Linux-cluster] Unable to lock any resource

Zelikov_Mikhail at emc.com Zelikov_Mikhail at emc.com
Thu Sep 21 19:12:56 UTC 2006

I am debugging a program that uses DLM (lock_resource()) to lock a
resource. If I kill the process within GDB and leave it running for a
long time (for example overnight), I am not longer able to lock any
resources. I obviously killed gdb and verified that I have no leftovers.

To verify that it is not just my resource that I can not lock I use:
dlmtest from ...dlm/tests/usertests/ directory to lock any resource:

[root at bof227 usertest]# ./dlmtest -m NL TEST
locking TEST NL ...
lock: Invalid argument

The error code returned on the lock_resources is EINVAL (22).

I can obviously fix this by rebooting the system, however it is a pain.
I tried to fix it by restarting cman and clvmd services - no success.
And I can not reload dlm kernel module as it is in use.

The content of dlm_stats shows that there is the same number of locks as

[root at bof227 usertest]# cat /proc/cluster/dlm_stats 
DLM stats (HZ=1000)

Lock operations:         21
Unlock operations:       21
Convert operations:       0
Completion ASTs:         42
Blocking ASTs:            0

Lockqueue        num  waittime   ave
WAIT_RSB          19         8     0
Total             19         8     0

I was wondering if anybody could provide an insight on this. I was also
wondering if there is a better way to deal with this than just rebooting
the system.

Thanks, Mike

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/linux-cluster/attachments/20060921/1aca5656/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Blank Bkgrd.gif
Type: image/gif
Size: 145 bytes
Desc: Blank Bkgrd.gif
URL: <http://listman.redhat.com/archives/linux-cluster/attachments/20060921/1aca5656/attachment.gif>

More information about the Linux-cluster mailing list