Welcome to the Microsoft Q&A Platform! Thank you for asking your question here.
•\t Check Disk Status: Confirm the managed disks you are working with are unattached, healthy, and properly formatted. They must be empty and not have any file systems on them.
•\t Verify Permissions: Ensure that your AKS cluster's managed identity has the Microsoft.Compute/disks/read permission for disks in your Azure subscription.
•\t Update Storage Pool YAML: Have your YAML file properly reference each disk's full path and be sure it is correct. A revised example looks like this
apiVersion: containerstorage.azure.com/v1
kind: Storage Pool
metadata:
name: sp-preprovisioned
namespace: acstor
spec:
poolType: azureDisk
disks:
- reference: "/subscriptions/{subscription_id}/resource Groups/{resource_group_name}/providers/Microsoft.Compute/disks/{disk_name1}"
- reference: "/subscriptions/{subscription_id}/resourceGroups/{resource_group_name}/providers/Microsoft.Compute/disks/{disk_name2}"
• Create PV, PVC, and Storage Class: After ensuring the pool is created successfully with the correct capacity, create the PV, PVC, and Storage Class as outlined in your cluster configuration.
• Re-create Pool if Necessary: If the problem still exists, remove the storage pool and re-create it after verifying the above steps.
kubectl logs -n acstor <container-storage-controller-pod-name>
Recreate Pool if Needed: If the issue persists, delete the storage pool and recreate it after checking the above steps.
These actions should resolve the "Unknown" status and enable proper integration of the pre-provisioned disks into your Azure Container Storage environment.
Please check these documents for the reference
https://learn.microsoft.com/en-us/azure/storage/container-storage/container-storage-aks-quickstart?source=recommendations
https://learn.microsoft.com/en-us/azure/storage/container-storage/install-container-storage-aks?source=recommendations
If the comment was helpful, please don't forget to accept answer.
Thank you.