You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Lets say I run a Talos cluster with some Piraeus/Linstor/DRBD backed by ZFSTHIN datasets (or LVM PVs for that mater). Lets say I recreate the cluster for xyz reason (I lost the Piraeus operator state). The storage datasets (PVs) are still there on the nodes physical disks. How would you "import" them back into Piraeus/Linstor/DRBD CSI stack (If possible at all) ??
I will give you a concrete example :
This morning a nuked a cluster. Upon recreation the cluster is "clean" (k linstor resource list-volumes returns null). On two of the nodes I have :
/ # zfs list
NAME USED AVAIL REFER MOUNTPOINT
zpool-1 25.5G 22.5G 96K /zpool-1
zpool-1/pvc-4888c2c6-f3c9-4ffa-b2de-ee2498055ef2_00000 21.9G 22.5G 21.9G -
Is there any "easy" way for the operator to recreate automagically the linstor resources associated with this pvc such that I can then bind it to an existing workload ? How would you go on about this ?
thanks
B.
The text was updated successfully, but these errors were encountered:
Is there any "easy" way for the operator to recreate automagically the linstor resources associated with this pvc such that I can then bind it to an existing workload.
The answer is no. If you nuke the kube API LINSTOR will lose it's state. You could create a script that tries to find the "most plausible" state by looking at existing backing devices and DRBD metadata (i.e. all zvols and LVs will be named "pvc-_00000".
If you then use that collected information to make the appropriate API requests to LINSTOR, you could get LINSTOR to nearly the original state. Afterwards you would just have to translate the LINSTOR resources to PV and PVCs, which should be relatively straight forward.
Hello
Lets say I run a Talos cluster with some Piraeus/Linstor/DRBD backed by ZFSTHIN datasets (or LVM PVs for that mater). Lets say I recreate the cluster for xyz reason (I lost the Piraeus operator state). The storage datasets (PVs) are still there on the nodes physical disks. How would you "import" them back into Piraeus/Linstor/DRBD CSI stack (If possible at all) ??
I will give you a concrete example :
This morning a nuked a cluster. Upon recreation the cluster is "clean" (
k linstor resource list-volumes
returns null). On two of the nodes I have :Is there any "easy" way for the operator to recreate automagically the linstor resources associated with this pvc such that I can then bind it to an existing workload ? How would you go on about this ?
thanks
B.
The text was updated successfully, but these errors were encountered: