According to a tutorial I found in the internet, I first took the old hdd offline
After shutting down the pc I physically removed the old hdd, connected the new one. Boot up the PC. ZFS reported a degraded state of my pool (as expected). Then I took the new hdd online (instead of replacing it, my mistake):
The command was accepted by the OS and zpool status tank gave me the new hdd online but seemed like it was not part of the tank pool:
No resilvering took place, no scrubbing. I then tried to replace the old with the new hdd by zpool replace pool oldhdd newhdd. But ZFS gave me an error and said the (new) hdd would be in use already.
After another reboot everything was gone. No pool could be found. I reconnected the "old" still good hdd.
Putting the old hdd back online failed as no pool was found.
But I am stuck:
What can I do now to get my data back?
Any help is highly appreciated
Code:
zpool offline tank ata-ST2000DM008-2FR102_ZFL688AZ
After shutting down the pc I physically removed the old hdd, connected the new one. Boot up the PC. ZFS reported a degraded state of my pool (as expected). Then I took the new hdd online (instead of replacing it, my mistake):
Code:
zpool online tank ata-ST8000DM004-2CX188_ZCT0DCK7
The command was accepted by the OS and zpool status tank gave me the new hdd online but seemed like it was not part of the tank pool:
Code:
tank DEGRADED
raidz2-0 DEGRADED
ata-ST2000DM008-2FR102_ZFL688AZ OFFLINE
ata-ST2000DM001-1CH164_W1F4C8RS ONLINE
ata-ST2000DM001-9YN164_Z2F0GPQR ONLINE
ata-ST2000DM008-2UB102_WFL6G6CL ONLINE
ata-ST8000DM004-2U9188_ZR14YM54 ONLINE
ata-ST2000DM008-2FR102_ZFL689C5 ONLINE
ata-ST8000DM004-2CX188_ZCT0DCK7 ONLINE
No resilvering took place, no scrubbing. I then tried to replace the old with the new hdd by zpool replace pool oldhdd newhdd. But ZFS gave me an error and said the (new) hdd would be in use already.
After another reboot everything was gone. No pool could be found. I reconnected the "old" still good hdd.
Putting the old hdd back online failed as no pool was found.
But I am stuck:
Code:
root@pve:~# zpool status
no pools available
root@pve:~# zpool status tank
cannot open 'tank': no such pool
root@pve:~# zpool import tank
cannot import 'tank': no such pool or dataset
Destroy and re-create the pool from
a backup source.
root@pve:~# zpool import -f tank
cannot import 'tank': no such pool or dataset
Destroy and re-create the pool from
a backup source.
root@pve:~# zpool import
pool: tank
id: 14700457213808848307
state: UNAVAIL
status: One or more devices contains corrupted data.
action: The pool cannot be imported due to damaged devices or data.
see: https://openzfs.github.io/openzfs-docs/msg/ZFS-8000-5E
config:
tank UNAVAIL insufficient replicas
raidz2-0 DEGRADED
ata-ST2000DM008-2FR102_ZFL688AZ OFFLINE
ata-ST2000DM001-1CH164_W1F4C8RS ONLINE
ata-ST2000DM001-9YN164_Z2F0GPQR ONLINE
ata-ST2000DM008-2UB102_WFL6G6CL ONLINE
ata-ST8000DM004-2U9188_ZR14YM54 ONLINE
ata-ST2000DM008-2FR102_ZFL689C5 ONLINE
ata-ST8000DM004-2CX188_ZCT0DCK7 UNAVAIL
logs
ata-INTENSO_SSD_AA000000000000003108 ONLINE
What can I do now to get my data back?
Any help is highly appreciated
Last edited: