[SOLVED] Splitting existing pool

Jun 14, 2021
3
0
1
Hello!

I've run into a problem where I have a raidz-2 pool with 6 devices of whom 4 are 1TB and 2 just 500GB.
1623662492302.png

In order to use most of these disks, the best solution would probably be to split this pool in two. I'm thinking I could keep this pool as is - raidz2, but detach the two 500GB disks (leaving me with a raidz2 bool consisting of 4 1TB disks) and create a new mirror pool with the two 500GB disks.

So, in theory, my actions should be something like this:
zpool offline pool wwn-0x5002538e09670244
zpool offline pool wwn-0x5002538e09670229
zpool detach pool wwn-0x5002538e09670244
zpool detach pool wwn-0x5002538e09670229
zpool zpool create -f -o ashift=12 mirror_pool mirror wwn-0x5002538e09670244 wwn-0x5002538e09670229

fdisk -l output for these devices:
1623663401482.png

Is that it or is there anything else I should do?

Also, since I'm inexperienced with these things, I'm a bit concerned about any possible damage to existing data - would there be any danger to existing data while performing these actions, or will my VM's stay the same?


Any help would be greatly appreciated, thanks in advance.
 
You can only detach vdevs from a raidz, therefore you have to setup your pool from scratch.
Dang, so that means that the only option is to
Code:
zpool destroy -f pool
, then create two new pools (raidz-2 and raid1 (mirror)), and reset all VM's and CT's via backup files?
 

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!