Migrating from ZFS to ZFS RAID1 & Sanity Check

Fazio8

New Member
Jan 9, 2023
24
1
3
Hello,
I have a mini pc with 2x NVME SSDs 1TB.
So far, I used one SSD for Proxmox OS, templates, ISOs, etcetera and the other SSD for VM/LXC storage. Both SSD are using ZFS filesystem
I'm now considering to consolidate everything in 1 disk only and migrate to ZFS RAID1/mirror for failure mitigation.

- Can I move to ZFS RAID1 without reinstalling Proxmox? I can empty the VM SSD and then add it to the ZFS pool? How can I do that?
- As far as I understood, the performances should be the same as 2 different ZFS pool (current situation, SSD are the same). Any disadvantages/downsizes besides losing half of the storage compared to having 2 different SSDs with different purpose?

Thank you!
 
Interesting, thank you!
So if I understood correctly, you were able to "clone" the sda to the new sdc with the following commands?
Do you know if this works starting with a ZFS single disk scenario?

Code:
# sgdisk <healthy bootable device> -R <new device>
# sgdisk -G <new device>
# zpool replace -f <pool> <old zfs partition> <new zfs partition>

At this point, my final target would be to consolidate everything, including Proxmox OS, boot partitions and everything on 1 drive and then create the ZFS mirror spread on my 2 physical disks.
Technically speaking, with this behaviour I would be able to add a third disk, add it to the pool mirror, let it completing the mirror and then eventually remove disk 1 & 2 while keeping the environment up and running, correct?
 
Last edited: