ZFS Expansion Help

liamstears

New Member
Oct 20, 2022
8
0
1
I am about to create a new ZFS mirror pool with two 2tb drives, in the future however I would like to expand this to three drives using raidz, how can I go from a mirrored pool with 2 drives to a 3 drive raidz?
 
how can I go from a mirrored pool with 2 drives to a 3 drive raidz?
I think the only possibility is deleting the whole mirror and creating a new raidz. This is not Proxmox specific, so maybe ZFS experts and forums know better than me.

EDIT: If you care about your data, you'll have backups which you can then restore on the raidz (since you lose the data on the mirror when you delete it).
 
Last edited:
  • Like
Reactions: Kingneutron
Right you build a new RaidZ1 Pool an copy then the Files with the ZFS Tool send .. | ZFS receive .. to the new Pool.
But if there are HDDs in you pool, you need a ZFS Special Device of the same class for the zfs meta data. And have the also other option, small files to store there also.

You can then add then add other partions for ZFS ZIL Logfile and/ or ZFS cache.

Last week i use 2x 4 TB Seagate IronWolf Pro 4TB HDDs with 2x 1 GB NVMe Pcie 4 x4 and add ZFS special device, ZFS ZIL Logfile and ZFS cache to my new pool.
The setup was tricky, because i use the 2x NVMe also as zfs mirror rpool device.
 
Do you intend on using the raidz1 for storage or VMs? Storage will be fine but I/O for VMs will be too slow.

You can expand a mirror into a "RAID10 equivalent" by adding 2 more drives of equal (or larger) size, that is more ideal for VM usage.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!