Register for the iXsystems Community to get an ad-free experience and exclusive discounts in our eBay Store.

Is there a way to tell if a scrub is needed before attempting to OFFLINE a disk?

Western Digital Drives - The Preferred Drives of FreeNAS and TrueNAS CORE
Status
Not open for further replies.

Alan W. Smtih

Member
Joined
Aug 30, 2014
Messages
54
I'm doing a read-thru of Replacing a Failed Drive for my FreeNAS 9.10 system before actually going through the process.

There is a note after the first step (which is to OFFLINE the disk) that says:

> If the process of changing the disk’s status to OFFLINE fails with a “disk offline failed - no valid replicas” message, the ZFS volume must be scrubbed first with the Scrub Volume button in Storage → Volumes → View Volumes. After the scrub completes, try to Offline the disk again before proceeding.

That "disk offline failed..." message obviously works as an indication that the scrub is needed. But, I like trying to avoid any messages with "failed" in them.

So, I'm wondering if there is a way to tell prior to attempting to OFFLINE a disk if a scrub is required.

Is there some way to figure that out?
 

danb35

Wizened Sage
Joined
Aug 16, 2011
Messages
11,941

Ericloewe

Not-very-passive-but-aggressive
Moderator
Joined
Feb 15, 2014
Messages
17,019
That warning applies to a really nasty edge case that you want to stay well away from: Besides the failing drive you want to replace, another drive is having trouble and is missing some data.

Come to think of it, that warning doesn't make much sense taken at face value. It only makes sense if corruption was detected but not yet fixed - when does that ever happen, if redundancy is available? I can't really come up with a recoverable situation that would cause this error under these conditions...
 

Ericloewe

Not-very-passive-but-aggressive
Moderator
Joined
Feb 15, 2014
Messages
17,019
I guess the tl;dr of this warning is "Keep your pools in non-horrible condition". Scrub regularly to a decent schedule (every two weeks, for instance), don't let failures accumulate, etc.
 
Status
Not open for further replies.
Top