The tool fsck.gfs2 gets lots of error stating "Link count inconsistent for inode" on RHEL6
Issue
- The tool
fsck.gfs2gets lots of error statingLink count inconsistent for inodeon RHEL6 as shown below:
# fsck.gfs2 -v -y /dev/mapper/lvm_home-home
Initializing fsck
Initializing lists...
jid=0: Looking at journal...
jid=0: Journal is clean.
jid=1: Looking at journal...
jid=1: Journal is clean.
Initializing special inodes...
Validating Resource Group index.
Level 1 rgrp check: Checking if all rgrp and rindex values are good.
(level 1 passed)
280 resource groups found.
Checking the integrity of all resource groups.
Setting block ranges...
Starting pass1
Checking system inode 'master'
System inode for 'master' is located at block 23 (0x17)
Checking system inode 'root'
System inode for 'root' is located at block 22 (0x16)
Checking system inode 'inum'
System inode for 'inum' is located at block 66219 (0x102ab)
Checking system inode 'statfs'
System inode for 'statfs' is located at block 66220 (0x102ac)
Checking system inode 'jindex'
System inode for 'jindex' is located at block 24 (0x18)
Checking system inode 'rindex'
System inode for 'rindex' is located at block 66221 (0x102ad)
Checking system inode 'quota'
System inode for 'quota' is located at block 66229 (0x102b5)
Checking system inode 'per_node'
System inode for 'per_node' is located at block 65700 (0x100a4)
Checking system inode 'journal0'
System inode for 'journal0' is located at block 25 (0x19)
Checking system inode 'journal1'
System inode for 'journal1' is located at block 32859 (0x805b)
Pass1 complete
Starting pass1b
Looking for duplicate blocks...
No duplicate blocks found
Pass1b complete
Starting pass1c
Looking for inodes containing ea blocks...
EA in inode 66230 (0x102b6)
....
EA in inode 1452767 (0x162adf)
Pass1c complete
Starting pass2
Checking system directory inode 'jindex'
Checking system directory inode 'per_node'
Checking system directory inode 'master'
Checking system directory inode 'root'
Checking directory inodes.
Pass2 complete
Starting pass3
Marking root inode connected
Marking master directory inode connected
Checking directory linkage.
Pass3 complete
Starting pass4
Checking inode reference counts.
Link count inconsistent for inode 66254 (0x102ce) has 11 but fsck found 5.
Fixing inode link count (11->5) for 66254 (0x102ce)
Link count updated to 5 for inode 66254 (0x102ce)
Link count inconsistent for inode 66506 (0x103ca) has 71 but fsck found 6.
Fixing inode link count (71->6) for 66506 (0x103ca)
....
Link count inconsistent for inode 104043 (0x1966b) has 10 but fsck found 5.
Fixing inode link count (10->5) for 104043 (0x1966b)
Link count updated to 5 for inode 104043 (0x1966b)
Pass4 complete
Starting pass5
Verifying Resource Group #0
.....
Verifying Resource Group #279
Pass5 complete
The statfs file is accurate.
Writing changes to disk
Syncing the device.
Freeing buffers.
gfs2_fsck complete
# echo $?
1
Environment
- Red Hat Enterprise Linux Server 6 (with the High Availability and Resilient Storage Add Ons)
- A Global Filesystem 2(
GFS2)
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
