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.

Unmountable drive... next steps

Featured Replies

 

Hi guys,

 

we’ve had a power cut, and on starting my server one of my drives is now unmountable... (i will be investing in a UPS as soon as possible). There are some files on here that i dont have backed up, but they are not as important.

 

i have started in maintenance mode and ran xfs repair with -n option.

 

phase 1 states find and verify superblock... and nothing else. Phase 2 gives an alert saying that the filesystem has metadata changes in a log which is being ignored.

 

after that several folders and files are listed as referencing non-existent inode.

 

now are these the only files it can find or the only ones it has an issue with?

 

Thanks in advance

M0zz

Edited by M0zza

  • Community Expert
8 hours ago, M0zza said:

and ran xfs repair with -n option.

run it without -n

  • Author

 

So just run without the -n and i can expect to lose just those mentioned in the -n verbage?

 

or should i expect total annihilation of disc?

 

documentation on this tool i have found seems to assume some preknowledge.

  • Community Expert

You might not lose anything, you might lose some or a lot, depends on how corrupt the filesystem is, most times there is no significant data loss, and the dry run output most times doesn't mean much.

  • Author

 

Well then... when i get home from work i will run xfs_repair and update the post on how it went.

 

 

  • Author

 

Right. Well it is now the weekend and I have had a chance to look into this...

 

tried to run xfs-repair with no options and got the following...

 

ERROR: The filesystem has valuable metadata changes in a log which needs to be replayed. Mount the filesystem to replay the log, and unmount it before re-running xfs_repair. If you are unable to mount the filesystem, then use the -L option to destroy the log and attempt to repair.

 

Now the drive is mostly full and had only just started being written to again... is this what i can expect to lose of will the log contain long term data?

  • Community Expert
32 minutes ago, M0zza said:

Now the drive is mostly full and had only just started being written to again... is this what i can expect to lose of will the log contain long term data?

Nearly always using the -L option causes absolutely no data loss at all.   In the worst case it is only likely to affect the last file that was written.

  • Author

Corking!

 

doing now.

  • Author

Bollox!

 

ran with -L and ended with 

 

’xfs_repair: phase6.c:1376: longform_dir2_rebuild: assertion ‘done’ failed.’

  • Author

So...

 

nuke it from orbit?

  • Community Expert

Which version of Unraid? You may have a version that doesn't have the most recent version of xfs_repair.

  • Author

I am running 6.6.7...

 

does 6.7 have a newer version?

  • Community Expert
13 hours ago, M0zza said:

’xfs_repair: phase6.c:1376: longform_dir2_rebuild: assertion ‘done’ failed.’

That's a xfs bug, you'd need to update to v6.7rc or manually update xfsprogs.

  • Author

Updated to 6.7 and rerun xfs_repair.

 

it looks like not much if anything was lost, but i do have a bit of tidying up to do as a hundred or so files and folders in lost+found.

 

Thank you all for your help with this. Couldnt have done it with out you.

 

M0zz

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.