Azure Blob을 VM에 탑재

Oct 13 2020

Linux VM을 사용하여 Azure Blob을 탑재하려고하는데 스토리지 액세스 키를 사용하여 성공적으로 수행 할 수 있습니다. 마운트 할 다른 경로가 있습니까? 아마도 SAS 토큰 또는 AD 인증을 사용할 수 있습니다. 도움을 주시면 감사하겠습니다.

답변

StanleyGong Oct 14 2020 at 14:07

blobfuse를 사용 중이고 SAS 토큰을 통해 blob / container를 마운트하려는 경우 아래 단계를 시도하십시오.

  1. 공식 문서에 표시된 내용으로 connection.cfg 파일을 만듭니다. https://github.com/Azure/azure-storage-fuse/blob/master/connection.cfg

나의 경우에는 :

  1. 마운트 명령을 실행합니다.

    blobfuse / <-마운트 할 경로-> --tmp-path = / mnt / blobfusetmp -o attr_timeout = 240 -o entry_timeout = 240 -o negative_timeout = 120 --config-file = <-연결 경로. cfg 파일-> --log-level = LOG_DEBUG --file-cache-timeout-in-seconds = 120

나의 경우에는:

blobfuse /testcontainer --tmp-path=/mnt/blobfusetmp -o attr_timeout=240 -o entry_timeout=240 -o negative_timeout=120 --config-file=../connection.cfg --log-level=LOG_DEBUG --file-cache-timeout-in-seconds=120

보시다시피라는 컨테이너를 마운트했으며이 컨테이너 testcontainer에는 파일이 하나만 있습니다.

그리고 이것은 mount 명령의 결과입니다.

예외적으로 작동하는지 또는 도움이 더 필요한지 알려주십시오.