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
Last revisionBoth sides next revision
linux:ocfs2 [2012/06/14 10:34] tmadelinux:ocfs2 [2014/06/13 10:01] tmade
Line 1: Line 1:
 [[http://tmade.de|Home tmade.de]] [[http://tmade.de|Home tmade.de]]
  
-[[http://tmade.de/wiki|Home Wiki]]+[[http://wiki.tmade.de|Home Wiki]]
  
 ===== OCFS2 ===== ===== OCFS2 =====
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