Unable to import zpool after failed drive

eringuet

Cadet
Joined
Feb 11, 2021
Messages
3
Hello, I'm new member and user here.

I'm facing an issue with a pool in my TrueNAS server. I had a failed drive, did not "offline" it and replaced it with a new drive. Now my pool is both offline and degraded. I am unable to import it to offline the old drive and import the new one.

I'm pretty new to zfs but being unable to import the pool leaves me puzzled.

Here's what I see:

Code:
# zpool import
   pool: storage0
     id: 252161575213656862
  state: DEGRADED
status: One or more devices are missing from the system.
 action: The pool can be imported despite missing or damaged devices.  The
        fault tolerance of the pool may be compromised if imported.
   see: https://openzfs.github.io/openzfs-docs/msg/ZFS-8000-2Q
 config:

        storage0                                        DEGRADED
          raidz1-0                                      DEGRADED
            gptid/edd2599f-3571-11eb-99bc-5735c53526b1  ONLINE
            gptid/ee155da0-3571-11eb-99bc-5735c53526b1  ONLINE
            gptid/2dc1bda0-3a57-11eb-9cbb-9185ddd3ec9a  UNAVAIL  cannot open
            gptid/ee483e47-3571-11eb-99bc-5735c53526b1  ONLINE
# zpool import -f storage0
internal error: cannot import 'storage0': Integrity check failed
Abort trap (core dumped)


I'm not sure what to do next and guidance would be appreciated. Thanks.
 

eringuet

Cadet
Joined
Feb 11, 2021
Messages
3
I've put the old drive back now the pool is online although I still can't import it:

Code:
# zpool import
   pool: storage0
     id: 252161575213656862
  state: ONLINE
status: One or more devices contains corrupted data.
 action: The pool can be imported using its name or numeric identifier.
   see: https://openzfs.github.io/openzfs-docs/msg/ZFS-8000-4J
 config:

        storage0                                        ONLINE
          raidz1-0                                      ONLINE
            gptid/edd2599f-3571-11eb-99bc-5735c53526b1  ONLINE
            gptid/ee155da0-3571-11eb-99bc-5735c53526b1  ONLINE
            da0                                         UNAVAIL  corrupted data
            gptid/ee483e47-3571-11eb-99bc-5735c53526b1  ONLINE

# zpool import -f storage0
internal error: cannot import 'storage0': Integrity check failed
Abort trap (core dumped)
 

eringuet

Cadet
Joined
Feb 11, 2021
Messages
3
Well, I tried many thing to attempt to revert to a previous state but unsuccessfully.

Last try was to try an older txg, which also didn't work. I think I will restore my last backup now.

Code:
# zpool import -N -o readonly=on -f -R /tmp/storage0/ -F -T 1184150 storage0
cannot import 'storage0': one or more devices is currently unavailable
 
Top