Article 539PY Problem with swapping HDD from zpool

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!latest?d=yIl2AUoC8zA latest?i=156eZgazuxg:BZovaTx6yOU:F7zBnMy latest?i=156eZgazuxg:BZovaTx6yOU:V_sGLiP latest?d=qj6IDK7rITs latest?i=156eZgazuxg:BZovaTx6yOU:gIN9vFw156eZgazuxg
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments