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.

Can not mount XFS drive anymore (error -117)

Featured Replies

I have one 18TB drive in XFS format as backup and from time to time I run rsync command to backup important data from my array.

Today I can not mount this drive, each time I see

Quote

Device '/dev/sdf' failed to mount. Check the syslog for details.

In syslog

Nov  4 22:16:03 BlackBox unassigned.devices: Mounting partition 'sdf1' at mountpoint '/mnt/disks/backup'...
Nov  4 22:16:03 BlackBox unassigned.devices: Mount cmd: /sbin/mount -t 'xfs' -o rw,relatime '/dev/sdf1' '/mnt/disks/backup'
Nov  4 22:16:03 BlackBox kernel: XFS (sdf1): Mounting V5 Filesystem
Nov  4 22:16:03 BlackBox kernel: XFS (sdf1): Log inconsistent (didn't find previous header)
Nov  4 22:16:03 BlackBox kernel: XFS (sdf1): failed to find log head
Nov  4 22:16:03 BlackBox kernel: XFS (sdf1): log mount/recovery failed: error -117
Nov  4 22:16:03 BlackBox kernel: XFS (sdf1): log mount failed
Nov  4 22:16:05 BlackBox unassigned.devices: Mount of 'sdf1' failed: 'mount: /mnt/disks/backup: mount(2) system call failed: Structure needs cleaning.        dmesg(1) may have more information after failed mount system call. '
Nov  4 22:16:05 BlackBox unassigned.devices: Partition 'backup' cannot be mounted.

I have tried manually run next command:  

xfs_repair - n /dev/sdf1 

and then  

xfs_repair /dev/sdf1

Output

Phase 1 - find and verify superblock...
Phase 2 - using internal log
        - zero log...
Log inconsistent (didn't find previous header)
failed to find log head
zero_log: cannot find log head/tail (xlog_find_tail=5)
ERROR: The log head and/or tail cannot be discovered. Attempt to mount the
filesystem to replay the log or use the -L option to destroy the log and
attempt a repair.

 

What should I do and how to solve it? And why did it happen? 

Maybe easiest would be - just format this drive and create FS from scratch? How would unraid works with EXT4? Because honestly on EXT4 I did not have such issues.

 

Solved by d3m3zs

  • Author
  • Solution

Ok, problem solved:

  • executed xfs_repair -L /dev/sdf1
  • repair successfully finished and disk is empty
  • formatted drive to BTRFS and forgot about XFS on non-Array device. 

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.