Replies: 3 comments 12 replies
-
The When you delete the PVC as you described, it is up to your Storage Class and volume configuration what happens with the PVs. Whether they are deleted as well or whether they are kept. After you delete the PVCs and restart the Strimzi operator, it will create new PVCs. And your storage class / storge provisioner will bind it to some PVs. Normally, these should be fresh empty PVs so you should start with an empty slate. TBH, I do not know what happened in your case. My best guess is that either you didn't deleted the PVCs (ir might take time etc.). Or maybe you did but your storage provisioner bound the new PVCs to the old PVs? Strimzi itself does not directly interact with the PVs and with the data, so I think it must have been something like that. Keep in mind that with Kafka replication, even one broker which keeps the data might replicate it to the others again over time. |
Beta Was this translation helpful? Give feedback.
-
@scholzj the operator logs show some patching on PVC , during the same time , will they be useful in any way?
|
Beta Was this translation helpful? Give feedback.
-
@scholzj , i was able to observe that the zookeeper snapshot file has all the old data(topics) which should get deleted when i deleted all the PVCs in the kafka namespace , based on the topics data in the zookeeper snapshot file , kafka data was created where each index and log file in /var/lib/kafka/data was just an empty file(with each file of size 10mb) , all this data was accumulated to around 200GB in each broker , i am trying to find out how the zookeeper was able to restore the old snapshot file even after i deleted all PVCs in the namespace , |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
@scholzj
we are running 3 brokers with 3 zookeeper , using the 0.27 version of the operator ,
this is the volume section of the Kafka broker in the cluster yaml ,
last week when the data was almost full , 400GB , i stopped the cluster operator first , scaled down ZK , Kafka .
Later I deleted all the PVCs for Kafka and Zookeeper to start the cluster as a fresh one , it was all good and data started accumulating when we started using the fresh kafka cluster, but today I noticed that all the old data which got deleted when i deleted the PVC got restored again , and the PVC is almost full again ,
is this expected with my setting of deleteClaim as "false" , please could you help me on this ?
Beta Was this translation helpful? Give feedback.
All reactions