Replace ZFS Disk by another

bartounet

Member
Dec 11, 2022
31
1
13
Hello
I have a cluster 2 nodes ( With Quorum Qdevice on RPI)

Node 1
  • ZFS Pool 1 disk 2To --> ZFS-CLUSTER-STORAGE
Node 2
  • ZFS Pool 1 disk 250Go --> ZFS-CLUSTER-STORAGE

There is HA and replication VM beetween Node 1 and Node 2 on this ZFS-CLUSTER-STORAGE

I would like replace my Disk about 250Go on Node2 by a 2To disk ( as node1)

Is there a process to do that ?


What i think to do.
  1. Move all VM on node 1 ( on ZFS-CLUSTER-STORAGE node 1)
  2. Delete replication VM on ZFS on every VM
  3. Delete ZFS-CLUSTER-STORAGE on node 2 (Wipe disk).
  4. Disable HA on all VM
  5. Power Off Node 2
  6. Remove Disk 250G / Install Disk 2To
  7. Power On Node 2
  8. Create ZFS-CLUSTER-STORAGE on node 2 on the 2To Disk
  9. Re create réplication VM beetween Node 1 and Node 2
  10. Move VM on node 2
  11. Réactivate HA on VM
 
WIth ZFS you can turn a single disk into a mirror (of two disks) and then back to a (other) single disk (with autoexpand it should grow to the full size). Lots of ZFS guides on the internet that can help with this.
 
  • Like
Reactions: news and UdoB