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.

Unclean Shutdown followed by failed drive followed by zfs scrub

Featured Replies

This morning I was informed of an unclean shutdown, I looked at the array (all zfs formatted) and all seemed fine, so i started the array. I went to get coffee an came back to hundreds of thousands of errors corrected during parity sync. One of my drives showed as "Device Disabled, contents emulated". I examined the zpool status and (my mistake) issued a scrub cause I thought the drive was online but just needed a scrub to clear errors. a few minutes later I figured out it was using the entire array emulation to 'scrub' the disk which didnt make sense to me, and cancelled that...

At this point I decided to stop and seek advice. Specific steps to restore the array with as little loss as possible. I have a new hard drive arriving tommorow. But I am curious the 'order of operations' of steps I should be taking to get back on track. 

Edited by Cyong

Solved by JorgeB

  • Author

My current thoughts are to replace the drive, let the rebuild occur, then perform a scrub, and use whatever the output is of zpool status -v to identify specific files to delete/restore from backup

 

  • Community Expert

SMART for the disable disk looks fine, but there are HBA related issues logged:

 

Jan 27 02:28:31 UnRaid kernel: mpt3sas_cm0 fault info from func: mpt3sas_base_make_ioc_ready

 

Make sure it's well seated and sufficiently cooled


Also, the emulated disk is mounting, but it's mostly empty, I assume it's expected?

  • Author

Ok, I have ensured the cable are seated. Its a 20tb drive but should have about 17.9 TB of data (according to the Unraid UI)

What steps should I take to repair the zpool status and restore the array health? 

 

run parity check then zfs clear/scrub or reverse?

Edited by Cyong

  • Community Expert
11 hours ago, Cyong said:

Ok, I have ensured the cable are seated.

Not the cable, the HBA.

 

11 hours ago, Cyong said:

Its a 20tb drive but should have about 17.9 TB of data (according to the Unraid UI)

 

Emulated disk11 is 2TB and is basically empty.

Filesystem                                                                     Size  Used Avail Use% Mounted on
disk11                                                                         1.9T   35G  1.8T   2% /mnt/disk11

 

  • Author

Ok, I have ensured the HBA is seated fully. (Didnt feel like it moved)

 

Could that be due to the zfs scrub i cancelled when i was confused why it was using the entire array? 

  • Community Expert
54 minutes ago, Cyong said:

Could that be due to the zfs scrub i cancelled when i was confused why it was using the entire array?

Since the disk is emulated, any i/o will involve all other disks, but that has nothing to do with capacity or used space.

  • Author

hmmm, ok... So what is the path forward then for a disabled disk in the array and the zfs errors on the disk?

 

 pool: disk11
 state: ONLINE
status: One or more devices has experienced an error resulting in data
	corruption.  Applications may be affected.
action: Restore the file in question if possible.  Otherwise restore the
	entire pool from backup.
   see: https://openzfs.github.io/openzfs-docs/msg/ZFS-8000-8A
  scan: scrub canceled on Mon Jan 27 08:50:20 2025
config:

	NAME                  STATE     READ WRITE CKSUM
	disk11                ONLINE       0     0     0
	  /dev/mapper/md11p1  ONLINE       0     0     0

errors: 1 data errors, use '-v' for a list

 

Edited by Cyong

  • Community Expert

Check the output with -v to see the list of corrupt files.

  • Author

Ok, its a replaceable file from backup. What next? 

  • Author

Small update. I followed the instructions to remove the disk from the array, and then start, stop, re-add, let the rebuild occur. However a few hours later the rebuild 'paused' around 12% (interestingly, that would be about 1.8TB...) and the disk was disabled again. I have installed a new hard drive yesterday and it has been building into the array very somethly and should complete sometime later today.

 

I am guessing after it completes I should perform a zfs scrub on that disk, make note of any uncorrectable files, delete them and restore from backup?

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.