Replication task destroyed my pool

Hello! Need your help with combating my stupidity!

(System is Truenas Scale 24.10.1 with
4 4TB HDD drives in Pool1 - raidz1-0,
1 SSD 500 GiB drive in PoolSSD - stripe
1 1000 Gib drive in Pool SSD 1000 -stripe)

I decided to create a replication task to backup Ix Apps dataset in the stripe “PoolSSD” pool to my main HDD data Pool called “Pool1”. When I hit Run now “Replication from scratch” option turned ON and that wiped all my data and snapshots. I haven’t written any data on the Pool after that!
I’ve looked everywhere for a solution and so far I’ve tried “Zpool History il” and “Import – T” to a specific TXG but I get an error saying that "One or more devices are currently unavailable. I have no idea if the TXG is the right one or if there is another way.
I want to post the results of the History query but I am new to this forum and I don’t know how to quote from PuTTy (again….stupidity!) and I don’t know if I have to just paste it here.

Hello! Need your help with combating my stupidity!

(System is Truenas Scale 24.10.1 with
4 4TB HDD drives in Pool1 - raidz1-0,
1 SSD 500 GiB drive in PoolSSD - stripe
1 1000 Gib drive in Pool SSD 1000 -stripe)

I decided to create a replication task to backup Ix Apps dataset in the stripe “PoolSSD” pool to my main HDD data Pool called “Pool1”. When I hit Run now “Replication from scratch” option turned ON and that wiped all my data and snapshots. I haven’t written any data on the Pool after that!
I’ve looked everywhere for a solution and so far I’ve tried “Zpool History il” and “Import – T” to a specific TXG but I get an error saying that "One or more devices are currently unavailable. I have no idea if the TXG is the right one or if there is another way.
I’ll try to post the results of the History query but I am new to this forum and I don’t know how to quote from PuTTy (again….stupidity!) I hope it works and is useful for anyone

[user 0 (root) on toshko:linux]
2025-01-12.20:00:01 zfs program Pool1 /tmp/zettarepl--recursive_snapshot_exclude                                                           .lua--05c0ff2ca150f6257a1543cd392ede9f [user 0 (root) on toshko:linux]
2025-01-12.20:00:01 [txg:9761998] destroy Pool1@pool1-hourly-2025-01-12_20-00 (5                                                           26)   [on toshko]
2025-01-12.20:00:01 (157ms) ioctl destroy_snaps
    input:
        snaps:
            Pool1@pool1-hourly-2025-01-12_20-00
 [user 0 (root) on toshko:linux]
2025-01-12.20:00:01 zfs destroy Pool1@pool1-hourly-2025-01-12_20-00 [user 0 (roo                                                           t) on toshko:linux]
2025-01-12.20:00:01 [txg:9761999] destroy Pool1/Immich_data@pool1-hourly-2025-01                                                           -12_20-00 (528)   [on toshko]
2025-01-12.20:00:01 (144ms) ioctl destroy_snaps
    input:
        snaps:
            Pool1/Immich_data@pool1-hourly-2025-01-12_20-00
 [user 0 (root) on toshko:linux]
2025-01-12.20:00:01 zfs destroy Pool1/Immich_data@pool1-hourly-2025-01-12_20-00                                                            [user 0 (root) on toshko:linux]
2025-01-12.20:00:01 [txg:9762000] destroy Pool1/M@pool1-hourly-2025-01-12_20-00                                                            (534)   [on toshko]
2025-01-12.20:00:01 (140ms) ioctl destroy_snaps
    input:
        snaps:
            Pool1/M@pool1-hourly-2025-01-12_20-00
 [user 0 (root) on toshko:linux]
2025-01-12.20:00:01 zfs destroy Pool1/M@pool1-hourly-2025-01-12_20-00 [user 0 (r                                                           oot) on toshko:linux]
2025-01-12.20:00:01 [txg:9762001] destroy Pool1/Media@pool1-hourly-2025-01-12_20                                                           -00 (530)   [on toshko]
2025-01-12.20:00:02 (121ms) ioctl destroy_snaps
    input:
        snaps:
            Pool1/Media@pool1-hourly-2025-01-12_20-00
 [user 0 (root) on toshko:linux]
2025-01-12.20:00:02 zfs destroy Pool1/Media@pool1-hourly-2025-01-12_20-00 [user                                                            0 (root) on toshko:linux]
2025-01-12.20:00:02 [txg:9762002] destroy Pool1/Work@pool1-hourly-2025-01-12_20-                                                           00 (532)   [on toshko]
2025-01-12.20:00:02 (129ms) ioctl destroy_snaps
    input:
        snaps:
            Pool1/Work@pool1-hourly-2025-01-12_20-00
 [user 0 (root) on toshko:linux]
2025-01-12.20:00:02 zfs destroy Pool1/Work@pool1-hourly-2025-01-12_20-00 [user 0                                                            (root) on toshko:linux]
2025-01-12.21:00:00 [txg:9762705] snapshot Pool1@pool1-hourly-2025-01-12_21-00 (                                                           662)   [on toshko]
2025-01-12.21:00:00 [txg:9762705] snapshot Pool1/Immich_data@pool1-hourly-2025-0                                                           1-12_21-00 (664)   [on toshko]
2025-01-12.21:00:00 [txg:9762705] snapshot Pool1/Media@pool1-hourly-2025-01-12_2                                                           1-00 (666)   [on toshko]
2025-01-12.21:00:00 [txg:9762705] snapshot Pool1/Work@pool1-hourly-2025-01-12_21                                                           -00 (668)   [on toshko]
2025-01-12.21:00:00 [txg:9762705] snapshot Pool1/M@pool1-hourly-2025-01-12_21-00                                                            (670)   [on toshko]
2025-01-12.21:00:00 (445ms) ioctl channel_program
    input:
        program: 'dataset = "Pool1"
snapshot_name = "pool1-hourly-2025-01-12_21-00"
excluded_datasets = {}
snapshots_to_create = {}
function populate_snapshots_to_create(dataset)
    table.insert(snapshots_to_create, dataset .. "@" .. snapshot_name)

    local iterator = zfs.list.children(dataset)
    while true do
        local child = iterator()
        if child == nil then
            break
        end

        local include = true
        for _, excl in ipairs(excluded_datasets) do
            if child == excl then
                include = false
                break
            end
        end
        if include then
            populate_snapshots_to_create(child)
        end
    end
end
populate_snapshots_to_create(dataset)

errors = {}
for _, snapshot in ipairs(snapshots_to_create) do
    local error = zfs.check.snapshot(snapshot)
    if (error ~= 0) then
        table.insert(errors, "snapshot=" .. snapshot .. " error=" .. tostring(er                                                           ror))
    end
end

if (#errors ~= 0) then
    error(table.concat(errors, ", "))
end

for _, snapshot in ipairs(snapshots_to_create) do
    assert(zfs.sync.snapshot(snapshot) == 0)
end
'
        arg:
        sync: true
        instrlimit: 10000000
        memlimit: 10485760
 [user 0 (root) on toshko:linux]
2025-01-12.21:00:00 zfs program Pool1 /tmp/zettarepl--recursive_snapshot_exclude                                                           .lua--4439ea01fec30257e03e12521b8f587c [user 0 (root) on toshko:linux]
2025-01-12.21:00:01 [txg:9762706] destroy Pool1@pool1-hourly-2025-01-12_21-00 (6                                                           62)   [on toshko]
2025-01-12.21:00:01 (132ms) ioctl destroy_snaps
    input:
        snaps:
            Pool1@pool1-hourly-2025-01-12_21-00
 [user 0 (root) on toshko:linux]
2025-01-12.21:00:01 zfs destroy Pool1@pool1-hourly-2025-01-12_21-00 [user 0 (roo                                                           t) on toshko:linux]
2025-01-12.21:00:01 [txg:9762707] destroy Pool1/Immich_data@pool1-hourly-2025-01                                                           -12_21-00 (664)   [on toshko]
2025-01-12.21:00:01 (131ms) ioctl destroy_snaps
    input:
        snaps:
            Pool1/Immich_data@pool1-hourly-2025-01-12_21-00
 [user 0 (root) on toshko:linux]
2025-01-12.21:00:01 zfs destroy Pool1/Immich_data@pool1-hourly-2025-01-12_21-00                                                            [user 0 (root) on toshko:linux]
2025-01-12.21:00:01 [txg:9762708] destroy Pool1/M@pool1-hourly-2025-01-12_21-00                                                            (670)   [on toshko]
2025-01-12.21:00:01 (145ms) ioctl destroy_snaps
    input:
        snaps:
            Pool1/M@pool1-hourly-2025-01-12_21-00
 [user 0 (root) on toshko:linux]
2025-01-12.21:00:01 zfs destroy Pool1/M@pool1-hourly-2025-01-12_21-00 [user 0 (r                                                           oot) on toshko:linux]
2025-01-12.21:00:01 [txg:9762709] destroy Pool1/Media@pool1-hourly-2025-01-12_21                                                           -00 (666)   [on toshko]
2025-01-12.21:00:01 (136ms) ioctl destroy_snaps
    input:
        snaps:
            Pool1/Media@pool1-hourly-2025-01-12_21-00
 [user 0 (root) on toshko:linux]
2025-01-12.21:00:01 zfs destroy Pool1/Media@pool1-hourly-2025-01-12_21-00 [user                                                            0 (root) on toshko:linux]
2025-01-12.21:00:01 [txg:9762710] destroy Pool1/Work@pool1-hourly-2025-01-12_21-                                                           00 (668)   [on toshko]
2025-01-12.21:00:01 (122ms) ioctl destroy_snaps
    input:
        snaps:
            Pool1/Work@pool1-hourly-2025-01-12_21-00
 [user 0 (root) on toshko:linux]
2025-01-12.21:00:01 zfs destroy Pool1/Work@pool1-hourly-2025-01-12_21-00 [user 0                                                            (root) on toshko:linux]
2025-01-12.21:57:49 [txg:9763388] destroy Pool1/Immich_data@pool1-hourly-2025-01                                                           -12_14-00 (514)   [on toshko]
2025-01-12.21:57:49 (169ms) ioctl destroy_snaps
    input:
        snaps:
            Pool1/Immich_data@pool1-hourly-2025-01-12_14-00
 [user 0 (root) on toshko:linux]
2025-01-12.21:57:49 [txg:9763390] destroy Pool1/Immich_data (115) (bptree, mintx                                                           g=1) [on toshko]
2025-01-12.21:57:51 [txg:9763392] destroy Pool1/Media@pool1-hourly-2025-01-12_14                                                           -00 (516)   [on toshko]
2025-01-12.21:57:52 (2378ms) ioctl destroy_snaps
    input:
        snaps:
            Pool1/Media@pool1-hourly-2025-01-12_14-00
 [user 0 (root) on toshko:linux]
2025-01-12.21:57:54 [txg:9763395] destroy Pool1/Media (1473) (bptree, mintxg=1)                                                            [on toshko]
2025-01-12.21:57:56 [txg:9763397] destroy Pool1/Work@pool1-hourly-2025-01-12_14-                                                           00 (520)   [on toshko]
2025-01-12.21:57:56 [txg:9763397] destroy Pool1/Work@pool1-hourly-2025-01-12_15-                                                           00 (774)   [on toshko]
2025-01-12.21:57:57 (2375ms) ioctl destroy_snaps
    input:
        snaps:
            Pool1/Work@pool1-hourly-2025-01-12_15-00
            Pool1/Work@pool1-hourly-2025-01-12_14-00
 [user 0 (root) on toshko:linux]
2025-01-12.21:58:01 [txg:9763401] destroy Pool1/Work (97133) (bptree, mintxg=1)                                                            [on toshko]
2025-01-12.21:58:03 [txg:9763403] destroy Pool1/M@pool1-hourly-2025-01-12_14-00                                                            (522)   [on toshko]
2025-01-12.21:58:04 (2369ms) ioctl destroy_snaps
    input:
        snaps:
            Pool1/M@pool1-hourly-2025-01-12_14-00
 [user 0 (root) on toshko:linux]
2025-01-12.21:58:08 [txg:9763407] destroy Pool1/M (2211) (bptree, mintxg=1) [on                                                            toshko]
2025-01-12.21:58:11 [txg:9763409] destroy Pool1@pool1-hourly-2025-01-12_14-00 (5                                                           12)   [on toshko]
2025-01-12.21:58:11 [txg:9763409] destroy Pool1@pool1-hourly-2025-01-12_15-00 (7                                                           68)   [on toshko]
2025-01-12.21:58:12 (2441ms) ioctl destroy_snaps
    input:
        snaps:
            Pool1@pool1-hourly-2025-01-12_14-00
            Pool1@pool1-hourly-2025-01-12_15-00
 [user 0 (root) on toshko:linux]
2025-01-12.21:58:12 zfs destroy -r Pool1 [user 0 (root) on toshko:linux]
2025-01-12.21:58:15 [txg:9763413] receive Pool1/%recv (179)   [on toshko]
2025-01-12.21:58:18 [txg:9763415] inherit Pool1 (54) atime=1 [on toshko]
2025-01-12.21:58:18 [txg:9763415] inherit Pool1 (54) aclinherit=4 [on toshko]
2025-01-12.21:58:18 [txg:9763415] inherit Pool1 (54) compression=1 [on toshko]
2025-01-12.21:58:18 [txg:9763415] inherit Pool1 (54) aclmode=0 [on toshko]
2025-01-12.21:58:18 [txg:9763415] inherit Pool1 (54) acltype=2 [on toshko]
2025-01-12.21:58:20 [txg:9763417] set Pool1 (54) $hasrecvd= [on toshko]
2025-01-12.21:58:23 [txg:9763419] set Pool1 (54) xattr=2 [on toshko]
2025-01-12.21:58:23 [txg:9763419] set Pool1 (54) exec=1 [on toshko]
2025-01-12.21:58:23 [txg:9763419] set Pool1 (54) atime=0 [on toshko]
2025-01-12.21:58:23 [txg:9763419] set Pool1 (54) setuid=1 [on toshko]
2025-01-12.21:58:23 [txg:9763419] set Pool1 (54) aclmode=0 [on toshko]
2025-01-12.21:58:23 [txg:9763419] set Pool1 (54) acltype=1 [on toshko]
2025-01-12.21:58:25 [txg:9763421] inherit Pool1 (54) mountpoint=/ [on toshko]
2025-01-12.21:58:25 [txg:9763421] inherit Pool1 (54) sharenfs=off [on toshko]
2025-01-12.21:58:28 [txg:9763423] finish receiving Pool1/%recv (179) snap=auto-2                                                           025-01-12_13-40 [on toshko]
2025-01-12.21:58:28 [txg:9763423] clone swap Pool1/%recv (179) parent=Pool1 [on                                                            toshko]
2025-01-12.21:58:28 [txg:9763423] snapshot Pool1@auto-2025-01-12_13-40 (185)   [                                                           on toshko]
2025-01-12.21:58:28 [txg:9763423] destroy Pool1/%recv (179) (bptree, mintxg=1) [                                                           on toshko]
2025-01-12.21:58:30 [txg:9763425] inherit Pool1 (54) sharesmb=off [on toshko]
2025-01-12.21:58:31 (17015ms) ioctl receive
    input:
        snapname: 'Pool1@auto-2025-01-12_13-40'
        props:
            xattr: 2
            exec: 1
            atime: 0
            setuid: 1
            aclmode: 0
            acltype: 1
        localprops:
            mountpoint
            sharesmb
            sharenfs
            encryption: 2
        begin_record[0]: 0
        begin_record[1]: 0
        begin_record[2]: 0
        begin_record[3]: 0
        begin_record[4]: 0
        begin_record[5]: 0
        begin_record[6]: 0
        begin_record[7]: 0
        begin_record[8]: 172
        begin_record[9]: 203
        begin_record[10]: 186
        begin_record[11]: 245
        begin_record[12]: 2
        begin_record[13]: 0
        begin_record[14]: 0
        begin_record[15]: 0
        begin_record[16]: 17
        begin_record[17]: 0
        begin_record[18]: 8
        begin_record[19]: 1
        begin_record[20]: 0
        begin_record[21]: 0
        begin_record[22]: 0
        begin_record[23]: 0
        begin_record[24]: 38
        begin_record[25]: 170
        begin_record[26]: 131
        begin_record[27]: 103
        begin_record[28]: 0
        begin_record[29]: 0
        begin_record[30]: 0
        begin_record[31]: 0
        begin_record[32]: 2
        begin_record[33]: 0
        begin_record[34]: 0
        begin_record[35]: 0
        begin_record[36]: 12
        begin_record[37]: 0
        begin_record[38]: 0
        begin_record[39]: 0
        begin_record[40]: 106
        begin_record[41]: 27
        begin_record[42]: 175
        begin_record[43]: 191
        begin_record[44]: 202
        begin_record[45]: 37
        begin_record[46]: 252
        begin_record[47]: 72
        begin_record[48]: 0
        begin_record[49]: 0
        begin_record[50]: 0
        begin_record[51]: 0
        begin_record[52]: 0
        begin_record[53]: 0
        begin_record[54]: 0
        begin_record[55]: 0
        begin_record[56]: 80
        begin_record[57]: 111
        begin_record[58]: 111
        begin_record[59]: 108
        begin_record[60]: 83
        begin_record[61]: 83
        begin_record[62]: 68
        begin_record[63]: 47
        begin_record[64]: 105
        begin_record[65]: 120
        begin_record[66]: 45
        begin_record[67]: 97
        begin_record[68]: 112
        begin_record[69]: 112
        begin_record[70]: 108
        begin_record[71]: 105
        begin_record[72]: 99
        begin_record[73]: 97
        begin_record[74]: 116
        begin_record[75]: 105
        begin_record[76]: 111
        begin_record[77]: 110
        begin_record[78]: 115
        begin_record[79]: 64
        begin_record[80]: 97
        begin_record[81]: 117
        begin_record[82]: 116
        begin_record[83]: 111
        begin_record[84]: 45
        begin_record[85]: 50
        begin_record[86]: 48
        begin_record[87]: 50
        begin_record[88]: 53
        begin_record[89]: 45
        begin_record[90]: 48
        begin_record[91]: 49
        begin_record[92]: 45
        begin_record[93]: 49
        begin_record[94]: 50
        begin_record[95]: 95
        begin_record[96]: 49
        begin_record[97]: 51
        begin_record[98]: 45
        begin_record[99]: 52
        begin_record[100]: 48
        begin_record[101]: 0
        begin_record[102]: 0
        begin_record[103]: 0
        begin_record[104]: 0
        begin_record[105]: 0
        begin_record[106]: 0
        begin_record[107]: 0
        begin_record[108]: 0
        begin_record[109]: 0
        begin_record[110]: 0
        begin_record[111]: 0
        begin_record[112]: 0
        begin_record[113]: 0
        begin_record[114]: 0
        begin_record[115]: 0
        begin_record[116]: 0
        begin_record[117]: 0
        begin_record[118]: 0
        begin_record[119]: 0
        begin_record[120]: 0
        begin_record[121]: 0
        begin_record[122]: 0
        begin_record[123]: 0
        begin_record[124]: 0
        begin_record[125]: 0
        begin_record[126]: 0
        begin_record[127]: 0
        begin_record[128]: 0
        begin_record[129]: 0
        begin_record[130]: 0
        begin_record[131]: 0
        begin_record[132]: 0
        begin_record[133]: 0
        begin_record[134]: 0
        begin_record[135]: 0
        begin_record[136]: 0
        begin_record[137]: 0
        begin_record[138]: 0
        begin_record[139]: 0
        begin_record[140]: 0
        begin_record[141]: 0
        begin_record[142]: 0
        begin_record[143]: 0
        begin_record[144]: 0
        begin_record[145]: 0
        begin_record[146]: 0
        begin_record[147]: 0
        begin_record[148]: 0
        begin_record[149]: 0
        begin_record[150]: 0
        begin_record[151]: 0
        begin_record[152]: 0
        begin_record[153]: 0
        begin_record[154]: 0
        begin_record[155]: 0
        begin_record[156]: 0
        begin_record[157]: 0
        begin_record[158]: 0
        begin_record[159]: 0
        begin_record[160]: 0
        begin_record[161]: 0
        begin_record[162]: 0
        begin_record[163]: 0
        begin_record[164]: 0
        begin_record[165]: 0
        begin_record[166]: 0
        begin_record[167]: 0
        begin_record[168]: 0
        begin_record[169]: 0
        begin_record[170]: 0
        begin_record[171]: 0
        begin_record[172]: 0
        begin_record[173]: 0
        begin_record[174]: 0
        begin_record[175]: 0
        begin_record[176]: 0
        begin_record[177]: 0
        begin_record[178]: 0
        begin_record[179]: 0
        begin_record[180]: 0
        begin_record[181]: 0
        begin_record[182]: 0
        begin_record[183]: 0
        begin_record[184]: 0
        begin_record[185]: 0
        begin_record[186]: 0
        begin_record[187]: 0
        begin_record[188]: 0
        begin_record[189]: 0
        begin_record[190]: 0
        begin_record[191]: 0
        begin_record[192]: 0
        begin_record[193]: 0
        begin_record[194]: 0
        begin_record[195]: 0
        begin_record[196]: 0
        begin_record[197]: 0
        begin_record[198]: 0
        begin_record[199]: 0
        begin_record[200]: 0
        begin_record[201]: 0
        begin_record[202]: 0
        begin_record[203]: 0
        begin_record[204]: 0
        begin_record[205]: 0
        begin_record[206]: 0
        begin_record[207]: 0
        begin_record[208]: 0
        begin_record[209]: 0
        begin_record[210]: 0
        begin_record[211]: 0
        begin_record[212]: 0
        begin_record[213]: 0
        begin_record[214]: 0
        begin_record[215]: 0
        begin_record[216]: 0
        begin_record[217]: 0
        begin_record[218]: 0
        begin_record[219]: 0
        begin_record[220]: 0
        begin_record[221]: 0
        begin_record[222]: 0
        begin_record[223]: 0
        begin_record[224]: 0
        begin_record[225]: 0
        begin_record[226]: 0
        begin_record[227]: 0
        begin_record[228]: 0
        begin_record[229]: 0
        begin_record[230]: 0
        begin_record[231]: 0
        begin_record[232]: 0
        begin_record[233]: 0
        begin_record[234]: 0
        begin_record[235]: 0
        begin_record[236]: 0
        begin_record[237]: 0
        begin_record[238]: 0
        begin_record[239]: 0
        begin_record[240]: 0
        begin_record[241]: 0
        begin_record[242]: 0
        begin_record[243]: 0
        begin_record[244]: 0
        begin_record[245]: 0
        begin_record[246]: 0
        begin_record[247]: 0
        begin_record[248]: 0
        begin_record[249]: 0
        begin_record[250]: 0
        begin_record[251]: 0
        begin_record[252]: 0
        begin_record[253]: 0
        begin_record[254]: 0
        begin_record[255]: 0
        begin_record[256]: 0
        begin_record[257]: 0
        begin_record[258]: 0
        begin_record[259]: 0
        begin_record[260]: 0
        begin_record[261]: 0
        begin_record[262]: 0
        begin_record[263]: 0
        begin_record[264]: 0
        begin_record[265]: 0
        begin_record[266]: 0
        begin_record[267]: 0
        begin_record[268]: 0
        begin_record[269]: 0
        begin_record[270]: 0
        begin_record[271]: 0
        begin_record[272]: 0
        begin_record[273]: 0
        begin_record[274]: 0
        begin_record[275]: 0
        begin_record[276]: 0
        begin_record[277]: 0
        begin_record[278]: 0
        begin_record[279]: 0
        begin_record[280]: 0
        begin_record[281]: 0
        begin_record[282]: 0
        begin_record[283]: 0
        begin_record[284]: 0
        begin_record[285]: 0
        begin_record[286]: 0
        begin_record[287]: 0
        begin_record[288]: 0
        begin_record[289]: 0
        begin_record[290]: 0
        begin_record[291]: 0
        begin_record[292]: 0
        begin_record[293]: 0
        begin_record[294]: 0
        begin_record[295]: 0
        begin_record[296]: 0
        begin_record[297]: 0
        begin_record[298]: 0
        begin_record[299]: 0
        begin_record[300]: 0
        begin_record[301]: 0
        begin_record[302]: 0
        begin_record[303]: 0
        begin_record[304]: 0
        begin_record[305]: 0
        begin_record[306]: 0
        begin_record[307]: 0
        begin_record[308]: 0
        begin_record[309]: 0
        begin_record[310]: 0
        begin_record[311]: 0
        input_fd: 0
        force
        resumable
    output:
        read_bytes: 1020928
        error_flags: 0
        errors:
 [user 0 (root) on toshko:linux]
2025-01-12.21:58:31 zfs recv -s -F -x mountpoint -x sharesmb -x sharenfs Pool1 [                                                           user 0 (root) on toshko:linux]
2025-01-12.21:58:33 [txg:9763427] set Pool1 (54) readonly=1 [on toshko]
2025-01-12.21:58:34 zfs set readonly=on Pool1 [user 0 (root) on toshko:linux]
2025-01-12.21:58:35 [txg:9763429] set Pool1 (54) readonly=1 [on toshko]
2025-01-12.21:58:36 zfs set readonly=on Pool1 [user 0 (root) on toshko:linux]
2025-01-12.22:00:00 [txg:9763444] snapshot Pool1@pool1-hourly-2025-01-12_22-00 (                                                           542)   [on toshko]
2025-01-12.22:00:02 (1332ms) ioctl channel_program
    input:
        program: 'dataset = "Pool1"
snapshot_name = "pool1-hourly-2025-01-12_22-00"
excluded_datasets = {}
snapshots_to_create = {}
function populate_snapshots_to_create(dataset)
    table.insert(snapshots_to_create, dataset .. "@" .. snapshot_name)

    local iterator = zfs.list.children(dataset)
    while true do
        local child = iterator()
        if child == nil then
            break
        end

        local include = true
        for _, excl in ipairs(excluded_datasets) do
            if child == excl then
                include = false
                break
            end
        end
        if include then
            populate_snapshots_to_create(child)
        end
    end
end
populate_snapshots_to_create(dataset)

errors = {}
for _, snapshot in ipairs(snapshots_to_create) do
    local error = zfs.check.snapshot(snapshot)
    if (error ~= 0) then
        table.insert(errors, "snapshot=" .. snapshot .. " error=" .. tostring(er                                                           ror))
    end
end

if (#errors ~= 0) then
    error(table.concat(errors, ", "))
end

for _, snapshot in ipairs(snapshots_to_create) do
    assert(zfs.sync.snapshot(snapshot) == 0)
end
'
        arg:
        sync: true
        instrlimit: 10000000
        memlimit: 10485760
 [user 0 (root) on toshko:linux]
2025-01-12.22:00:02 zfs program Pool1 /tmp/zettarepl--recursive_snapshot_exclude                                                           .lua--875f237cb1ea526a82aea583d22a66ee [user 0 (root) on toshko:linux]
2025-01-12.22:00:03 [txg:9763446] destroy Pool1@pool1-hourly-2025-01-12_22-00 (5                                                           42)   [on toshko]
2025-01-12.22:00:04 (2230ms) ioctl destroy_snaps
    input:
        snaps:
            Pool1@pool1-hourly-2025-01-12_22-00
 [user 0 (root) on toshko:linux]
2025-01-12.22:00:04 zfs destroy Pool1@pool1-hourly-2025-01-12_22-00 [user 0 (roo                                                           t) on toshko:linux]
2025-01-12.22:14:18 [txg:9763611] clone swap Pool1/%rollback (808) parent=Pool1                                                            [on toshko]
2025-01-12.22:14:18 [txg:9763611] destroy Pool1/%rollback (808) (bptree, mintxg=                                                           9763423) [on toshko]
2025-01-12.22:14:18 (171ms) ioctl rollback
    input:
        target: 'Pool1@auto-2025-01-12_13-40'
    output:
        target: 'Pool1@auto-2025-01-12_13-40'
 [user 0 (root) on toshko:linux]
2025-01-12.22:14:18 zfs rollback -f Pool1@auto-2025-01-12_13-40 [user 0 (root) o                                                           n toshko:linux]
2025-01-13.01:44:11 [txg:9763614] open pool version 5000; software version zfs-2                                                           .1.99-2799-gfe4bab1da; uts toshko 6.6.44-production+truenas #1 SMP PREEMPT_DYNAM                                                           IC Mon Dec 16 20:59:32 UTC 2024 x86_64 [on toshko]
2025-01-13.01:44:12 [txg:9763616] import pool version 5000; software version zfs                                                           -2.1.99-2799-gfe4bab1da; uts toshko 6.6.44-production+truenas #1 SMP PREEMPT_DYN                                                           AMIC Mon Dec 16 20:59:32 UTC 2024 x86_64 [on toshko]
2025-01-13.01:44:12 zpool import 17978698458438643972 -R /mnt -m -N -f -o cachef                                                           ile=/data/zfs/zpool.cache [user 0 (root) on toshko:linux]
2025-01-13.01:44:12 [txg:9763618] set Pool1 (54) aclinherit=0 [on toshko]
2025-01-13.02:24:33 zpool export Pool1 [user 0 (root) on toshko:linux]
2025-01-13.02:45:56 [txg:9764114] open pool version 5000; software version zfs-2                                                           .1.99-2799-gfe4bab1da; uts toshko 6.6.44-production+truenas #1 SMP PREEMPT_DYNAM                                                           IC Mon Dec 16 20:59:32 UTC 2024 x86_64 [on toshko]
2025-01-13.02:45:57 [txg:9764116] import pool version 5000; software version zfs                                                           -2.1.99-2799-gfe4bab1da; uts toshko 6.6.44-production+truenas #1 SMP PREEMPT_DYN                                                           AMIC Mon Dec 16 20:59:32 UTC 2024 x86_64 [on toshko]
2025-01-13.02:45:58 zpool import Pool1 [user 0 (root) on toshko:linux]
2025-01-13.02:55:56 zpool export Pool1 [user 0 (root) on toshko:linux]
2025-01-13.03:33:44 [txg:9764247] open pool version 5000; software version zfs-2                                                           .1.99-2799-gfe4bab1da; uts toshko 6.6.44-production+truenas #1 SMP PREEMPT_DYNAM                                                           IC Mon Dec 16 20:59:32 UTC 2024 x86_64 [on toshko]
2025-01-13.03:33:45 [txg:9764249] import pool version 5000; software version zfs                                                           -2.1.99-2799-gfe4bab1da; uts toshko 6.6.44-production+truenas #1 SMP PREEMPT_DYN                                                           AMIC Mon Dec 16 20:59:32 UTC 2024 x86_64 [on toshko]
2025-01-13.03:33:45 zpool import -fFXn Pool1 [user 0 (root) on toshko:linux]
2025-01-13.03:36:48 zpool export Pool1 [user 0 (root) on toshko:linux]

And these are my attempts to import :frowning:

truenas_admin@toshko[~]$ sudo zpool import

  pool: Pool1
    id: 17978698458438643972
 state: ONLINE
action: The pool can be imported using its name or numeric identifier.
config:

        Pool1                                     ONLINE
          raidz1-0                                ONLINE
            c6243367-f53a-467c-8d24-24a9d1c1517c  ONLINE
            8c4ea903-3d94-46d3-89c0-7fb085dd9f9c  ONLINE
            8dbd65ea-f311-4a3f-8f0d-0ef655839c60  ONLINE
            756d6025-da84-4964-8028-b967bf2c1b65  ONLINE
truenas_admin@toshko[~]$
truenas_admin@toshko[~]$ sudo zpool import -T 9763413 Pool1
cannot import 'Pool1': one or more devices is currently unavailable
truenas_admin@toshko[~]$ sudo zpool import -T 9763412 Pool1
cannot import 'Pool1': one or more devices is currently unavailable
truenas_admin@toshko[~]$ sudo zpool import -T 9763411 Pool1
cannot import 'Pool1': one or more devices is currently unavailable
truenas_admin@toshko[~]$ sudo zpool import -nT 9752654 Pool1
-n or -X only meaningful with -F
usage:
        import [-d dir] [-D]
        import [-o mntopts] [-o property=value] ...
            [-d dir | -c cachefile] [-D] [-l] [-f] [-m] [-N] [-R root] [-F [-n]] -a
        import [-o mntopts] [-o property=value] ...
            [-d dir | -c cachefile] [-D] [-l] [-f] [-m] [-N] [-R root] [-F [-n]]
            [--rewind-to-checkpoint] <pool | id> [newpool]
truenas_admin@toshko[~]$ sudo zpool import -F -nT 9752654 Pool1
truenas_admin@toshko[~]$ sudo zpool import
  pool: Pool1
    id: 17978698458438643972
 state: ONLINE
action: The pool can be imported using its name or numeric identifier.
config:

        Pool1                                     ONLINE
          raidz1-0                                ONLINE
            c6243367-f53a-467c-8d24-24a9d1c1517c  ONLINE
            8c4ea903-3d94-46d3-89c0-7fb085dd9f9c  ONLINE
            8dbd65ea-f311-4a3f-8f0d-0ef655839c60  ONLINE
            756d6025-da84-4964-8028-b967bf2c1b65  ONLINE
truenas_admin@toshko[~]$ sudo zpool import -nT 9752654 Pool1
-n or -X only meaningful with -F
usage:
        import [-d dir] [-D]
        import [-o mntopts] [-o property=value] ...
            [-d dir | -c cachefile] [-D] [-l] [-f] [-m] [-N] [-R root] [-F [-n]] -a
        import [-o mntopts] [-o property=value] ...
            [-d dir | -c cachefile] [-D] [-l] [-f] [-m] [-N] [-R root] [-F [-n]]
            [--rewind-to-checkpoint] <pool | id> [newpool]
truenas_admin@toshko[~]$ sudo zpool import -FnT 9752654 Pool1
truenas_admin@toshko[~]$ sudo zpool import -FXT 9752654 Pool1
cannot import 'Pool1': one or more devices is currently unavailable
truenas_admin@toshko[~]$ sudo zpool import -F -T 9752654 Pool1
cannot import 'Pool1': one or more devices is currently unavailable
truenas_admin@toshko[~]$

Please help!
Thank you :slight_smile:

P.S.
Just to add more info. Chat GPT told me to how to get " zdb -e Pool1 and zpool history Pool1" to text files. (Ive hit the limit of GPT for today :smile:

I can’t upload files and share links because I’m a new user so I don’t know how to show them to you (they are too long for a quote)