How to add new disk to ZFS pool?

Maher Khalil

Member
Jul 11, 2021
102
4
18
40
Is it possible to add new disks to the existing pools without building the arrays?
if yes, how?
 

aaron

Proxmox Staff Member
Staff member
Jun 3, 2019
2,456
345
88
It is, but can you please post some infos about your current pool and how you would like to add new disks? This way we can avoid any, potentially disastrous, misunderstanding :)
 

Maher Khalil

Member
Jul 11, 2021
102
4
18
40
I have installed proxmox in zfs raid mirror 2 x 250GB NVMe => first pool
I have created second zfs pool as raid mirror 2 x 1.6 TB SSD => second pool
I have created third zfs pool as raidz1 4 x 2.4 TB HDD ==== => third pool
 

aaron

Proxmox Staff Member
Staff member
Jun 3, 2019
2,456
345
88
So which pool would you like to add new disks to and in what manner?

The output of zpool status would also be nice :)
 

Dunuin

Famous Member
Jun 30, 2020
3,735
778
143
Germany
You can add new drives to your pools but how to do it and what the limitations are depends on the actual pool setup.
For example adding disks to your first pool is complicated because ZFS is only used on one partition and stuff like the bootloader partition and so on need to be copied manually.
For the second pool you can only add drives in pairs. So you would need to add a additional mirror to get a 4 disk striped mirror.
For the third pool you could add single disks but that will only increase the capacity and not the performance. If you want the full performance and capacity you would have to destroy and recreate that raidz1 pool.
 

Maher Khalil

Member
Jul 11, 2021
102
4
18
40
understood
one more question please is when I do reinstall for proxmox on the first pool disks, the new installation will not detect the second pool and third pool.
How to arrange for all pools detection after new installation?
 

Dunuin

Famous Member
Jun 30, 2020
3,735
778
143
Germany
You need to import your pools first (zpool import) and then add these pools as a ZFS storage to your PVE (in webUI under: Datacenter -> Storage -> Add -> ZFS)
 

Dunuin

Famous Member
Jun 30, 2020
3,735
778
143
Germany
Don't forget to backup your /etc folder. Your VM/LXC disks on the other ZFS pools are useless without the VM/LXC config files in "/etc/pve/qemu-server" and "/etc/pve/lxc".
 

Dunuin

Famous Member
Jun 30, 2020
3,735
778
143
Germany
Yes and I would backup them also on an regular basis in case your system disk suddenly dies.
 

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 your own in 60 seconds.

Buy now!