質問をすることでしか得られない、回答やアドバイスがある。

15分調べてもわからないことは、質問しよう!

新規登録して質問してみよう
ただいま回答率
85.48%
Amazon EC2

Amazon EC2は“Amazon Elastic Compute Cloud”の略称です。Amazon Web Services(AWS)の一部であり、仮想化されたWebサーバーのコンピュータリソースをレンタルできるサービスです。

Amazon S3

Amazon S3 (Simple Storage Service)とはアマゾン・ウェブ・サービスが提供するオンラインストレージサービスです。

AWS(Amazon Web Services)

Amazon Web Services (AWS)は、仮想空間を機軸とした、クラスター状のコンピュータ・ネットワーク・データベース・ストーレッジ・サポートツールをAWSというインフラから提供する商用サービスです。

Q&A

0回答

2451閲覧

s3fsでS3へのマウントが失敗する。

Yuta_for

総合スコア21

Amazon EC2

Amazon EC2は“Amazon Elastic Compute Cloud”の略称です。Amazon Web Services(AWS)の一部であり、仮想化されたWebサーバーのコンピュータリソースをレンタルできるサービスです。

Amazon S3

Amazon S3 (Simple Storage Service)とはアマゾン・ウェブ・サービスが提供するオンラインストレージサービスです。

AWS(Amazon Web Services)

Amazon Web Services (AWS)は、仮想空間を機軸とした、クラスター状のコンピュータ・ネットワーク・データベース・ストーレッジ・サポートツールをAWSというインフラから提供する商用サービスです。

0グッド

1クリップ

投稿2020/02/25 12:49

EC2インスタンス上のディレクトリをS3バケットへマウントするにあたり、s3fsコマンドを使用していますが、以下のようにInput/output errorが発生しマウントがうまくできません。

AmazonLinux2

1[ec2-user@ip-10-0-0-193 file]$ sudo s3fs mybucket-name /data/file/static -o allow_other,use_path_request_style 2[ec2-user@ip-10-0-0-193 file]$ 3[ec2-user@ip-10-0-0-193 file]$ ls -l 4合計 1 5drwxr-xr-x 2 www www 6 2月 1 07:52 cgi-bin 6drwxrwxrwx 1 root root 0 1月 1 1970 static 7drwxr-xr-x 4 www www 336 2月 8 08:54 static-old 8[ec2-user@ip-10-0-0-193 file]$ 9[ec2-user@ip-10-0-0-193 file]$ sudo cp -rp static-old/* static/ 10cp: `static/2020' を stat できません: Input/output error 11cp: `static/7019db4e583fe5b60e03ba982df774af957ae357.JPG' を stat できません: Input/output error 12cp: `static/IMG_0069.JPG' を stat できません: Input/output error 13cp: `static/Movable.png' を stat できません: Input/output error 14cp: `static/Screenshot from 2020-02-01 17-31-36.png' を stat できません: Input/output error 15cp: `static/accountsetting.png' を stat できません: Input/output error 16cp: `static/archives.html' を stat できません: Input/output error 17cp: `static/assets_c' を stat できません: Input/output error 18cp: `static/atom.xml' を stat できません: Input/output error 19cp: `static/favicon.ico' を stat できません: Input/output error 20cp: `static/index.html' を stat できません: Input/output error 21cp: `static/mt.js' を stat できません: Input/output error 22cp: `static/robots.txt' を stat できません: Input/output error 23cp: `static/rsd.xml' を stat できません: Input/output error 24cp: `static/styles.css' を stat できません: Input/output error 25[ec2-user@ip-10-0-0-193 file]$ 26[ec2-user@ip-10-0-0-193 file]$ cd static 27[ec2-user@ip-10-0-0-193 static]$ 28[ec2-user@ip-10-0-0-193 static]$ pwd 29/data/file/static 30[ec2-user@ip-10-0-0-193 static]$ touch test.txt 31touch: `test.txt' に touch できません: Input/output error 32[ec2-user@ip-10-0-0-193 static]$ 33[ec2-user@ip-10-0-0-193 static]$ 34[ec2-user@ip-10-0-0-193 static]$ mount | grep s3fs 35s3fs on /data/file/static type fuse.s3fs (rw,nosuid,nodev,relatime,user_id=0,group_id=0,allow_other) 36[ec2-user@ip-10-0-0-193 static]$ 37 38

staticディレクトリのマウントそのものはできているように見えるのですが、staticディレクトリ内にファイルを配置することができません。
オプション”use_path_request_style”はS3のバケット名に.(ドット)が含まれている時につけるオプションでそれ以外はs3fsのGitHubのサンプルを参考にしております。

わかる方がいましたらご教授お願いいたします。

気になる質問をクリップする

クリップした質問は、後からいつでもMYページで確認できます。

またクリップした質問に回答があった際、通知やメールを受け取ることができます。

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

guest

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

まだ回答がついていません

会員登録して回答してみよう

アカウントをお持ちの方は

15分調べてもわからないことは
teratailで質問しよう!

ただいまの回答率
85.48%

質問をまとめることで
思考を整理して素早く解決

テンプレート機能で
簡単に質問をまとめる

質問する

関連した質問