[SOLVED] Adding more disks to an already exist ZFS RaidZ1

Sorry for necroing this thread. But is it true that a newly added vdev will not get old data kinda "rebelanced/resilvered" when you add one? So whats the best practice for increase a zfs-pool for a pbs for example, that has already multiple vdevs? Just wanted to have a confirmation that this is really the case that the new vdev will only be used for new data?

Edit: https://www.reddit.com/r/zfs/comments/8za4p1/adding_vdevs_to_pool_what_happens_to_the_existing/

Would that also mean, the pools prev vdevs (for example 4 raidz2 vdevs) could get full, although there would be enough space available on the new added vdev(s)? Any way to force a redistribution?

Edit 2: another source by @Dunuin that is interesting: https://forum.proxmox.com/threads/zfs-vdev-expansion.115640/#post-500079

Edit 3: @aaron also mentioned that it does and CAN NOT redistribute. Has there been something changed since your post?
https://forum.proxmox.com/threads/how-to-add-vdev-with-the-serial-number-of-hdds.97060/post-420665

can you give some insights or a confirmation and whats the best to do? Customer has already reeeeeeeeeeally much data on it, recreating is kinda pain for the customer. What would happen if we add the vdevs to the existing pool without recreating it? Whats the worst that could happen?

Edit 4: I wonder if Garbage Collection PBS would kinda redistribute the data over time, because old data gets deleted some time, new one would have been written to all devices then. Is this a correct assumption?
 
Last edited:
What would happen if we add the vdevs to the existing pool without recreating it? Whats the worst that could happen?
In ZFS, new data is written to the least full vdev.
If you add a vdev to an already existing pool, ZFS will write to the new vdev UNTILL it equals other vdevs in empty space.

The worst that could happen? concurrent IOPS that could be directed to different vdevs goes to the same vdev.

But, if you are adding the same vdev type and size as the existing ones, I don't see a problem.
 
  • Like
Reactions: jsterr

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!