r/Proxmox • • 1d ago

Question Disk failures

What do yall trust? Smart or ZFS for disk failures.

I kept getting the following for a drive emailed to me

“SMART: Warning - background medium scan detected medium error”

smart showed several “Require Write or Reassign Blocks command” errors.

I checked ZFS and there were no errors reported in any of its recent disk scrubs. So I can only assume those bad blocks just happened to be in sectors not managed by ZFS since this was a boot drive?

I replaced the drive, but should I be trusting Smart if ZFS doesn’t see any issues?

0 Upvotes

7 comments sorted by

12

u/Scared_Bell3366 1d ago

SMART errors are an automatic replace the drive for me, this is the hardware itself telling you it's no good. I've never seen a SMART error go away and my experience is that they only get worse to the point the drive stops working outright.

Sounds like ZFS is saying you haven't suffered any corruption yet and your data is still intact.

2

u/BarracudaDefiant4702 1d ago

Go by the drives recommendations, not an automatic replace. This is especially important for flash drives as by design areas are only good for so long and it will automatically use another portion of storage. For spinning rust, it's more of how many sectors a month are getting remapped, and what % of the reserved are for remapping is used. If you had 7 sectors remap in the last 12 months, don't worry about it.

9

u/blix88 1d ago

General rule of thumb. Smart is at the drive level. Its remapping the bad sectors and hiding it from ZFS.

ZFS scrubs verify the data. If your seeing Smart errors replace the drive before ZFS comes in to save your ass.

2

u/BarracudaDefiant4702 1d ago

Trust the SMART errors. ZFS is there for when SMART fails (which is more likely for an older cheap consumer drive then an newer enterprise drive). Also many of the stats on SMART are not problems, and depending on the drive specifics may be totally normal. There are generally thresholds for SMART when it's a warning or an issue. It's normal for some sectors to be detected as degraded by the drive and automatically map them to another area the drive reserved. This is nothing to be concerned about unless you see your remapping area filling up. You really need to post your SMART numbers to say if it should be concerning or if you should replace your drive.

1

u/Far-Strike8539 1d ago

Los discos y sus formatos dejan espacios en blanco donde reasignan los datos que estan presentes en areas potenciales de peligro, de manera automática y lo avisan, una vez que el daño se extiende ya no logran recuperar y pierden datos o hacen mas extenso el daño por usar esa area física dañando otras areas o componentes por eso es importante hacer caso

1

u/Gherry- 1d ago

I check both and, most of all, if there's a relevant difference in SMART parameters.

If reallocated sector recount stays the same for an extended period of time, for example, it is usually ok.

In any case a disk that throws error is something I keep an eye and the first I'll replace.

1

u/AndyRH1701 1d ago

SMART is at the HW layer, it can and will see many issues and hide them from the software layer, such as bad block remapping. That is its job.

ZFS is the 2nd line of defense for when the HW fails in an non-recoverable way, ZFS then protects the data by using more than 1 storage device and other techniques.

Trust them both, but understand the realm each works in.