×

Mount Blobstorage to Instance Disk in Azure

By mounting blob storage as an instance disk you can handle your unstructured data, scaling up or down as your needs change. You no longer have to manage it, only pay for what you use, save money over instance disk space options.

Mount Blobstorage to Instance Disk in Azure

Blobfuse is a virtual file system driver for Azure Blob Storage, which allows you to access your existing block blob data in your Storage account through the Linux file system. Azure Blob Storage is an object storage service and therefore does not have a hierarchical namespace.


1.Open portal.azure.com




2. Get the access key




3. Create azure storage and blob




4. Get the access key




5. Connect to the instance



6. Mounting


    1. sudo -i

    2. wget https://packages.microsoft.com/config/ubuntu/16.04/packages-microsoft-prod.deb

    3. dpkg -i packages-microsoft-prod.deb

    4. apt-get update

    5. apt-get install blobfuse

    6. mkdir /mnt/resource/blobfusetmp

    7. chown <youruser> /mnt/resource/blobfusetmp

    8. Nano /mnt/resource/fuse_connection.cfg

      1. accountName myaccount
        accountKey myaccesskey==
        containerName mycontainer

    9. chmod 777 fuse_connection.cfg

    10. mkdir /mycontainer

    11. blobfuse /mycontainer --tmp-path=/mnt/resource/blobfusetmp  --config-file=/mnt/resource/fuse_connection.cfg -o attr_timeout=240 -o entry_timeout=240 -o negative_timeout=120 -o dir_mode=770 -o file_mode=666 -o nonempty




Trendy