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のサンプルを参考にしております。
わかる方がいましたらご教授お願いいたします。
あなたの回答
tips
プレビュー