You might experience any of the following symptoms:
In the vSphere Client:
In Kubernetes:
2023-07-07T12:42:33.265576301Z stderr F {"level":"error","time":"2023-07-07T12:42:33.265576301Z","caller":"wcp/controller.go:941","msg":"failed to expand volume: \"<volume ID>\" to size: <size> err failed to extend volume: \"<volume ID>\", fault: \"(*types.LocalizedMethodFault)(0xc000c9ee80)({\\n DynamicData: (types.DynamicData) {\\n },\\n Fault: (types.CnsFault) {\\n BaseMethodFault: (types.BaseMethodFault) <nil>,\\n Reason: (string) (len=16) \\\"VSLM task failed\\\"\\n },\\n LocalizedMessage: (string) (len=32) \\\"CnsFault error: VSLM task failed\\\"\\n})\\n\", ...}
This can happen if the disk expansion takes longer than the code anticipates and it times-out, so the MinIO Pods are not restarted.
If the MinIO Pods are not restarted by the scale-up process, the Pods do not pick up the new PersistentVolumeClaim and the new capacity is not made available to the NSXi platform.
This can be resolved by restarting the MinIO Pods.
In order to restart the MinIO Pods, the following steps can be followed from a 'kubectl' session or from any of the NSX Manager nodes.
Option #1: Running the commands from the NSX Manager nodes:
napp-k get statefulset -n nsxi-platform | grep minio
napp-k scale deploy minio -n nsxi-platform --replicas=0
napp-k scale deploy minio -n nsxi-platform --replicas=N
The number of replicas (N) was collected on step 2, however, there are usually 4 replicas of the MinIO Pods
Example:
napp-k scale deploy minio -n nsxi-platform --replicas=4
napp-k get pods -n nsxi-platform | grep minio
Option #2: Running the commands from a 'kubectl' session:
kubectl get statefulset -n nsxi-platform | grep minio
kubectl scale deploy minio -n nsxi-platform --replicas=0
kubectl scale deploy minio -n nsxi-platform --replicas=N
The number of replicas (N) was collected on step 2, however, there are usually 4 replicas of the MinIO Pods
Example:
kubectl scale deploy minio -n nsxi-platform --replicas=4
kubectl get pods -n nsxi-platform | grep minio