Migrate Raid z-1 to mirror

rupint

New Member
Apr 23, 2023
4
2
3
Due to lack of pcie slots available I want one of my m.2 slots back. I want to add sata ports with a m.2 to sata adapter.

Currently I have a raid z-1 pool with the 3 m.2 drives, for proxmox. Anyone know how to migrate the pool to a mirror?

To put it simply I want to give only 2 drives to proxmox instead of 3 and not lose any config, there is a lot of gpu passthrough config that I would like to avoid having to do again

Tried to lookup, but instructions are far and vague, most promising result I found was zfs send and receive commands should be used

Anyone has any experience and can help would be appreciated
 
Last edited:
To put it simply I want to give only 2 drives to proxmox instead of 3 and not lose any config, there is a lot of gpu passthrough config that I would like to avoid having to do again
Make sure to make a backup, if you don't want to do it again (when your drives or other stuff fails or you make a mistake somewhere).
Currently I have a raid z-1 pool with the 3 m.2 drives, for proxmox. Anyone know how to migrate the pool to a mirror?
Best to use different drives but if you really want to do this in-place: detach one of the drives from the RAIDz1 (and your data is now at risk without redundancy). Create a bootable rpool (but with a different name) on that single detached drive. Copy everything over with zsend/zreceive. Reboot from the new pool and delete the old pool and attach one of the other drives to it to form a mirror. Rename the new pool to rpool.

All those steps are error prone and you could easily lose all your data. I also don't remember the details of each step (but only that it is possible) and you might need a way to boot in a Live Linux rescue USB with recent enough ZFS support (like maybe the Proxmox installer).
I would make a backup and document your current setup and reinstall Proxmox and reconfigure it and restore VM/CTs from backups.
 
  • Like
Reactions: waltar

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!