azure aks nodepool can not create partition

Chaiyapon Singsiri 21 Reputation points
2021-08-01T16:25:37.64+00:00

hello everyone

i have some problem when i want to create new partition on azure aks nodepool

i already attach an existion disk

119642-image.png

119500-image.png

119626-image.png

ref: https://learn.microsoft.com/en-us/azure/virtual-machines/linux/attach-disk-portal

Azure Kubernetes Service (AKS)
Azure Kubernetes Service (AKS)
An Azure service that provides serverless Kubernetes, an integrated continuous integration and continuous delivery experience, and enterprise-grade security and governance.
2,142 questions
0 comments No comments
{count} votes

Accepted answer
  1. Sam Cogan 10,747 Reputation points MVP
    2021-08-03T09:31:07.13+00:00

    You should not be manually adding data disks to AKS nodes, this will break with the nodes get updated or recreated.

    What are you wanting the storage for? If this is for pods, then you should be using PVC's attached to Azure Disks, not attaching the disk manually.


1 additional answer

Sort by: Most helpful
  1. shiva patpi 13,256 Reputation points Microsoft Employee
    2021-08-03T00:57:38.797+00:00

    Hello @Chaiyapon Singsiri ,
    Thanks for reaching out to Microsoft Q & A.
    Can you try parted with flag -l

    120001-image.png

    120002-image.png

    One more thing which I observed was , you were trying to attach the data disk directly to VMSS instance ?
    I think, that's the not the best practice. If you directly attach a data disk to VMSS instance - after reboot the disk gets wiped off. Instead add the data disk at VMSS level (Not instance level)

    Kindly let us know if that helps.

    Please make sure to UpVote and accept the answer where ever it helps out in the resolution.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.