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
Copy file name to clipboardExpand all lines: documentation/modules/cruise-control/proc-cruise-control-moving-data.adoc
+58Lines changed: 58 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -334,3 +334,61 @@ In this example, the log directories for volumes 1 and 2 no longer have partitio
334
334
]
335
335
}
336
336
----
337
+
338
+
. To prevent empty volumes from being used in future rebalances or topic allocations, update the configuration and remove the associated persistent volume claims (PVCs).
339
+
340
+
.. Update the node pool configuration to exclude the volumes.
341
+
+
342
+
WARNING: Before making changes, verify that all partitions have been successfully moved using `kafka-log-dirs.sh`.
343
+
Removing volumes prematurely can cause data loss.
344
+
+
345
+
In this example, volumes 1 and 2 are removed, and only volume 0 is retained:
346
+
+
347
+
.Updated node pool configuration with single volume JBOD storage
348
+
[source,yaml,subs=attributes+]
349
+
----
350
+
apiVersion: {KafkaNodePoolApiVersion}
351
+
kind: KafkaNodePool
352
+
metadata:
353
+
name: pool-a
354
+
labels:
355
+
strimzi.io/cluster: my-cluster
356
+
spec:
357
+
replicas: 3
358
+
roles:
359
+
- broker
360
+
storage:
361
+
type: jbod
362
+
volumes:
363
+
- id: 0
364
+
type: persistent-claim
365
+
size: 2000Gi
366
+
deleteClaim: false
367
+
# ...
368
+
----
369
+
370
+
.. Delete the unused PVCs.
371
+
+
372
+
PVCs are named using the format `data-<id>-<kafka_cluster_name>-kafka-<pod_id>`.
0 commit comments