Clear zpool errors by zpool scrub(solaris)

Zpool Scrubs have always solved “permanent errors” in zpool storage.

EDIT: Started a scrub and immediately cancelled it and it cleared the error. 

[root @ soltest]~ # zpool status -v pool
pool: pool
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://www.sun.com/msg/ZFS-8000-8A
scan: scrub repaired 0 in 11h42m with 0 errors on Mon Mar 8 04:42:24 2021
config:    
NAME           STATE     READ WRITE CKSUM
    pool           ONLINE       0     0     0
      emcpower58c  ONLINE       0     0     0
      emcpower59c  ONLINE       0     0     0
      emcpower60c  ONLINE       0     0     0
      emcpower61c  ONLINE       0     0     0
      emcpower62c  ONLINE       0     0     0
      emcpower63c  ONLINE       0     0     0
      emcpower64c  ONLINE       0     0     0
      emcpower65c  ONLINE       0     0     0
      emcpower66c  ONLINE       0     0     0
      emcpower67c  ONLINE       0     0     0
      emcpower68c  ONLINE       0     0     0
      emcpower69c  ONLINE       0     0     0
errors: Permanent errors have been detected in the following files:
 
  pool/file1:<0x13cf08d>
    <0x1019>:<0x13cf08d>
    <0x1144>:<0x13cf08d>
    <0x12e2>:<0x13cf08d>
[root @ soltest]~ # zpool clear pool
[root @ soltest]~ # zpool scrub pool
[root @ soltest]~ # zpool scrub -s pool
[root @ soltest]~ # zpool status -v pool
pool: pool
state: ONLINE
scan: scrub canceled on Mon Mar 8 10:54:40 2021
config:  
  NAME           STATE     READ WRITE CKSUM
    pool           ONLINE       0     0     0
      emcpower58c  ONLINE       0     0     0
      emcpower59c  ONLINE       0     0     0
      emcpower60c  ONLINE       0     0     0
      emcpower61c  ONLINE       0     0     0
      emcpower62c  ONLINE       0     0     0
      emcpower63c  ONLINE       0     0     0
      emcpower64c  ONLINE       0     0     0
      emcpower65c  ONLINE       0     0     0
      emcpower66c  ONLINE       0     0     0
      emcpower67c  ONLINE       0     0     0
      emcpower68c  ONLINE       0     0     0
      emcpower69c  ONLINE       0     0     0
errors: No known data errors
[root @ soltest]~ #

Leave a Comment