Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
linux:ocfs2 [2013/01/02 15:02] – external edit 127.0.0.1linux:ocfs2 [2017/12/09 01:19] (current) – external edit 127.0.0.1
Line 58: Line 58:
  
   mount -at ocfs2   mount -at ocfs2
 +  
 +=== Test ===
 +
 +<code>
 +
 +#!/bin/bash
 +
 +if ! cat /proc/mounts | grep "/sys/kernel/debug" &>/dev/null; then
 +   mount -t debugfs none /sys/kernel/debug
 +   mounted=1
 +fi
 +
 +echo "Clusterlocks held by filesystem.."
 +for vol in /sys/kernel/debug/ocfs2/*
 +do
 +   count=$(wc -l ${vol}/locking_state | cut -f1 -d' ');
 +   echo "$(basename ${vol}): ${count} locks" ;
 +done;
 +
 +echo "Clusterresources held by filesystem.."
 +for vol in /sys/kernel/debug/o2dlm/*
 +do
 +   count=$(grep -c "^NAME:" ${vol}/locking_state);
 +   echo "$(basename ${vol}): ${count} resources" ;
 +done;
 +
 +if [ -n "$mounted" ]; then
 +   umount /sys/kernel/debug
 +fi
 +</code>
 +
      
 === Links === === Links ===
linux/ocfs2.txt · Last modified: 2017/12/09 01:19 by 127.0.0.1
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Noncommercial-Share Alike 4.0 International
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki