Here is my plan to move from UFS single drive to ZFS mirror.
The server has two drives of equal specifications. The second drive is currently holding backups and is formatted to UFS. So something like this.
At this stage is a problem that I wouldn't be able to put ZFS on the first drive without wiping the existing root partition?
So an alternative plan would be to also transfer root files to the second HDD along with other files making that HDD the new boot device which gives freedom to convert the first drive so it can be used in a ZFS mirror.
The server has two drives of equal specifications. The second drive is currently holding backups and is formatted to UFS. So something like this.
- Remove data of second drive, move backups elsewhere etc.
- Create a partition to hold the ZFS data on the second drive, not using maximum capacity of the drive. Probably around 80-90%.
- Create a zpool and filesets on the drive. The ones created would hold all files except root files, this won't be a ZFS on root.
- Reboot the server into some kind of recovery mode eg. mfsBSD.
- Whilst in offline recovery transfer all non root partition files to the ZFS drive. (Not sure of best command to use here to preserve perms etc.)
- Configure loader.conf for ZFS.
- Configure fstab for ZFS.
- Reboot into ZFS system with root still being UFS.
At this stage is a problem that I wouldn't be able to put ZFS on the first drive without wiping the existing root partition?
So an alternative plan would be to also transfer root files to the second HDD along with other files making that HDD the new boot device which gives freedom to convert the first drive so it can be used in a ZFS mirror.