Problem with swapping HDD from zpool
by Peterken from LinuxQuestions.org on (#539PY)
Hi guys
With a lot or reading/puzzling I have managed to a Debian Buster server with 1 SSD for OS and 1 HDD for data, both RAIDZ-0.
I've created a single drive zpool with the HDD and shared it with samba.
This has worked well but now I wanted to replace the HDD with a bigger one.
It's a SFF housing so not possible to mount them both permanently.
I did swap the HDD's and somehow got the new one into the existing pool and was able to write/copy data to it.
By reconnecting the original drive no data was visible so I went back to the original setup.
Except for the pool becoming suspended after some time repeatedly (which I solve with zpool clear 'mypool'), I now can access the data again.
What I would like to achieve: replace old drive with newer (used, currently NTFS formatted) one, just like the current configuration, and move/copy the data over.
Can anyone give me some pointers on how to handle this?
FYI: I have basic *nix knowledge and new to ZFS, so hope my explanation is clear.
TIA!


With a lot or reading/puzzling I have managed to a Debian Buster server with 1 SSD for OS and 1 HDD for data, both RAIDZ-0.
I've created a single drive zpool with the HDD and shared it with samba.
This has worked well but now I wanted to replace the HDD with a bigger one.
It's a SFF housing so not possible to mount them both permanently.
I did swap the HDD's and somehow got the new one into the existing pool and was able to write/copy data to it.
By reconnecting the original drive no data was visible so I went back to the original setup.
Except for the pool becoming suspended after some time repeatedly (which I solve with zpool clear 'mypool'), I now can access the data again.
What I would like to achieve: replace old drive with newer (used, currently NTFS formatted) one, just like the current configuration, and move/copy the data over.
Can anyone give me some pointers on how to handle this?
FYI: I have basic *nix knowledge and new to ZFS, so hope my explanation is clear.
TIA!