• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer navigation

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • Solaris
    • Oracle Linux
    • VCS
  • Interview Questions
  • Database
    • oracle
    • oracle 12c
    • ASM
    • mysql
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

Common Error Messages from Command xfs_repair in Linux

by admin

The post explains some of the common error messages from command xfs_repair and the repairs that it performs.

disconnected inode 242002, moving to lost+found

xfs_repair found an inode that is in use but is not connected to the filesystem. The inode is moved to the filesystem’s lost+found directory. Its name is its inode number (in this example, 242002). If the disconnected inode is a directory, the directory’s subtree is preserved–all of its child inodes are automatically moved with it. So, the entire directory subtree moves to lost+found.

imap claims in-use inode 2444941 is free, correcting imap

The inode allocation map in the filesystem behaves as if inode 2444941(in this example) is free, but the inode itself looks like it is still in use.xfs_repair corrects the inode map to say that the inode is in use.

entry references free inode 2444940 in shortform directory 2444922 junking entry “test” in directory inode 2444922

A directory entry points to an inode (in this example, 2444940) that xfs_repair has determined is actually free.xfs_repair junks the directory entry. The term shortform means a small directory. In larger directories, the entry deletion is usually a two-pass process. In this case, the second part of the message reads something like marking bad entry, marking the entry to be deleted, or will clear entry.

resetting inode 241996 nlinks from 5 to 3

xfs_repair detected a mismatch between the number of directory entries pointing to the inode (in this example, 241996) and the number of links recorded in the inode. It corrected the number (from 5 to 3 in this case).

cleared inode 2444926

There was something wrong with the inode that was not correctable, so xfs_repair turned it into a zero-length free inode. This usually happens because the inode claims block that is used by something else or the inode itself is badly corrupted. Typically, the cleared inode message is preceded by one or more messages indicating why the inode must be cleared.

Filed Under: CentOS/RHEL, Linux

Some more articles you might also be interested in …

  1. How to backup Linux OS using “dd” Command
  2. How to Remove/Delete All Packages from Channel(s) in SpaceWalk
  3. How To Change Pacemaker Cluster Heartbeat Timeout In CentOS/RHEL 7
  4. CentOS / RHEL : How to find Logical volumes (LVs) contained in Physical Volume (PVs) in LVM
  5. featureCounts: command not found
  6. rm Command Examples in Linux
  7. How to Run SCP Without Password Prompt Interruption in Linux
  8. SSSD Service Failing with “SSSD is already running” in CentOS/RHEL 7
  9. Repairing filesystem issues at Boot in CentOS/RHEL 7 and 8
  10. dmidecode Command Examples in Linux

You May Also Like

Primary Sidebar

Recent Posts

  • vgextend Command Examples in Linux
  • setpci command – configure PCI device
  • db_load command – generate db database
  • bsdtar command – Read and write tape archive files

© 2022 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright