<p><br>
On Sep 8, 2012 9:44 AM, "Bob Peterson" <<a href="mailto:rpeterso@redhat.com" target="_blank">rpeterso@redhat.com</a>> wrote:<br>
><br>
> ----- Original Message -----<br>
> | A question on the inode numbers in the hangalyzer output.<br>
> |<br>
> | In the glock dump for node2 you have these lines:<br>
> | G:  s:SH n:2/81523 f:dq t:SH d:UN/0 l:0 a:0 r:4 m:100<br>
> |     I: n:126/529699 t:4 f:0x10 d:0x00000001 s:3864/3864<br>
> |<br>
> | >From docs I've read I understand that the glock field 'n:2/81523'<br>
> | tells me that 81523 is the inode number in hex (if then type is 2 or<br>
> | 5).<br>
> | What are the fields in the inode line following the glock mean (at<br>
> | least the n: field)?<br>
><br>
> The numbers after the n: are the glock identifier. It consists of<br>
> the glock type (2 for inode, 3 for rgrp, 5 for i_open, and a bunch<br>
> of special ones) followed by "/" followed by the inode number<br>
> (disk inode's block address) in hex.<br>
><br>
> After f: are the glock flags. For example, "q" means the glock is<br>
> queued. There are a bunch of flags with a bunch of meanings.<br>
><br>
> t: is the target glock state; the lock state it's trying to achieve.<br>
> SH is for a shared lock, EX is exclusive, UN is unlocked, etc.<br>
> d: is the demote glock state; the lock state it needs to transition<br>
> to when the lock is demoted. In this case, demote to UNlocked.<br>
> The number after the slash is the demote time.<br>
> a: is active items count, or the number of "live" buffers to be written.<br>
> r: is the revoke count, or the number of journal items needing to be<br>
>    revoked due to delete, etc.<br>
> m: is the minimum hold time for the glock, in milliseconds.<br>
><br>
> On the next line, I: indicates this glock is for an inode.<br>
> n:126 is a formal inode number (can be ignored). The number after the<br>
> slash, 529699, is the inode disk address in decimal.<br>
> t: is the mode, f: are the inode flags, d: are the disk flags, and<br>
> s: is the inode's size in decimal. Before the slash is the size stored<br>
> in one of our internal structures. After the slash is the size<br>
> according to the vfs inode. In almost all cases they should be the same.<br>
><br>
> Note that the format of these fields, the flags, and everything<br>
> differs from release to release. For example, newer versions of GFS2<br>
> don't have two different numbers for inode size.<br>
></p><p>I'm not clear on the two different inode numbers in the two lines above: Which n: number do I use to locate the file the lock is for? The one in the glock line or the one in the I: line? From RedHat docs I have read, I should convert the 81523 (from the '2/ 81523') to decimal, which is  <span class="cwcot" id="cwos">533795, and then use 'find -inum <span class="cwcot" id="cwos">533795' to locate the file after the filesystem has been unfrozen. <br>
</span></span></p><p>I guess my confusion is the definition of a "disk inode's block address" versus an "inode disk address". Could you clarify the difference for me?</p><p><br></p>