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 all seem to have bad superblocks

Featured Replies

I had an issue where a drive was corrupted, and the xfs_repair tool was unable to find any suitable superblocks.

 

Now I'd assume that a "good" disk would return something about good superblocks found and good magic numbers when you initially run it (xfs_repair -n /dev/sdX).  However all of mine are returning bad superblocks and bad magic numbers.

 

My question is two-fold:

1.  Does it matter?

2.  Is there some routine maintenance I should be running?

  • Author

Nevermind I'm an idiot

29 minutes ago, whoopn said:

Nevermind I'm an idiot

 

Don't be so hard on yourself. Was it the -n flag that was tripped you up? In case anyone else stumbles across this thread with a similar problem, the -n flag means no-modify, so to actually make the repair you have to run the command without it. The other thing I would say is that /dev/sdX if the identifier for the actual disk. In a parity protected array you should be using /dev/mdX in order to maintain parity.

xfs_repair /dev/mdX

 

  • Community Expert
35 minutes ago, John_M said:

The other thing I would say is that /dev/sdX if the identifier for the actual disk. In a parity protected array you should be using /dev/mdX in order to maintain parity.

 

And if you did repair the sdX device and it was part of the array, then you have invalidated parity so you will have to resync.

1 hour ago, whoopn said:

However all of mine are returning bad superblocks and bad magic numbers.

The above sentence seems to indicate that the tool was run on disks that aren't using XFS.

  • Community Expert
2 hours ago, whoopn said:

I had an issue where a drive was corrupted, and the xfs_repair tool was unable to find any suitable superblocks.

 

Now I'd assume that a "good" disk would return something about good superblocks found and good magic numbers when you initially run it (xfs_repair -n /dev/sdX).  However all of mine are returning bad superblocks and bad magic numbers.

 

My question is two-fold:

1.  Does it matter?

2.  Is there some routine maintenance I should be running?

If you use the /dev/sdX identifiers then you need to also include the partition number (i.e. /dev/sdX1).    However as was mentioned this invalidates parity so you would normally put the array into Maintenance mode and use /dev/mdX where X is the disk number.   Using the /dev/mdX names means that you do not need to include the partition and it maintains valid parity.

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.