question

AnkitRathod-6794 avatar image
0 Votes"
AnkitRathod-6794 asked AnkitRathod-6794 commented

Aks || azure file share multiple mount point on single file share

Dear team,
I
want to create Multiple Mount Points(from single file share name) on single pod, and if I create multiple mount points with adding volume Mount point in my pod yaml, my data is shared between both the mount points(when i checked from inside the pods).

which I dont want, please suggest strategy for the same ?

Also my Storage Account is in RAGRS, and when I do a failover from one region to another region and once the failover is completed and now the Primary Region for the Stroage Account is Changed, my pods are mounted to Storage Account File Share, but pod lost the files in the mount point. , i had to recreate the Pod in order to get back my files in the mount point ., please suggest on how to over come this issue ??

azure-kubernetes-serviceazure-files
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

shivapatpi-MSFT avatar image
0 Votes"
shivapatpi-MSFT answered AnkitRathod-6794 commented

Hello @AnkitRathod-6794 ,
On your first query , I am trying to understand your use case scenario .
When 2 different mount points are referring to the same file share - they will definitely see the same contents . I am thinking the only option is to have a multiple file share to those mount points.
If you have a specific use case scenario - kindly let us know for better understanding.

For the second query -
I was able to repro the issue locally , it seems we need to recreate the POD after storage failover.

Can you try mounting the file share using persistent volume:

https://docs.microsoft.com/en-us/azure/aks/azure-files-volume





Regards,
Shiva.




· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi @shivapatpi-MSFT ,

thanks for your response, in my case, I have Storage account with Private endpoint in RA-GRS and replicating to another region and primary Storage account is mounted to AKS in two different region Respectively in active -active mode.

Now, I have failed over the storage Account to another region., and when i checked on the pods

I have seen the below error.

129466-image.png

note sure what is missed ..??


0 Votes 0 ·
image.png (270.9 KiB)