ZFS migrate a pool from HDD to SSD?

Hi,
running a zfs pool on SSDs is not new anymore, so my question is: are there any things to take into consideration besides replacing one HDD at a time by a new SSD and let zfs resilver, like we would do to replace a faulty drive?

Will zfs take care of TRIM and other ssd related stuff?

It is a raidz2 pool. It is running 24*7.
 
I have some experience with replacing HDD with SSD and it was successful and unsuccessful. The unsuccessful result - a lot of zfs ro/rw checksums on pool with a huge RW operations. Why? I'm not sure for 100%, but I suppose because of different block size: old HDD had 512, but new SSD had 4k. The only way in this case is to make another pool and use zfs send/receive with snapshots, then again with diff snapshots.
But, if you don't have a huge operation, you can try.
 
but I suppose because of different block size: old HDD had 512, but new SSD had 4k

skeletor, sorry to deviate from the main topic of the thread here; does this have to do with disk partitioning? I used to use ssd/nvme with a single GPT partition aligned to 1M given to the zpool before, but recently I started giving the whole disk to zpool, without any partitioning.
 
skeletor, sorry to deviate from the main topic of the thread here; does this have to do with disk partitioning? I used to use ssd/nvme with a single GPT partition aligned to 1M given to the zpool before, but recently I started giving the whole disk to zpool, without any partitioning.
No. It depends on disk model (512 or 4k block size) and it related to ashift ZFS pool.
 
  • Thanks
Reactions: drr
Back
Top