How can I get permanent blob container mount with BlobFuse2 in Linux VM ?

Galgani, Stefano 205 Reputation points
2023-08-25T09:20:36.5133333+00:00

Hi all,

I implemented the mount container inside Linux VM (RedHat 8.6) through blobfuse2 lib.

As I described the steps at the link . I put the necessary scripts and config files in a folder created by me (etc/blobfuse) inside the Linux VM.

Once performed the scripts the mount container worked fine, but after a little days , I was not able to find the mount inside Linux VM and I knew that nobody has had interaction with the Linux VM.

I'm assuming the VM lost the mount due to restart.

How can I get permanent blob container mount with BlobFuse2 lib in Linux VM ?

Could you provide a right solution to implement it ?

Thanks

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
9,035 questions
Azure Blob Storage
Azure Blob Storage
An Azure service that stores unstructured data in the cloud as blobs.
3,200 questions
{count} votes

Accepted answer
  1. Ramya Harinarthini_MSFT 5,366 Reputation points Microsoft Employee Moderator
    2023-08-25T10:01:05.05+00:00

    Galgani, Stefano

    Just wanted to check with you if you have followed the below steps to persist mount with BlobFuse2 lib mentioned in the article: https://github.com/Azure/azure-storage-fuse/wiki/Blobfuse2-Installation#persisting-mount

    1. Make sure the fuse package is installed (e.g., yum install fuse3 / apt-get install fuse3)
    2. Update config.yaml file with your preferred configuration.
    3. Edit /etc/fstab with the blobfuse script.

    Add the following line to use mount.sh:

    /<path_to_blobfuse2_mount.sh_file>/mount.sh   </path/to/desired/mountpoint>     fuse    defaults,_netdev 0 0
    

    OR

    Add the following line to run without mount.sh

    blobfuse2 /home/azureuser/mntblobfuse fuse defaults,_netdev,--config-file=/home/azureuser/config.yaml,allow_other 0 0
    
    
    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

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.