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.

Filesystem Corruption (XFS) on Multiple Disks (6 & 9) Following Rebuild

Featured Replies

Description of Issue: I recently completed a rebuild of Disk 6 from Parity. Following the subsequent reboot, both the newly rebuilt drive (Disk 6) and an existing drive (Disk 9) are showing as "Unmountable: Unsupported or no file system.

Current Array Status: The array is started, but:

  • Disk 9 is being emulated (red "X" in the GUI).

  • Both Disk 6 and the emulated Disk 9 are listed as unmountable.

  • I currently have no access to files on either of these disks through the Unraid shares.

Console Corruption Errors: The physical console displays critical XFS metadata corruption errors for Disk 9 (md9p1):

XFS (md9p1): Metadata corruption detected at xfs_buf_ioend...

XFS (md9p1): Unmount and run xfs_repair

XFS (md9p1): metadata I/O error in "xlog_recover_items_pass2..."

Hardware Configuration: The two affected disks are on separate controllers:

  • Disk 6: Connected via an LSI SAS HBA card.

  • Disk 9: Connected via the onboard SATA port on the motherboard.

  • Boot Flash: Samsung Flash Drive FIT (Logs show normal initialization as sda, despite intermittent -71 enumeration errors during boot).

Troubleshooting Steps Taken:

  1. External Verification: I pulled the physical Disk 9 and connected it to a Windows machine via SATA dock. DiskInternals Linux Reader confirmed the data is intact and readable, but Unraid cannot mount the emulated version.

  2. Services: Plex Media Server is down as a result.

OS Version: 7.2.3

Questions for the Community: What is the safest way to proceed?

Thanks in advance for your help!

Boot  corruption error.jpg

Screenshot Started Array.png

USB drive log.png

unraid-diagnostics-20260404-1632.zip

  • Replies 51
  • Views 702
  • Created
  • Last Reply

Top Posters In This Topic

Most Popular Posts

  • I managed to start Plex server by removing the setting "--device=/dev/dvb/" in extra parameter. I'll troubleshoot the tuner card issue another day. Again, many thanks for your support.

Posted Images

The xlog_recover_items_pass2 error with error 117 (EUCLEAN) means XFS is refusing to replay its journal because it detected corruption in the log itself. This is recoverable but needs care.

Good news: DiskInternals reading the physical disk successfully means the disk hardware is fine. The issue is either the emulated reconstruction introduced log inconsistency during the parity rebuild, or Disk 9 had an unclean shutdown that left the journal in a state the kernel cannot safely replay.

Steps to try:

First, from the Unraid terminal while the array is started (even in degraded state), run a dry-run check without changing anything:

xfs_repair -n /dev/md9p1

Second, if that shows repairable errors, run it without the -n flag:

xfs_repair /dev/md9p1

If xfs_repair itself complains about a dirty log, you may need:

xfs_repair -L /dev/md9p1

This zeros the journal, which loses any in-flight writes from the last session but the data on disk stays intact.

For Disk 6 being unmountable after rebuild: run the same xfs_repair -n /dev/md6p1 dry run first. Post the output from both so we can see what the repair tool finds before you commit to changes.

Also worth running smartctl -a /dev/sdX on the physical Disk 9 device to verify no underlying hardware errors appeared.

  • Community Expert

See the link above, run the check using the GUI, it will show a FIX button if corruption is detected, which it likely will be, i will also also to zero the log if needed, just follow the flow.

  • Community Expert
17 hours ago, Rian Kelly said:

from the Unraid terminal

For future reference, no reason to do any of that from the terminal.

19 minutes ago, JorgeB said:

See the link above, run the check using the GUI, it will show a FIX button if corruption is detected, which it likely will be, i will also also to zero the log if needed, just follow the flow.

  • Author

Thanks trurl.

I ran the file system check on both disks using the GUI. Both were showing a long list of errors, so I clicked the FIX button. For disk 9 only, the ZERO LOG button appeared and I used it.

At the end of the process, I got the message "File system corruption fixed" for both disks.

I stopped the array and restart in normal mode.

Now the disk 6 and 9 are showing almost empty, and disk 9 is being emulated (red "X" in the GUI). I have no access to files on either of these disks through the Unraid shares.

What should I do next?

image.png

  • Community Expert

I don't see any lost+found from the repair. Did you format the unmountable disks?

  • Community Expert

It would be very strange just running the filesystem check making the disks empty; something else was likely done.

For disk9, you can still mount the actual disk outside the array, if the data is there, then resync parity instead of rebuilding on top.

As for disk6, was it mountable and with data when the rebuild was done?

  • Author
55 minutes ago, JorgeB said:

It would be very strange just running the filesystem check making the disks empty; something else was likely done.

I have not done anything else except the File System Check procedure.

For disk9, you can still mount the actual disk outside the array, if the data is there, then resync parity instead of rebuilding on top.

Do you mean pull out disk 9 and check with a PC? If not, how do you mount the disk outside the array with the GUI?

As for disk6, was it mountable and with data when the rebuild was done?

The original disk 6 (4 TB) was emulated before it was removed and replaced with a new one (8 TB). The rebuild was done and I ended up as described in my original post with the 2 disks unmountable.

FYI, I checked the original disk 6 with DiskInternals Linux Reader and the data look all there and readable. Also did a backup of disk 9 with DiskInternals. I therefore have a backup of both disks.

Edited by dthedj

  • Community Expert

This doesn't make sense, but try mounting the actual disk9. To do that, you need to stop the array, unassign disk9, then see if it mounts with the Unassigned Devices plugin.

For disk6, since it's already been rebuilt, you can restore the data from the old disk.

  • Author

I stopped the array and selected "no device" for disk 9.

I did not restart the array without disk 9.

I tried to mount disk 9 using "Unassigned Disk Devices" but it did not work (see system log attached).

image.png

System Log - mounting disk 9.txt

Edited by dthedj

  • Community Expert

The actual disk also has filesystem corruption.

Apr 6 15:08:25 unRAID kernel: XFS (sdd1): Mounting V5 Filesystem 7490ce1b-dccb-441d-8a42-0b4e5ea521dc

Apr 6 15:08:25 unRAID kernel: XFS (sdd1): Starting recovery (logdev: internal)

Apr 6 15:08:25 unRAID kernel: XFS (sdd1): Metadata corruption detected at xfs_buf_ioend+0xa8/0x380, xfs_inode block 0xcd86a0 xfs_inode_buf_verify

Apr 6 15:08:25 unRAID kernel: XFS (sdd1): Unmount and run xfs_repair

Apr 6 15:08:25 unRAID kernel: XFS (sdd1): First 128 bytes of corrupted metadata buffer:

Typically this is easily resolved by checking filesystem, but due to the previous results you had, which may indicate a more serious issue with the server, it may be better to clone the disk first before running it. You can do that with dd for example.

  • Author

Since I already have a data backup of disk 9, I could skip the cloning and try to run again file system check, right?

For this, I suppose I need to reallocate disk 9 to array, start in maintenance mode and re-run the file system check?

  • Community Expert
15 minutes ago, dthedj said:

For this, I suppose I need to reallocate disk 9 to array, start in maintenance mode and re-run the file system check?

Nope, that would rebuild the current emulated disk9.

You can check filesystem from UD using the checkmark icon.

  • Author

I ran check file system check from UD by clicking on the checkmark icon. See attached results.

Next, I click on the "RUN WITH CORRECT FLAG" button in pop-up window?

file system check disk 9 UD.txt

  • Author

I clicked on the button and got the attached log.

Next I guess I click on "FORCE LOG ZEROING" ?

(sorry for being such a nooby)

log file system check disk 9 UD.txt

  • Author

Done the Zeroing and got the message "File system corruption fixed!". See attached log.

Now I can mount the disk 9 in UD and can browse the data which seam to be all available!

What should I do next?

log file zeroing log disk 9 UD.txt

  • Community Expert
11 minutes ago, dthedj said:

can browse the data which seam to be all available!

Is there a lost+found folder at the top level of the disk now?

  • Author

yes

image.png

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.