Re: Lockingstatistics

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



David Teigland wrote:
On Tue, Jan 16, 2007 at 10:32:32AM +0100, Marc Grimme wrote:
Hello,
is there a way to get a status on which node has which files locked and in what state?
Background:
We sometimes see processes ending up in deadlocks. And it is always very difficult to see which lock causes the problem. It would be very helpfull to get a dump on all the locks held by a given node in reference to the locked file.
In RHEL4 you can dump locks from gfs or the dlm:
gfs_tool lockdump <mountpoint>
echo "lockspace name" >> /proc/cluster/dlm_locks
cat /proc/cluster/dlm_locks

The number in type 2 locks is the inode number.

Dave
Hey, Marc. Funny you should ask; I just added those to the FAQ on Monday. See:

http://sourceware.redhat.com/cluster/faq.html#lock_dump_gfs

and

http://sourceware.redhat.com/cluster/faq.html#lock_dump_dlm

Regards,

Bob Peterson
Red Hat Cluster Suite

--
Linux-cluster mailing list
Linux-cluster@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/linux-cluster

[Index of Archives]     [Corosync Cluster Engine]     [GFS]     [Linux Virtualization]     [Centos Virtualization]     [Centos]     [Linux RAID]     [Fedora Users]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite Camping]

  Powered by Linux