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 FIlesystem issue - how to recover after failed xfs repair...

Featured Replies

Hi folks,

 

I've had a look through the forum and FAQ and couldn't see anything obvious on how to proceed - its been a while since I've had an issue with my unraid setup.

 

It looks like one of my drives has a filesystem issue - its showing as a non mountable filesystem. I've run an xfs repair but that ended reporting no superblock could be found. So not sure how to recover given I can't mount it and recover any data.

 

If I format, will unraid just rebuild it from parity? Probably a dumb question but any advice on how to proceed would be gratefully received!

 

Thanks,

 

Alex

 

 

  • Community Expert
2 minutes ago, ajburnet said:

Hi folks,

 

I've had a look through the forum and FAQ and couldn't see anything obvious on how to proceed - its been a while since I've had an issue with my unraid setup.

 

It looks like one of my drives has a filesystem issue - its showing as a non mountable filesystem. I've run an xfs repair but that ended reporting no superblock could be found. So not sure how to recover given I can't mount it and recover any data.

 

If I format, will unraid just rebuild it from parity? Probably a dumb question but any advice on how to proceed would be gratefully received!

 

Thanks,

 

Alex

 

 

Do NOT format the drive - that will guarantee data loss.    Parity cannot be used to fix an ‘unmountable’ disk type problem.

 

when you tried the xfs_repair command did you run it against the md device corresponding to the disk or did you try and run it directly against the physical drive?

  • Author

Ran it against the physical drive, e.g. dev/sdn.

 

THanks.

  • Community Expert

/dev/sdX is NOT a valid name - when running against a physical drive you need to include the partition number.    However running against the physical drive will invalidate parity.   The recommended way to do things is to put the array into Maintenance mode and then run against the appropriate ‘md’ device (md devices do not need the partition to be specified) which does not invalidate parity.

 

You can also try running the xfs_repair against an emulated drive rather than a physical drive.   If that works you can then rebuild the problem disk to bring the physical drive back into step with the array.

  • Author

Thanks - will try the xfs repair command on the device. If that works, how would I go about re-building the drive?

 

Thanks again for the pointers. Amazing how much of this I have forgotten having not touched it for about 5 years!!

 

 

  • Community Expert
2 hours ago, ajburnet said:

I've had a look through the forum and FAQ and couldn't see anything obvious on how to proceed

For future reference how to check filesystem is on the wiki:

https://wiki.unraid.net/Check_Disk_Filesystems

 

2 hours ago, ajburnet said:

If that works, how would I go about re-building the drive?

Is the disk disable or just unmountable? If disable you should post your diagnostics.

  • Author

Thanks folks - looks like an xfs_repair -L has made the file system readable again - haven't yet checked the data but hopefully all good.

 

 

Edited by ajburnet

Archived

This topic is now archived and is closed to further replies.

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.