Hi everyone.
I have seen tons of different information regarding this question, so I'll try to sum it up here. I'm going to create an additional ZFS pool on the SSD and migrate the system there, keeping the data files and home directory on the old HDD (ZFS too). I will be using FreeBSD 9.2-RELEASE and would like to have TRIM enabled and working. As far as I learned, I can do the alignment in the following way (let's assume the SSD is going to be ada1:
So, the questions are:
I have seen tons of different information regarding this question, so I'll try to sum it up here. I'm going to create an additional ZFS pool on the SSD and migrate the system there, keeping the data files and home directory on the old HDD (ZFS too). I will be using FreeBSD 9.2-RELEASE and would like to have TRIM enabled and working. As far as I learned, I can do the alignment in the following way (let's assume the SSD is going to be ada1:
- Create partitions (not sure if the freebsd-boot partition needs to be alighed too)
# gpart create -s gpt ada1
# gpart add -b 64 -s 128k -t freebsd-boot -a 4k ada1
# gpart add -t freebsd-zfs -b 2048 -a 4k -l ssd0 ada1 - Create a temporary 4k aligned layer for ZFS, create pool and remove the gnop layer:
# gnop create -S 4096 /dev/gpt/ssd0
# zpool create ssd /dev/gpt/ssd0.nop
# zpool export ssd
# gnop destroy /dev/gpt/ssd0.nop
# zpool import ssd - Create ZFS data sets, migrate the data, write bootcode etc.
So, the questions are:
- Will that work? Is that a good way to do this?
- Will be there any problems if there is would be another pool on the old HDD, not 4k aligned (it has 512b sector size)?