Endless Data Loss
freebsd at edvax.de
Sat Jul 25 13:31:26 UTC 2015
On Sat, 25 Jul 2015 09:38:33 +0100, Matthew Seaman wrote:
> On 25/07/2015 08:33, CK wrote:
> > In the last 2 years, I have upgraded from 4.11 to 9.2 then 9.3
> > releases, and since upgrading to the 9 series, I have experienced
> > endless data loss - every time I reboot my computer, massive numbers
> > of files vanish - 20 - 50 - a lot. And it's driving me crazy.
> > I don't expect to get any fixes here, but something is wrong
> > with the code - it's happening on ATA drives, USB flash drives,
> > a few of each kind. So, it's definitely not a hardware problem.
> This is all on the same machine? If it's been in service since 4.11
> days, then it is ancient in computing terms. Don't disregard hardware
> problems so quickly. It's not just hard drives that can have problems:
> disk controllers, disk cabling, even failing power supplies can result
> in these sort of symptoms.
Still software problems aren't out of scope as well. In case the
problem originates from damaged file systems - maybe when the
system continues to run background_fsck and starts to work in
an "unclean state" -, so running fsck _at least two times_ on
all (!) involved media (unmounted!) should be a step taken,
if possible from a live system (CD or DVD).
I'm mentioning this because I've had encountered this strange
behaviour in the past, too.
Additionally, using smartctl to examine SMART-capable disks is
But as you said: Checking cables, power supply, heat, RAM is
important here. The observed loss of files could be a result
from either (or many at once).
However, the loss of files should be "covered" by some kind of
message, usually from fsck "salvaging" inodes. If this is not
the case, I assume background_fsck trying (and failing!) to
repair a damaged file system could be the reason. This is
because background_fsck cannot do all of the things that a
regular fsck can do.
Idea for solution: Add
to /etc/rc.conf and reboot. Let it do its work. Having to wait
some minutes vs. losing files... well, the choice is easy. :-)
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
More information about the freebsd-questions