Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

XFS Corruption

Featured Replies

Hello

While moving some files to a storage server everything came to a stop and when I logged into the server I noticed on of my drives said it was unmountable and the wrong file type. After doing some google searching I learned that it was caused by a XFS filesystem error, after trying to to the repair as stated online I have not been able to get it up and going again. Included is a diagnostic I took this morning. Thanks in advance for any support you can offer.

asc-diagnostics-20230715-0946.zip

  • Community Expert

You mention trying to run an XFS repair, but you do not say in what way it failed!  Were you trying from the GUI or from the command line (as the command line is prone to error).

Were you doing anything different to the instruction in this section of the online documentation that covers handling unmountable disks.

  • Author

Ran it through the GUI and got a fatal error, fatal error -- couldn't map inode 2149847950, err = 117. The procedure I used is the same as mentioned in the repairing a file system section and it never asked for a -L. I have not tried using the command line method yet but I will have to re-sync the drive since I started it up without it selected in the drive pool. The diagnostics I posted before should have been after I tried the GUI repair, if I messed it up let me know.

  • Author

So after trying both in the terminal and GUI repair as outlined in the guide linked by you I still get the same error. I will add the diagnostic after completing the repair attempt.

asc-diagnostics-20230716-1354.zip

  • Community Expert

Try updating to v6.12.3 and run it again, it includes newer xfsprogs.

  • Author

Updated to the latest version and ran the repair in both the GUI and in the command line both failed. Command line spit out fatal error -- couldn't initialize XFS library and the GUI stopped and spit out fatal error -- couldn't map inode 2149847950, err = 117. Will add the diagnostic files link always.

asc-diagnostics-20230717-1700.zip

  • Community Expert

Please post the full xfs_repair output, but possibly it's failing to repair the filesystem, if that's the case not much else that can be done.

  • Community Expert

With v6.12.x it will be 

xfs_repair /dev/md1p1

Also array must be started in maintenance mode.

  • Author

Says the same thing as the GUI repair and everytime I have tried to repair it has been in maintenance mode. Anything else I can try?

  • Community Expert
43 minutes ago, williamtul11 said:

Says the same thing as the GUI repair and everytime I have tried to repair it has been in maintenance mode. Anything else I can try?

 

The repair log shows major corruption - I suspect most of the data on the drive will either be lost or end up in the lost+found folder which it takes a LOT of effort to sort out,   Do you have decent backups?

  • Author

most recent back up was a month ago, even if I could just get the files back that would be a huge help.

  • Community Expert

Post the xfs_repair output.

  • Author

Here is what I can copy and paste over since there is so many corrupted files it seems to exceed the line limit on the terminal. If you guys can share the command to maybe export or output it to a txt file let me know and I can get the whole output.

Terminal XFS.txt

  • Community Expert

Looks like an xfs_repair problem, it's aborting, you can see if the actual disk has better contents vs the emulated one, see if it mounts with UD, you need to unassigned it first.

  • Author

so unmount it, start it up and see what happens?

  • Community Expert

No, unassign disk1 and see if it mounts with the UD plugin.

  • Author

tab that is telling me whats going on keeps crashing, also not sure if it is mounted since the mount button is still the same but it is letting me run a file system check on it. If the tab crashes does it keep on doing the repair or do I need to restart it?

  • Author

Got the file check to finish I believe, ended with xfs_repair: rmap.c:1279: fix_inode_reflink_flags: Assertion `(irec->ino_is_rl & irec->ir_free) == 0' failed. Going to do the file check again.

  • Author

So I am unsure if the repair worked, is there something else I can try to do?

  • Community Expert

Looks like the repair failed as xfs_repair crashed with an assertion failure.   Even if it HAD worked it looks like a lot of corruption was detected so that much of the data would have ended up in the lost+found folder with cryptic names.  Do you have backups?

 

Not sure you can do much at the Unraid level other than wait to see if a new Unraid with a later version of xfs_repair works.  Another possibility is to see if a disk recovery program such as XFS Explorer on Windows can do anything.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.