Wednesday 5 August 2020

Mounting Azure File Share with CentOS

Hello folks, welcome back to my blog and this around, we will be looking into how to mount Azure File Share on Linux.
See the source image

A bit background of this setup to have centralize storage other than Linux Gluster . So i opt for azure file share. let go with the setup 

Component needed 

1. Linux machine  

2. Azure Storage Account - Kind = File Storage
 


Just to let everyone know, it can normally can be mount via command provided by azure portal.

for my case it will be a bit different as i need let apache engine to have full access to that particular file share.. 

so step 1. 
 1.1 Locate the storage account name and access key, copy and paste it in notepad. 
 
1.2 Create one file to store that info
     The format would be like 

     


1.3 Add the mount folder in fstab 

1.4 After that use the sudo command to mount it. 

Step 2. Test the Mounting 
 2.1 use touch command to create any test file 

 2.2 Go to azure portal, open the file share and check 
     

look like it was mounted properly. 


Happy testing and use the technology, some reference as below 

Kubecost on AKS Part 02