Solved How to fix GEOM error?

Guys I changed my disks in my T430 to make a better backup routine. Before I had a strip with 3 ssd's with 1 tb each. I changed to root in a 240gb, home in a 1tb, and I left 1tb for dual booting with OBSD. And the last 1tb I took out of the note and put it in a case for external use. Everything using geli encryption + zfs ecryption.

Everything went fine, I already have the setup configured and running. So I decided to configure the external ssd to receive backups.

This is how I formatted the ssd:
Code:
geom disk list
lsblk
doas gpart delete -i 4 /dev/da0
doas gpart destroy /dev/da0
doas gpart create -s GPT /dev/da0
doas geli init -s 4096 /dev/da0
doas geli attach /dev/da0
doas zpool create ssd-crucial /dev/da0.eli
doas zpool import
doas zpool import ssd-crucial
doas zfs create -o encryption=on -o keyformat=passphrase -o compression=zstd -o atime=off ssd-crucial/bkp
doas zfs load-key ssd-crucial/bkp
doas zfs mount -a

Them I made a snapshot of my home dataset and send it to the external ssd with this commands:
Code:
zfs snapshot tank0/home@`hostname`_`date +%y%m%d%H%M`
doas zfs send tank0/home@FreeBaSeD-T430_2304080450 | xz -9 > /mnt/bkp/zhome-`date "+%Y-%m-%d"`.zfs.xz

But Murphy had other plans for my night and sent a power loss to my apartment when I already had tranfer 90gb out from 115gb.

Now, with power again I booted my T430 to discover that the ssd is now inaccessible:
Code:
{beastie} @ FreeBaSeD-T430 > /home/beastie
 → geom disk list
Geom name: ada0
Providers:
1. Name: ada0
   Mediasize: 240065183744 (224G)
   Sectorsize: 512
   Mode: r3w3e6
   descr: SanDisk SSD PLUS 240GB
   lunid: 5001b448b952196a
   ident: 184203804335
   rotationrate: 0
   fwsectors: 63
   fwheads: 16

Geom name: ada1
Providers:
1. Name: ada1
   Mediasize: 1000204886016 (932G)
   Sectorsize: 512
   Mode: r1w1e1
   descr: CT1000BX500SSD1
   lunid: 500a0751e673d561
   ident: 2240E673D561
   rotationrate: 0
   fwsectors: 63
   fwheads: 1

Geom name: ada2
Providers:
1. Name: ada2
   Mediasize: 1024209543168 (954G)
   Sectorsize: 512
   Mode: r0w0e0
   descr: MT-1TB
   ident: 9120222801224
   rotationrate: 0
   fwsectors: 63
   fwheads: 1

Geom name: da0
Providers:
1. Name: da0
   Mediasize: 1000204884992 (932G)
   Sectorsize: 512
   Mode: r0w0e0
   descr: Mass Storage Device
   ident: 116AC2101219
   rotationrate: unknown
   fwsectors: 63
   fwheads: 255
{beastie} @ FreeBaSeD-T430 > /home/beastie
 → doas geli attach /dev/da0
geli: Cannot read metadata from /dev/da0: Invalid argument.
geli: There was an error with at least one provider.
{beastie} @ FreeBaSeD-T430 > /home/beastie
 → doas geli restore /var/backups/da0.eli /dev/da0
geli: Provider size mismatch: wrong backup file?
{beastie} @ FreeBaSeD-T430 > /home/beastie
 → doas smartctl -a /dev/da0
smartctl 7.3 2022-02-28 r5338 [FreeBSD 13.1-RELEASE-p6 amd64] (local build)
Copyright (C) 2002-22, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Model Family:     Crucial/Micron Client SSDs
Device Model:     CT1000BX500SSD1
Serial Number:    2240E673CEA2
LU WWN Device Id: 5 00a075 1e673cea2
Firmware Version: M6CR056
User Capacity:    1,000,204,886,016 bytes [1.00 TB]
Sector Size:      512 bytes logical/physical
Rotation Rate:    Solid State Device
Form Factor:      2.5 inches
TRIM Command:     Available
Device is:        In smartctl database 7.3/5319
ATA Version is:   ACS-3 T13/2161-D revision 4
SATA Version is:  SATA 3.3, 6.0 Gb/s (current: 1.5 Gb/s)
Local Time is:    Sun Apr  9 22:51:02 2023 CEST
SMART support is: Available - device has SMART capability.
SMART support is: Enabled

=== START OF READ SMART DATA SECTION ===
SMART Status not supported: Incomplete response, ATA output registers missing
SMART overall-health self-assessment test result: PASSED
Warning: This result is based on an Attribute check.

General SMART Values:
Offline data collection status:  (0x00)    Offline data collection activity
                    was never started.
                    Auto Offline Data Collection: Disabled.
Self-test execution status:      (   0)    The previous self-test routine completed
                    without error or no self-test has ever
                    been run.
Total time to complete Offline
data collection:         (  120) seconds.
Offline data collection
capabilities:              (0x11) SMART execute Offline immediate.
                    No Auto Offline data collection support.
                    Suspend Offline collection upon new
                    command.
                    No Offline surface scan supported.
                    Self-test supported.
                    No Conveyance Self-test supported.
                    No Selective Self-test supported.
SMART capabilities:            (0x0002)    Does not save SMART data before
                    entering power-saving mode.
                    Supports SMART auto save timer.
Error logging capability:        (0x01)    Error logging supported.
                    General Purpose Logging supported.
Short self-test routine
recommended polling time:      (   2) minutes.
Extended self-test routine
recommended polling time:      (  10) minutes.

SMART Attributes Data Structure revision number: 16
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME          FLAG     VALUE WORST THRESH TYPE      UPDATED  WHEN_FAILED RAW_VALUE
  1 Raw_Read_Error_Rate     0x002f   100   100   000    Pre-fail  Always       -       0
  5 Reallocate_NAND_Blk_Cnt 0x0032   100   100   010    Old_age   Always       -       0
  9 Power_On_Hours          0x0032   100   100   000    Old_age   Always       -       2079
 12 Power_Cycle_Count       0x0032   100   100   000    Old_age   Always       -       196
171 Program_Fail_Count      0x0032   100   100   000    Old_age   Always       -       0
172 Erase_Fail_Count        0x0032   100   100   000    Old_age   Always       -       0
173 Ave_Block-Erase_Count   0x0032   100   100   000    Old_age   Always       -       5
174 Unexpect_Power_Loss_Ct  0x0032   100   100   000    Old_age   Always       -       23
180 Unused_Reserve_NAND_Blk 0x0033   100   100   000    Pre-fail  Always       -       41
183 SATA_Interfac_Downshift 0x0032   100   100   000    Old_age   Always       -       0
184 Error_Correction_Count  0x0032   100   100   000    Old_age   Always       -       0
187 Reported_Uncorrect      0x0032   100   100   000    Old_age   Always       -       0
194 Temperature_Celsius     0x0022   062   051   000    Old_age   Always       -       38 (Min/Max 20/49)
196 Reallocated_Event_Count 0x0032   100   100   000    Old_age   Always       -       0
197 Current_Pending_ECC_Cnt 0x0032   100   100   000    Old_age   Always       -       0
198 Offline_Uncorrectable   0x0030   100   100   000    Old_age   Offline      -       0
199 UDMA_CRC_Error_Count    0x0032   100   100   000    Old_age   Always       -       2
202 Percent_Lifetime_Remain 0x0030   100   100   001    Old_age   Offline      -       0
206 Write_Error_Rate        0x000e   100   100   000    Old_age   Always       -       0
210 Success_RAIN_Recov_Cnt  0x0032   100   100   000    Old_age   Always       -       0
246 Total_LBAs_Written      0x0032   100   100   000    Old_age   Always       -       3234839703
247 Host_Program_Page_Count 0x0032   100   100   000    Old_age   Always       -       101088740
248 FTL_Program_Page_Count  0x0032   100   100   000    Old_age   Always       -       49399744
249 Unkn_CrucialMicron_Attr 0x0032   100   100   000    Old_age   Always       -       0
250 Read_Error_Retry_Rate   0x0032   100   100   000    Old_age   Always       -       0
251 Unkn_CrucialMicron_Attr 0x0032   100   100   000    Old_age   Always       -       3010153
252 Unkn_CrucialMicron_Attr 0x0032   100   100   000    Old_age   Always       -       1
253 Unkn_CrucialMicron_Attr 0x0032   100   100   000    Old_age   Always       -       0
254 Unkn_CrucialMicron_Attr 0x0032   100   100   000    Old_age   Always       -       4
223 Unkn_CrucialMicron_Attr 0x0032   100   100   000    Old_age   Always       -       0

SMART Error Log not supported

SMART Self-test log structure revision number 1
No self-tests have been logged.  [To run self-tests, use: smartctl -t]

Selective Self-tests/Logging not supported

How can I save this ssd/pool?

PS.: My pool/datasets are:
zroot -> /
tank0 -> /home
ssd-crucial -> /mnt/bkp
 
Back
Top