Re-provisioning a node, Volumes lost? #886
-
We have bare metal servers. They have two disks. We plan to use one disk for the operating system, the second for topolvm. When we re-provision a node the first disk will get erased and a new node will get created (we use cluster API). If the topolvm daemon set gets installed on the new node, will topolvm find the existing volumes on the second disk? Is topolvm able to make these volumes available again (with the original content, some Terrabyte of data)? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 7 replies
-
No, topolvm doesn't migrate the PVC and the corresponding data in the second disk to the new node. It's necessary for users to migrate data by themselves. In your case, the following steps are necessary.
|
Beta Was this translation helpful? Give feedback.
-
I guess you are be able to do what you want if you do the following two things,
However, topolvm only tests in the in-place node upgrade environment (node resource is not re-created during K8s upgrade). Please verify whether this solution works carefully by yourself. |
Beta Was this translation helpful? Give feedback.
I misunderstood what @guettli said because the above description say PVC names but actually you want to set PV names(and another paragraphs is about "PV name" correctly).
PV name is not assigned by topolvm, but by csi sidecars. So this kind of change should be done in csi sidecars. In addition, if my understand correctly, both PVC and PV won't be deleted on node deletion, you can use the same PVC and PVC as expected if the new node name is th…