ZFS bug or metadata corruption?

Hello

My ZFS pool has become degraded and im having difficulties recovering.

Code:
        NAME        STATE     READ WRITE CKSUM
        storage     DEGRADED     0     0     0
          raidz1    DEGRADED     0     0     0
            ad2     ONLINE       0     0     0
            ad14    ONLINE       0     0     0
            ad14    FAULTED      0   389     0  corrupted data
          raidz1    ONLINE       0     0     0
            ad6     ONLINE       0     0     0
            ad12    ONLINE       0     0     0
            ad20    ONLINE       0     0     0

Before i had an ad18 device in the raidz1 now containing two ad14 devices.

zpool replace ad18 ad10 complains about device not in pool.

I added a spare and tried replacing ad14, hoping it would replace the faulted device, no such luck.

Code:
        NAME        STATE     READ WRITE CKSUM
        storage     DEGRADED     0     0     0
          raidz1    DEGRADED     0     0     0
            ad2     ONLINE       0     0     0
            spare   ONLINE       0     0     0
              ad14  ONLINE       0     0     0
              ad4   ONLINE       0     0     0
            ad14    FAULTED      0   389     0  corrupted data
          raidz1    ONLINE       0     0     0
            ad6     ONLINE       0     0     0
            ad12    ONLINE       0     0     0
            ad20    ONLINE       0     0     0
        spares
          ad4       INUSE     currently in use

If i pull the faulted device from the system there is no change in the pool.

Why did this happen and can i recover?
 
The solution is to add a spare and mirror the duplicate device, drop the original, add a second drive and zpool replace the duplicate ghost device. Takes a few hours but the array is now ONLINE.
 
did you offline the disk first?
afaik:
1. offline faulty disk
Code:
zpool offline disk
2. physically replace disk and do a
Code:
zpool replace disk
3. the resilvering proces should start.
 
Back
Top