I am running FreeBSD 9-STABLE in my home NAS using a pair of 8 GB USB flash drives in a gmirror array (gm0). Only the root partition is running from the flash drives anymore as the other system partitions are mounted from ZFS.
I was about to do some updating to the system, so I was backing up the root partition before starting. I use dump to backup the partition to a file. When I try to do that, this is the reponse:
According to some other threads out there, dump sometimes throws a seq fault when the filesystem is corrupt. So I ran fsck on the root partition:
So I rebooted into single-user mode and re-ran
I have tried to find out what those fsck errors mean, but my searches have come up short. I am at a bit of a loss. My only guess is that perhaps one or both of the USB flash drives is failing. But I would think that would cause the gmirror to degrade, which it hasn't. Things seem to be working just fine otherwise, too.
So is it possible to test each individual flash drive for errors? Or any other ideas? Thanks.
I was about to do some updating to the system, so I was backing up the root partition before starting. I use dump to backup the partition to a file. When I try to do that, this is the reponse:
Code:
$ sudo dump -C16 -b64 -0uanL -h0 -f /storage/dumps/2013-07-08/root.dump /
DUMP: Date of this level 0 dump: Mon Jul 8 23:06:51 2013
DUMP: Date of last level 0 dump: the epoch
DUMP: Dumping snapshot of /dev/mirror/gm0s1a (/) to /storage/dumps/2013-07-08/root.dump
DUMP: mapping (Pass I) [regular files]
DUMP: Cache 16 MB, blocksize = 65536
DUMP: mapping (Pass II) [directories]
DUMP: estimated 548458 tape blocks.
DUMP: dumping (Pass III) [directories]
DUMP: dumping (Pass IV) [regular files]
DUMP: SIGSEGV: ABORTING!
DUMP: SIGSEGV: ABORTING!
DUMP: DUMP: SIGSEGV: ABORTING!
SIGSEGV: ABORTING!
Segmentation fault: 11
DUMP: SIGSEGV: ABORTING!
According to some other threads out there, dump sometimes throws a seq fault when the filesystem is corrupt. So I ran fsck on the root partition:
Code:
$ sudo fsck /
** /dev/mirror/gm0s1a (NO WRITE)
** Last Mounted on /
** Root file system
** Phase 1 - Check Blocks and Sizes
PARTIALLY TRUNCATED INODE I=65851
SALVAGE? no
1236264795632723608 BAD I=65851
UNEXPECTED SOFT UPDATE INCONSISTENCY
360287970189788832 BAD I=65851
UNEXPECTED SOFT UPDATE INCONSISTENCY
PARTIALLY TRUNCATED INODE I=65865
SALVAGE? no
PARTIALLY TRUNCATED INODE I=65973
SALVAGE? no
4650529635141047456 BAD I=65973
UNEXPECTED SOFT UPDATE INCONSISTENCY
1166749237749415116 BAD I=65973
UNEXPECTED SOFT UPDATE INCONSISTENCY
4510269711728104 BAD I=65973
UNEXPECTED SOFT UPDATE INCONSISTENCY
146437369587973241 BAD I=65973
UNEXPECTED SOFT UPDATE INCONSISTENCY
1162069441433969920 BAD I=65973
UNEXPECTED SOFT UPDATE INCONSISTENCY
725097209535798568 BAD I=65973
UNEXPECTED SOFT UPDATE INCONSISTENCY
38301092416731416 BAD I=65973
UNEXPECTED SOFT UPDATE INCONSISTENCY
18349182581852 BAD I=65973
UNEXPECTED SOFT UPDATE INCONSISTENCY
180291319938411812 BAD I=65973
UNEXPECTED SOFT UPDATE INCONSISTENCY
-9205076122431751160 BAD I=65973
UNEXPECTED SOFT UPDATE INCONSISTENCY
1308317690573782384 BAD I=65973
UNEXPECTED SOFT UPDATE INCONSISTENCY
EXCESSIVE BAD BLKS I=65973
CONTINUE? [yn] y
INCORRECT BLOCK COUNT I=65973 (2048 should be 1472)
CORRECT? no
PARTIALLY TRUNCATED INODE I=65974
SALVAGE? no
PARTIALLY TRUNCATED INODE I=65976
SALVAGE? no
140737488518864 BAD I=65976
UNEXPECTED SOFT UPDATE INCONSISTENCY
140771848779992 BAD I=65976
UNEXPECTED SOFT UPDATE INCONSISTENCY
17180032736 BAD I=65976
UNEXPECTED SOFT UPDATE INCONSISTENCY
281509336608488 BAD I=65976
UNEXPECTED SOFT UPDATE INCONSISTENCY
2252968044953328 BAD I=65976
UNEXPECTED SOFT UPDATE INCONSISTENCY
2260730 BAD I=65976
UNEXPECTED SOFT UPDATE INCONSISTENCY
288230444871351552 BAD I=65976
UNEXPECTED SOFT UPDATE INCONSISTENCY
4755803405526527816 BAD I=65976
UNEXPECTED SOFT UPDATE INCONSISTENCY
49539596035440400 BAD I=65976
UNEXPECTED SOFT UPDATE INCONSISTENCY
PARTIALLY TRUNCATED INODE I=65977
SALVAGE? no
5333537402025694976 BAD I=65977
UNEXPECTED SOFT UPDATE INCONSISTENCY
324371325504351618 BAD I=65977
UNEXPECTED SOFT UPDATE INCONSISTENCY
2018880919725301664 BAD I=65977
UNEXPECTED SOFT UPDATE INCONSISTENCY
3458840380744691642 BAD I=65977
UNEXPECTED SOFT UPDATE INCONSISTENCY
14878907985889 BAD I=65977
UNEXPECTED SOFT UPDATE INCONSISTENCY
1297036732746856297 BAD I=65977
UNEXPECTED SOFT UPDATE INCONSISTENCY
5791629155191908792 BAD I=65977
UNEXPECTED SOFT UPDATE INCONSISTENCY
86839842023046104 BAD I=65977
UNEXPECTED SOFT UPDATE INCONSISTENCY
522606672775106376 BAD I=65977
UNEXPECTED SOFT UPDATE INCONSISTENCY
-9205335570266261048 BAD I=65977
UNEXPECTED SOFT UPDATE INCONSISTENCY
-9184491092512703024 BAD I=65977
UNEXPECTED SOFT UPDATE INCONSISTENCY
EXCESSIVE BAD BLKS I=65977
CONTINUE? [yn] n
So I rebooted into single-user mode and re-ran
fsck -y / in an attempt to repair the errors. I can't copy and paste that text, but the same errors appear and fsck works through it, at the end marking the filesystem as clean. But after rebooting and running fsck again, the same errors recurred.I have tried to find out what those fsck errors mean, but my searches have come up short. I am at a bit of a loss. My only guess is that perhaps one or both of the USB flash drives is failing. But I would think that would cause the gmirror to degrade, which it hasn't. Things seem to be working just fine otherwise, too.
So is it possible to test each individual flash drive for errors? Or any other ideas? Thanks.