I have a single-disk zpool that was temporarily removed without "zpool export" to make space for some reallocation to a new disk. The system was cleanly shut down before removal, but not exported. This disk was using a device name such as "c11t0d0".

Subsequently, while writing to a new pool in the same disk position (but a new disk and pool name), the system started to generate data corruption errors for the removed pool, such as "pool10a: disk c11t0d0: corrupt data" (wording may not match). So I tried to make the system stop trying to access this pool, with "zpool destroy -f pool10a" and this stopped the errors.

The problem, is that now the pool will not re-import because zpool import says:

   pool: pool10a
     id: 11135625420108541132
  state: UNAVAIL
 status: One or more devices contains corrupted data.
 action: The pool cannot be imported due to damaged devices or data.
   see: http://illumos.org/msg/ZFS-8000-5E
 config:

        pool10a                  UNAVAIL  insufficient replicas
          c1t5000CCA266D6BC8Bd0  UNAVAIL  corrupted data

It seems unlikely the disk is actually corrupt because it was physically detached. At least unless the system has written some cached data after reattachment, which also seems unlikely because it's not imported.

Is this an issue with zpool.cache or some other saved state, and if so is this fixable? There have been other changes since this pool was last mounted so I don't think I can just use an old cache file. Are there other options, such as rebooting with the cache file nuked?

If this is not fixable I will nuke and re-create, but I would prefer to get the disk back as-is if this is possible.

Thanks,

Hugh.

------------------------------------------
illumos: illumos-discuss
Permalink: 
https://illumos.topicbox.com/groups/discuss/Td78764409f7aa671-M4674bda19413ad63fdea20e4
Delivery options: https://illumos.topicbox.com/groups/discuss/subscription

Reply via email to