FreeBSD kernel and HDD/CF error detection

As lot of you probably know, Juniper routers use modified FreeBSD kernel. According to one Juniper related book:

Code:
The kernel is intelligent enough to recognize storage media problems both with the HDD and compact flash problems.

Is such feature built into FreeBSD kernel? While HDD errors can be detected by SMART data, then CF does not support SMART..I mean how does kernel detect such problems? I guess those are detected if write or read errors to/from certain cluster occur? :OOO
 
SirDice said:
Yes. SMART data is not used. You need to install sysutils/smartmontools if you want those.

Ok, so this means that in rare cases the problem might be with the file system (UFS) not with the physical media itself? And does the FreeBSD kernel write to /var/log/messages file if a read/write error to the file system cluster occurs (correct me if I'm wrong, but technically this should mean if open]/man] system call fails)? :OOO(2)
 
Physical errors (bad sectors for example) would show up like in [thread=21973]this thread[/thread]. SMART reads the drive's parameters and can inform you the drive is likely to fail in the near future.
 
SirDice said:
Physical errors (bad sectors for example) would show up like in [thread=21973]this thread[/thread]. SMART reads the drive's parameters and can inform you the drive is likely to fail in the near future.

Ok ;) So probably there is something listening
Code:
"FAILURE - READ_DMA"
and
Code:
"FAILURE - WRITE_DMA"
errors by kernel.
 
Back
Top