Unable to import zpool

penflame

Cadet
Joined
Aug 6, 2020
Messages
9
Hi,
I trie to restore my data but not succes. I think it's dead but i ask for help.
My Config: 6 * 2 To HDD RAIDZ1 + 2 * 256Go SSD CACHE + 1 * 256Go LOG
I tried Plex with Windows 10 and i have formated on SSD Disk Cache accidental.
Now this is my status:
root@truenas[~]# zpool import -f
pool: TANK_SATA
id: 1991189862458287439
state: UNAVAIL
status: The pool was last accessed by another system.
action: The pool cannot be imported due to damaged devices or data.
see: https://openzfs.github.io/openzfs-docs/msg/ZFS-8000-EY
config:

TANK_SATA UNAVAIL insufficient replicas
raidz1-0 ONLINE
e2785f12-6367-48d5-91e5-8144527c3191 ONLINE
5eb65245-c1b4-494c-b2e1-2f8291363195 ONLINE
f261db7d-b4b3-45d5-a6f7-388f2636a62a ONLINE
2cfe60a0-f1eb-44dc-97e8-1bc13ebf1014 ONLINE
7e068a46-6c08-425d-822f-6b6e47176f43 ONLINE
31a9c2a7-a916-485d-85c7-5c6cb94d1636 ONLINE
9bd83210-630a-483f-84d1-391e9725693d ONLINE
6346765b-4a5a-4282-afd1-744acc2014c4 UNAVAIL
logs
2a51c1c0-ab9e-41ce-bc8e-a3d9d7833a67 ONLINE

root@truenas[~]# zdb -e TANK_SATA

Configuration for import:
vdev_children: 5
hole_array[0]: 2
version: 5000
pool_guid: 1991189862458287439
name: 'TANK_SATA'
state: 0
hostid: 1254805077
hostname: 'truenas.local'
vdev_tree:
type: 'root'
id: 0
guid: 1991189862458287439
children[0]:
type: 'raidz'
id: 0
guid: 14217184691923702593
nparity: 1
metaslab_array: 91
metaslab_shift: 34
ashift: 12
asize: 11989479849984
is_log: 0
create_txg: 4
children[0]:
type: 'disk'
id: 0
guid: 14233233890535981516
DTL: 2644
create_txg: 4
path: '/dev/disk/by-partuuid/e2785f12-6367-48d5-91e5-8144527c3191'
children[1]:
type: 'disk'
id: 1
guid: 13883150583269260457
DTL: 2643
create_txg: 4
path: '/dev/disk/by-partuuid/5eb65245-c1b4-494c-b2e1-2f8291363195'
children[2]:
type: 'disk'
id: 2
guid: 11520008648977451231
DTL: 2642
create_txg: 4
path: '/dev/disk/by-partuuid/f261db7d-b4b3-45d5-a6f7-388f2636a62a'
children[3]:
type: 'disk'
id: 3
guid: 12447780183188737753
DTL: 2641
create_txg: 4
path: '/dev/disk/by-partuuid/2cfe60a0-f1eb-44dc-97e8-1bc13ebf1014'
children[4]:
type: 'disk'
id: 4
guid: 1415161800621811303
DTL: 2640
create_txg: 4
path: '/dev/disk/by-partuuid/7e068a46-6c08-425d-822f-6b6e47176f43'
children[5]:
type: 'disk'
id: 5
guid: 7882413165494259863
DTL: 2638
create_txg: 4
path: '/dev/disk/by-partuuid/31a9c2a7-a916-485d-85c7-5c6cb94d1636'
children[1]:
type: 'disk'
id: 1
guid: 14140749245659671873
metaslab_array: 77
metaslab_shift: 31
ashift: 12
asize: 256055705600
is_log: 0
DTL: 2636
create_txg: 4
path: '/dev/disk/by-partuuid/9bd83210-630a-483f-84d1-391e9725693d'
children[2]:
type: 'hole'
id: 2
guid: 0
children[3]:
type: 'missing'
id: 3
guid: 0
children[4]:
type: 'disk'
id: 4
guid: 12183800703912373315
metaslab_array: 40819
metaslab_shift: 31
ashift: 12
asize: 250054443008
is_log: 1
DTL: 43845
create_txg: 2338259
path: '/dev/disk/by-partuuid/2a51c1c0-ab9e-41ce-bc8e-a3d9d7833a67'
load-policy:
load-request-txg: 18446744073709551615
load-rewind-policy: 2
zdb: can't open 'TANK_SATA': No such device or address

ZFS_DBGMSG(zdb) START:
spa.c:6084:spa_import(): spa_import: importing TANK_SATA
spa_misc.c:418:spa_load_note(): spa_load(TANK_SATA, config trusted): LOADING
vdev.c:152:vdev_dbgmsg(): disk vdev '/dev/disk/by-partuuid/e2785f12-6367-48d5-91e5-8144527c3191': best uberblock found for spa TANK_SATA. txg 5842179
spa_misc.c:418:spa_load_note(): spa_load(TANK_SATA, config untrusted): using uberblock with txg=5842179
vdev.c:152:vdev_dbgmsg(): disk vdev '/dev/disk/by-partuuid/6346765b-4a5a-4282-afd1-744acc2014c4': vdev_validate: config guid doesn't match label guid
vdev.c:152:vdev_dbgmsg(): disk vdev '/dev/disk/by-partuuid/6346765b-4a5a-4282-afd1-744acc2014c4': CONFIG: guid 16135456112045096637, top_guid 16135456112045096637
vdev.c:152:vdev_dbgmsg(): disk vdev '/dev/disk/by-partuuid/6346765b-4a5a-4282-afd1-744acc2014c4': LABEL: guid 14140749245659671873, top_guid 14140749245659671873, aux_guid 0
spa_misc.c:403:spa_load_failed(): spa_load(TANK_SATA, config trusted): FAILED: cannot open vdev tree after invalidating some vdevs
vdev.c:204:vdev_dbgmsg_print_tree(): vdev 0: root, guid: 1991189862458287439, path: N/A, can't open
vdev.c:204:vdev_dbgmsg_print_tree(): vdev 0: raidz, guid: 14217184691923702593, path: N/A, healthy
vdev.c:204:vdev_dbgmsg_print_tree(): vdev 0: disk, guid: 14233233890535981516, path: /dev/disk/by-partuuid/e2785f12-6367-48d5-91e5-8144527c3191, healthy
vdev.c:204:vdev_dbgmsg_print_tree(): vdev 1: disk, guid: 13883150583269260457, path: /dev/disk/by-partuuid/5eb65245-c1b4-494c-b2e1-2f8291363195, healthy
vdev.c:204:vdev_dbgmsg_print_tree(): vdev 2: disk, guid: 11520008648977451231, path: /dev/disk/by-partuuid/f261db7d-b4b3-45d5-a6f7-388f2636a62a, healthy
vdev.c:204:vdev_dbgmsg_print_tree(): vdev 3: disk, guid: 12447780183188737753, path: /dev/disk/by-partuuid/2cfe60a0-f1eb-44dc-97e8-1bc13ebf1014, healthy
vdev.c:204:vdev_dbgmsg_print_tree(): vdev 4: disk, guid: 1415161800621811303, path: /dev/disk/by-partuuid/7e068a46-6c08-425d-822f-6b6e47176f43, healthy
vdev.c:204:vdev_dbgmsg_print_tree(): vdev 5: disk, guid: 7882413165494259863, path: /dev/disk/by-partuuid/31a9c2a7-a916-485d-85c7-5c6cb94d1636, healthy
vdev.c:204:vdev_dbgmsg_print_tree(): vdev 1: disk, guid: 14140749245659671873, path: /dev/disk/by-partuuid/9bd83210-630a-483f-84d1-391e9725693d, healthy
vdev.c:168:vdev_dbgmsg_print_tree(): vdev 2: hole
vdev.c:204:vdev_dbgmsg_print_tree(): vdev 3: disk, guid: 16135456112045096637, path: /dev/disk/by-partuuid/6346765b-4a5a-4282-afd1-744acc2014c4, can't open
vdev.c:204:vdev_dbgmsg_print_tree(): vdev 4: disk (log), guid: 12183800703912373315, path: /dev/disk/by-partuuid/2a51c1c0-ab9e-41ce-bc8e-a3d9d7833a67, healthy
spa_misc.c:418:spa_load_note(): spa_load(TANK_SATA, config trusted): UNLOADING
ZFS_DBGMSG(zdb) END
 
Joined
Jan 7, 2015
Messages
1,155
I suspect this pool has one dead disk (missing)
dev.c:204:vdev_dbgmsg_print_tree(): vdev 3: disk, guid: 16135456112045096637, path: /dev/disk/by-partuuid/6346765b-4a5a-4282-afd1-744acc2014c4, can't open
and another that has errors and since its a Z1 pool there isnt enough parity to do the import. So this is a nice way of saying you are likely restoring from backup, sorry its not better news. Dont use Z1 unless its not important data.
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,703
You may be able to import the pool with -F (assuming you're prepared to lose the last few transactions to get there.

zpool import -F TANK_SATA
 

penflame

Cadet
Joined
Aug 6, 2020
Messages
9
You may be able to import the pool with -F (assuming you're prepared to lose the last few transactions to get there.

zpool import -F TANK_SATA
I trie -F or -fF or -f -m -F and always error "action: The pool cannot be imported due to damaged devices or data."
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,703

ClassicGOD

Contributor
Joined
Jul 28, 2011
Messages
145
It looks like all the "data" drives are there just the one cache drive is causing problems. I assume it was mirrored and now it looks like corrupted data since one half of the mirror was formatted.
Just a shot in the dark - try disconnecting those cache drives and try importing without them. Also try googling importing zfs pool without cache.
Disclaimer: I have no idea if any of this will help and this is way beyond my knowledge level but I remember seeing some threads about importing ZFS without cache somewhere. I can't help you myself but maybe this will point you in the right direction.
 

penflame

Cadet
Joined
Aug 6, 2020
Messages
9
It looks like all the "data" drives are there just the one cache drive is causing problems. I assume it was mirrored and now it looks like corrupted data since one half of the mirror was formatted.
Just a shot in the dark - try disconnecting those cache drives and try importing without them. Also try googling importing zfs pool without cache.
Disclaimer: I have no idea if any of this will help and this is way beyond my knowledge level but I remember seeing some threads about importing ZFS without cache somewhere. I can't help you myself but maybe this will point you in the right direction.
j'avais tenté de faire l'import sans les disques en mirror sans succes. J'ai meme recrée la meme partition, changer le partionID et copier les data de l'autre disque SSD pour avoir un pseudo mirror mais le systeme bloque en disk Corrupt....
Je crois que c'est meme pas des disques Cache mais des disques en Metadata
------------------------
Thx, i tried without cache disk not succes. I tried to recreate a partition ZFS with other disk mirror but zfs block on disk corrupt.
It's not CACHE disk, it's METADATA (Special) disk.
i trie with Klennet ZFS.
 
Top