piraeus-operator icon indicating copy to clipboard operation
piraeus-operator copied to clipboard

How to replace nodes without reducing redundancy?

Open yeshl opened this issue 1 year ago • 1 comments

pv with placementCount: "2",how to delete node30 and add a new one to replace it without reducing redundancy?

| master20    | pvc-e8bc738f-633c-4942-83e1-84536c2b7622 | DfltDisklessStorPool |     0 |    1015 | /dev/drbd1015 |            | Unused | TieBreaker |
| node30 | pvc-e8bc738f-633c-4942-83e1-84536c2b7622 | pool-01              |     0 |    1015 | /dev/drbd1015 |  23.34 GiB | Unused |   UpToDate |
| node31 | pvc-e8bc738f-633c-4942-83e1-84536c2b7622 | pool-01              |     0 |    1015 | /dev/drbd1015 |  23.34 GiB | InUse  |   UpToDate |

yeshl avatar Nov 21 '24 06:11 yeshl

Simplest would be:

  • Add the new node
  • Run kubectl cordon <old-node>
  • Run linstor node evacuate <old-node>, wait for all resource to sync up.
  • Delete the node from kubernetes

WanzenBug avatar Nov 25 '24 08:11 WanzenBug