Linux 上的 Azure Blobfuse - 如何在 Azure 上创建 tmp-path

Blobfuse with Azure on Linux - how to create tmp-path on Azure

我们使用下面的命令将 Azure Blob 作为文件夹挂载到 CentOS Linux 机器

    sudo blobfuse /mnt/azureblob/ --tmp-path=/mnt/resource/blobfusetmp  
    --config-file=/home/mladmin/fuse_connection.cfg 
    -o attr_timeout=240 -o entry_timeout=240 -o nonempty #
    -o negative_timeout=120 -o allow_other

配置文件(fuse_connection.cfg)如下

accountName xxx
accountKey key
containerName container

在 MLCP 过程中,我们遇到了以下错误 XDMP-MERGESPACE:由于磁盘 space 限制而未合并,需要 =4740MB,有 =2739MB

所以当我们查看它时,我们发现问题出在临时文件夹磁盘大小上。

我们已经迁移到 Azure 以确保我们不必担心磁盘大小。 现在 -tmp-path 是强制性的,所以问题是我们如何将 -tmp-path 设置为 Azure blob?

对于你的问题,你需要了解tmp路径是什么意思,它意味着当你打开你的VM上挂载的blob中的文件时,所有打开的文件都会存储在tmp路径中。所以tmp路径应该有足够的空间来存放打开的文件。

Blobfuse stores all open file contents in the temporary path. Make sure to have enough space to accommodate all open files.

所以根据我的建议,如果您不知道要存储多少 space 打开的文件,您可以确保 tmp 路径与您的 blob 一样大。比如blob是5gb,那么tmp路径也应该有5gb。