I was given two SSD disks and asked if I can import the pool to get some data from them. The only information I have is that they were part of a pool at one time and they >>should<< be the only disks that were in the pool. I'm trying to import the pool but nothing is recognised. Not sure if I'm missing something, be it disks, information or my approach and I could use some help.
Disks are ada0 and ada1
The output of lsblk recognises zfs on ada0 but not on ada1. But zdb can read zfs information from both disks and they were at one point part of ssdoldpool.
Disks are ada0 and ada1
Code:
root@defiant:~ # camcontrol devlist
<Samsung SSD 850 PRO 256GB EXM02B6Q> at scbus0 target 0 lun 0 (ada0,pass0)
<Samsung SSD 850 PRO 256GB EXM02B6Q> at scbus1 target 0 lun 0 (ada1,pass1)
<Samsung SSD 870 EVO 1TB SVT02B6Q> at scbus2 target 0 lun 0 (ada2,pass2)
<Samsung SSD 870 EVO 1TB SVT02B6Q> at scbus3 target 0 lun 0 (ada3,pass3)
root@defiant:~ # zpool status
pool: ssdpool
state: ONLINE
scan: scrub repaired 0B in 00:00:04 with 0 errors on Mon May 9 13:53:04 2022
config:
NAME STATE READ WRITE CKSUM
ssdpool ONLINE 0 0 0
ada2 ONLINE 0 0 0
ada3 ONLINE 0 0 0
errors: No known data errors
pool: zroot
state: ONLINE
config:
NAME STATE READ WRITE CKSUM
zroot ONLINE 0 0 0
nvd0p3 ONLINE 0 0 0
errors: No known data errors
root@defiant:~ #
root@defiant:~ # geom disk list
Geom name: nvd0
Providers:
1. Name: nvd0
Mediasize: 512110190592 (477G)
Sectorsize: 512
Mode: r2w2e4
descr: Samsung SSD 970 PRO 512GB
lunid: 0025385a81b0358c
ident: S463NF0KA13708J
rotationrate: 0
fwsectors: 0
fwheads: 0
Geom name: ada0
Providers:
1. Name: ada0
Mediasize: 256060514304 (238G)
Sectorsize: 512
Stripesize: 4096
Stripeoffset: 0
Mode: r0w0e0
descr: Samsung SSD 850 PRO 256GB
lunid: 50025388a0a3ed0e
ident: S251NSAG451189Y
rotationrate: 0
fwsectors: 63
fwheads: 16
Geom name: ada1
Providers:
1. Name: ada1
Mediasize: 256060514304 (238G)
Sectorsize: 512
Stripesize: 4096
Stripeoffset: 0
Mode: r0w0e0
descr: Samsung SSD 850 PRO 256GB
lunid: 50025388400cd00a
ident: S251NXAGA07508B
rotationrate: 0
fwsectors: 63
fwheads: 16
Geom name: ada2
Providers:
1. Name: ada2
Mediasize: 1000204886016 (932G)
Sectorsize: 512
Mode: r1w1e1
descr: Samsung SSD 870 EVO 1TB
lunid: 5002538fc22138f6
ident: S6PUNM0T206582J
rotationrate: 0
fwsectors: 63
fwheads: 16
Geom name: ada3
Providers:
1. Name: ada3
Mediasize: 1000204886016 (932G)
Sectorsize: 512
Mode: r1w1e1
descr: Samsung SSD 870 EVO 1TB
lunid: 5002538fc221397d
ident: S6PUNM0T206717B
rotationrate: 0
fwsectors: 63
fwheads: 16
root@defiant:~ # zpool list
NAME SIZE ALLOC FREE CKPOINT EXPANDSZ FRAG CAP DEDUP HEALTH ALTROOT
ssdpool 1.81T 386G 1.44T - - 13% 20% 1.00x ONLINE -
zroot 412G 21.6G 390G - - 3% 5% 1.00x ONLINE -
root@defiant:~ #
root@defiant:~ # zpool import
no pools available to import
root@defiant:~ #
root@defiant:~ # zpool import
no pools available to import
root@defiant:~ # lsblk
DEVICE MAJ:MIN SIZE TYPE LABEL MOUNT
ada0 0:99 238G zfs - -
ada1 0:100 238G - - -
ada2 0:101 932G zfs - -
ada3 0:102 932G zfs - -
nvd0 0:76 477G GPT - -
nvd0p1 0:77 512K freebsd-boot gpt/gptboot0 -
<FREE> -:- 492K - - -
nvd0p2 0:78 64G freebsd-swap gpt/swap0 SWAP
nvd0p2.eli 0:129 64G freebsd-swap - SWAP
nvd0p3 0:79 413G freebsd-zfs gpt/zfs0 <ZFS>
<FREE> -:- 324K - - -
root@defiant:~ #
root@defiant:~ # zdb -l /dev/ada0
------------------------------------
LABEL 0
------------------------------------
version: 5000
name: 'ssdoldpool'
state: 2
txg: 254708
pool_guid: 9076253761409350112
errata: 0
hostid: 3869211759
hostname: 'defiant.hyperion.xnet'
top_guid: 16838241696677881628
guid: 16838241696677881628
vdev_children: 2
vdev_tree:
type: 'disk'
id: 0
guid: 16838241696677881628
path: '/dev/ada0'
whole_disk: 1
metaslab_array: 74
metaslab_shift: 31
ashift: 12
asize: 256055705600
is_log: 0
DTL: 29013
create_txg: 4
features_for_read:
com.delphix:hole_birth
com.delphix:embedded_data
labels = 0 1 2 3
root@defiant:~ # zdb -l /dev/ada1
failed to unpack label 0
failed to unpack label 1
------------------------------------
LABEL 2
------------------------------------
version: 5000
name: 'ssdoldpool'
state: 2
txg: 254708
pool_guid: 9076253761409350112
errata: 0
hostid: 3869211759
hostname: 'defiant.hyperion.xnet'
top_guid: 14724907744676083974
guid: 14724907744676083974
vdev_children: 2
vdev_tree:
type: 'disk'
id: 1
guid: 14724907744676083974
path: '/dev/ada1'
whole_disk: 1
metaslab_array: 64
metaslab_shift: 31
ashift: 12
asize: 256055705600
is_log: 0
DTL: 29012
create_txg: 4
features_for_read:
com.delphix:hole_birth
com.delphix:embedded_data
labels = 2 3
root@defiant:~ #
The output of lsblk recognises zfs on ada0 but not on ada1. But zdb can read zfs information from both disks and they were at one point part of ssdoldpool.