I have created the Azure Blob and tried to mount it with blobfuse2 but I couldnot find the mount if I do df -h ?

Manish Reddy 0 Reputation points
2024-11-24T15:51:17.0766667+00:00

I have created the Azure Blob but while mounting it with my VM using blobfuse2 I couldn't see the mount if I do df -h and access to location of mount was also not possible.

Followed the below command
sudo blobfuse2 mount --config-file=/etc/blobfuse/blobfuse.yaml /mnt/blobfuse

Azure Blob Storage
Azure Blob Storage
An Azure service that stores unstructured data in the cloud as blobs.
3,202 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Azar 29,520 Reputation points MVP Volunteer Moderator
    2024-11-24T18:03:05.03+00:00

    Hi there Manish Reddy

    First, make sure that there were no errors during the blobfuse2 mount process. You can add --debug to the command to get more detailed logs. You can also run mount | grep blobfuse2 to see if the mount is active. If it's not showing, try unmounting and remounting with sudo blobfuse2 unmount /mnt/blobfuse. Also, double-check the blobfuse2 configuration file (/etc/blobfuse/blobfuse.yaml) to ensure that the correct parameters, such as the storage account, key, and container name, are properly set. Sometimes, df -h may not display blob mounts, so try using mount or lsblk to check if the mount is successful.

    If this helps kindly accept the answer


  2. Hari Babu Vattepally 3,345 Reputation points Microsoft External Staff Moderator
    2024-11-25T07:14:30.7633333+00:00

    Hi @Manish Reddy

    Greetings! Welcome to Microsoft Q&A Forum. Thanks for posting your query here.

    In addition to above recommended solution from Azar, we suggest you follow the below and give a try.

    Please follow 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
    

    Also, please refer the additional link which helps with the commands related to blobfuse2 mount commands and how to use the BlobFuse2 command set.

    There might also be a permission issue, please ensure that you have necessary permissions to access the mount point /mnt/blobfuse

    You must grant access to the storage account for the user who mounts the container. The most common ways to grant access are by using one of the following options:

    • Storage account access key
    • Shared access signature
    • Managed identity
    • Service principal

    You can provide authorization information in a configuration file or in environment variables.

    However, also please try unmounting and remounting the Blob storage.

    I hope by following the above solutions helps in resolving the issue. If the still persists, please helps in providing the error details, we will be glad to assist you closely.


    I hope this helps! Let me know in the comments if you have further questions. Comment is the fastest way to reach the experts for any questions or help you need.

    Please don’t forget to Accept Answer and hit Yes for "was this answer helpful" wherever the information provided helps you, this can be beneficial to other community members for remediation for similar issues.


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.