I have PVE host running for 5+ years. It was set up on couple of 2Tb HDDs in zfs mirror, and now it's time to change these disks with newer ones. I brought 10Tb HDDs, and plan the following:
- partition new disks so it has layout of old 2Tb disks, but the last partition will accomodate all 10Tb of space.
- remove one "old" disk from rpool pool
- add "new" disk to rpool
- wait until resilver is done
- repeat the same for second pait of "old" and "new" disk.
Seems this is not completely safe since there will be time when I have only 1 disk in pool, but this seems to be easy to understand step-by-step plan, and it also can be done online, without interrupting PVE work for long.
The only alternative I can see is booting from LiveCD, then install PVE on new disks (but I need to rename rpool before that, right?) and copy data to new pool from old one, isn't it?
- partition new disks so it has layout of old 2Tb disks, but the last partition will accomodate all 10Tb of space.
- remove one "old" disk from rpool pool
- add "new" disk to rpool
- wait until resilver is done
- repeat the same for second pait of "old" and "new" disk.
Seems this is not completely safe since there will be time when I have only 1 disk in pool, but this seems to be easy to understand step-by-step plan, and it also can be done online, without interrupting PVE work for long.
The only alternative I can see is booting from LiveCD, then install PVE on new disks (but I need to rename rpool before that, right?) and copy data to new pool from old one, isn't it?