Hello,
After a server crash I've been unable to access a ZFS pool from my server (which is running TrueNAS, formerly known as FreeNAS).
The pool is a single disk, there is no mirror/stripe.
I'm currently trying to import on a different machine, but the pool isn't appearing anywhere and doesn't import.
Here are a few commands that I've tried:
-
-
-
-
I've also tried a couple of other "zpool import", using different flags (-a, -f, etc), but none could find the pool.
Disk appears normally, there are no errors according to S.M.AR.T. and the partitions are still there:
(Partition 1 is something specific to TrueNAS/FreeNAS).
I've tried a couple of zdb commands, to check if the labels were there, and that seems to be the problem, as every command that I tried said "failed to unpack label".
-
If I hexdump the partition I can see that there are still some pool information there.
-
I ran photorec for a bit and saw that that are files on that partition, but I preferably would like to have the pool back, mostly to preserve filenames.
Can anyone help me?
Thanks in advance.
PS: English is not my native language, sorry for any mistakes.
After a server crash I've been unable to access a ZFS pool from my server (which is running TrueNAS, formerly known as FreeNAS).
The pool is a single disk, there is no mirror/stripe.
I'm currently trying to import on a different machine, but the pool isn't appearing anywhere and doesn't import.
Here are a few commands that I've tried:
-
zpool status
Code:
no pools available
-
zpool import
Code:
no pools available to import
-
zpool import Media
(name of my pool)
Code:
cannot import 'Media': no such pool available
-
zpool import -d /dev/sdc2
Code:
no pools available to import
I've also tried a couple of other "zpool import", using different flags (-a, -f, etc), but none could find the pool.
Disk appears normally, there are no errors according to S.M.AR.T. and the partitions are still there:
(Partition 1 is something specific to TrueNAS/FreeNAS).
I've tried a couple of zdb commands, to check if the labels were there, and that seems to be the problem, as every command that I tried said "failed to unpack label".
-
zdb -l /dev/sdc
and zdb -l /dev/sdc2
Code:
failed to unpack label 0
failed to unpack label 1
failed to unpack label 2
failed to unpack label 3
If I hexdump the partition I can see that there are still some pool information there.
-
dd if=/dev/sdc2 | hd | more
Code:
00000000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
*
00003fd0 00 00 00 00 00 00 00 00 11 7a 0c b1 7a da 10 02 |.........z..z...|
00003fe0 3f 2a 6e 7f 80 8f f4 97 fc ce aa 58 16 9f 90 af |?*n........X....|
00003ff0 8b b4 6d ff 57 ea d1 cb ab 5f 46 0d db 92 c6 6e |..m.W...._F....n|
00004000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
*
00004400 01 01 00 00 00 00 00 00 00 00 00 01 00 00 00 24 |...............$|
00004410 00 00 00 20 00 00 00 07 76 65 72 73 69 6f 6e 00 |... ....version.|
00004420 00 00 00 08 00 00 00 01 00 00 00 00 00 00 13 88 |................|
00004430 00 00 00 24 00 00 00 20 00 00 00 04 6e 61 6d 65 |...$... ....name|
00004440 00 00 00 09 00 00 00 01 00 00 00 05 4d 65 64 69 |............Medi|
00004450 61 00 00 00 00 00 00 24 00 00 00 20 00 00 00 05 |a......$... ....|
00004460 73 74 61 74 65 00 00 00 00 00 00 08 00 00 00 01 |state...........|
00004470 00 00 00 00 00 00 00 00 00 00 00 20 00 00 00 20 |........... ... |
00004480 00 00 00 03 74 78 67 00 00 00 00 08 00 00 00 01 |....txg.........|
00004490 00 00 00 00 00 98 b7 6f 00 00 00 28 00 00 00 28 |.......o...(...(|
000044a0 00 00 00 09 70 6f 6f 6c 5f 67 75 69 64 00 00 00 |....pool_guid...|
000044b0 00 00 00 08 00 00 00 01 6e 0a 48 e6 0b fb 8b 16 |........n.H.....|
000044c0 00 00 00 24 00 00 00 20 00 00 00 06 65 72 72 61 |...$... ....erra|
000044d0 74 61 00 00 00 00 00 08 00 00 00 01 00 00 00 00 |ta..............|
000044e0 00 00 00 00 00 00 00 24 00 00 00 20 00 00 00 06 |.......$... ....|
000044f0 68 6f 73 74 69 64 00 00 00 00 00 08 00 00 00 01 |hostid..........|
00004500 00 00 00 00 c3 d3 d8 57 00 00 00 20 00 00 00 28 |.......W... ...(|
00004510 00 00 00 08 68 6f 73 74 6e 61 6d 65 00 00 00 09 |....hostname....|
00004520 00 00 00 01 00 00 00 00 00 00 00 24 00 00 00 28 |...........$...(|
00004530 00 00 00 08 74 6f 70 5f 67 75 69 64 00 00 00 08 |....top_guid....|
00004540 00 00 00 01 8f 54 f5 d8 95 4f cb d1 00 00 00 20 |.....T...O..... |
00004550 00 00 00 20 00 00 00 04 67 75 69 64 00 00 00 08 |... ....guid....|
00004560 00 00 00 01 8f 54 f5 d8 95 4f cb d1 00 00 00 2c |.....T...O.....,|
00004570 00 00 00 28 00 00 00 0d 76 64 65 76 5f 63 68 69 |...(....vdev_chi|
00004580 6c 64 72 65 6e 00 00 00 00 00 00 08 00 00 00 01 |ldren...........|
00004590 00 00 00 00 00 00 00 01 00 00 02 48 00 00 00 38 |...........H...8|
000045a0 00 00 00 09 76 64 65 76 5f 74 72 65 65 00 00 00 |....vdev_tree...|
000045b0 00 00 00 13 00 00 00 01 00 00 00 00 00 00 00 01 |................|
000045c0 00 00 00 20 00 00 00 20 00 00 00 04 74 79 70 65 |... ... ....type|
000045d0 00 00 00 09 00 00 00 01 00 00 00 04 64 69 73 6b |............disk|
000045e0 00 00 00 20 00 00 00 20 00 00 00 02 69 64 00 00 |... ... ....id..|
000045f0 00 00 00 08 00 00 00 01 00 00 00 00 00 00 00 00 |................|
00004600 00 00 00 20 00 00 00 20 00 00 00 04 67 75 69 64 |... ... ....guid|
00004610 00 00 00 08 00 00 00 01 8f 54 f5 d8 95 4f cb d1 |.........T...O..|
00004620 00 00 00 4c 00 00 00 48 00 00 00 04 70 61 74 68 |...L...H....path|
00004630 00 00 00 09 00 00 00 01 00 00 00 2f 2f 64 65 76 |...........//dev|
00004640 2f 67 70 74 69 64 2f 32 65 61 66 33 30 36 37 2d |/gptid/2eaf3067-|
00004650 63 33 30 38 2d 31 31 65 61 2d 61 30 38 36 2d 63 |c308-11ea-a086-c|
00004660 38 36 30 30 30 62 66 38 32 38 34 00 00 00 00 60 |86000bf8284....`|
00004670 00 00 00 60 00 00 00 09 70 68 79 73 5f 70 61 74 |...`....phys_pat|
00004680 68 00 00 00 00 00 00 09 00 00 00 01 00 00 00 3a |h..............:|
00004690 69 64 31 2c 65 6e 63 40 6e 33 30 36 31 36 38 36 |id1,enc@n3061686|
000046a0 33 36 39 36 35 36 64 33 30 2f 74 79 70 65 40 30 |369656d30/type@0|
000046b0 2f 73 6c 6f 74 40 33 2f 65 6c 6d 64 65 73 63 40 |/slot@3/elmdesc@|
000046c0 53 6c 6f 74 5f 30 32 2f 70 32 00 00 00 00 00 2c |Slot_02/p2.....,|
000046d0 00 00 00 28 00 00 00 0e 6d 65 74 61 73 6c 61 62 |...(....metaslab|
000046e0 5f 61 72 72 61 79 00 00 00 00 00 08 00 00 00 01 |_array..........|
000046f0 00 00 00 00 00 00 00 26 00 00 00 2c 00 00 00 28 |.......&...,...(|
00004700 00 00 00 0e 6d 65 74 61 73 6c 61 62 5f 73 68 69 |....metaslab_shi|
00004710 66 74 00 00 00 00 00 08 00 00 00 01 00 00 00 00 |ft..............|
00004720 00 00 00 23 00 00 00 24 00 00 00 20 00 00 00 06 |...#...$... ....|
00004730 61 73 68 69 66 74 00 00 00 00 00 08 00 00 00 01 |ashift..........|
00004740 00 00 00 00 00 00 00 0c 00 00 00 24 00 00 00 20 |...........$... |
00004750 00 00 00 05 61 73 69 7a 65 00 00 00 00 00 00 08 |....asize.......|
00004760 00 00 00 01 00 00 03 a3 01 34 00 00 00 00 00 24 |.........4.....$|
00004770 00 00 00 20 00 00 00 06 69 73 5f 6c 6f 67 00 00 |... ....is_log..|
00004780 00 00 00 08 00 00 00 01 00 00 00 00 00 00 00 00 |................|
00004790 00 00 00 20 00 00 00 20 00 00 00 03 44 54 4c 00 |... ... ....DTL.|
000047a0 00 00 00 08 00 00 00 01 00 00 00 00 00 00 00 34 |...............4|
000047b0 00 00 00 28 00 00 00 28 00 00 00 0a 63 72 65 61 |...(...(....crea|
I ran photorec for a bit and saw that that are files on that partition, but I preferably would like to have the pool back, mostly to preserve filenames.
Can anyone help me?
Thanks in advance.
PS: English is not my native language, sorry for any mistakes.