1

I keep my important data on 2 drives that are mirrored (I think that is the correct terminology) in a machine running Ubuntu 12.04 LTS. Today, I was unable to access any of the data and 'sudo zpool status -x' returns:

pool: data
state: ONLINE
status: One or more devices has experienced an error resulting in data
        corruption.  Applications may be affected.
action: Restore the file in question if possible.  Otherwise restore the
        entire pool from backup.
        see: http://zfsonlinux.org/msg/ZFS-8000-8A
scan: none requested
config:

NAME                                     STATE     READ WRITE CKSUM
data                                     ONLINE       0     0     0
  mirror-0                               ONLINE       0     0     0
    scsi-SATA_TOSHIBA_DT01ACA_Y3F4U6EGS  ONLINE       0     0     0
    scsi-SATA_TOSHIBA_DT01ACA_Y3FMSUNAS  ONLINE       0     0     0

errors: 1 data errors, use '-v' for a list

When I run 'sudo zpool status -v' it shows which file is 'corrupted'. Fortunately, I do not care about this particular file, so I have no need to restore it. From this post:

What does a permanent ZFS error indicate?

it appears that I should run 'sudo zpool scrub', but I hesitate to do so since that particular post involved a zpool without redundancy. Will scrubbing the zpool bring the files back online, or will I mess up the whole thing?

USD Matt
  • 5,411
  • 18
  • 26

2 Answers2

1

zpool clear data and/or zpool scrub data

I do not know what happened to your disks. How did they lose connection or generate the error? Loose cable? Drive failure?

ewwhite
  • 201,205
0

According to the status output, ZFS thinks the pool is fine so you'd normally expect data to be accessible.

Do the ZFS file systems show as mounted in mount output? The pool is imported but it's still possible for the file systems to be unmounted.

To add, if verbose output lists the corrupted file it may be worth deleting it, running clear to clear the error, then scrub which should hopefully complete without any errors if that's the only corrupt data.

USD Matt
  • 5,411
  • 18
  • 26