Tôi có Ubuntu 20.04 trên phiên bản đám mây. Phiên bản này nằm trên Cơ sở hạ tầng đám mây của Oracle (OCI). Tôi đã tạo ở đó một bộ lưu trữ đối tượng mà tôi thêm thủ công bằng lệnh sau
s3fs WTX-Cotton-bucket /home/ubuntu/wtx_cotton_storage -o passwd_file=${HOME}/.passwd-s3fs -o url=https://axrpuscetkut.compat.objectstorage.us-ashburn-1.oraclecloud.com/ - onomultipart -o use_path_request_style -o endpoint=us-ashburn-1 -o nonempty
Khi tôi khởi động lại cá thể. Lưu trữ không được gắn kết. Do đó, tôi cần thêm nó vào /etc/fstab để mount mỗi khi PC khởi động. Đây là mã hiện tại của tôi để thêm nó:
WTX-Cotton-bucket /home/ubuntu/wtx_cotton_storage fuse.s3fs use_path_request_style,passwd_file=/home/ubuntu/.passwd-s3fs,url=https://axrpuscetkut.compat.objectstorage.us-ashburn-1.oraclecloud.com, điểm cuối=us-ashburn-1 kernel_cache,multipart_size=128,parallel_count=50,multireq_max=100,max_background=1000,_netdev
Đây là những hướng dẫn từ một trang web tiên tri:
<bucket_name> /path/to/<local_directory_name> fuse.s3fs use_path_request_style,passwd_file=/root/.s3fs-password,url=https://<namespace_name>.compat.objectstorage.<region_ID>.oraclecloud.com,endpoint= <region_ID> kernel_cache,multipart_size=128,parallel_count=50,multireq_max=100,max_background=1000,_netdev{code}
Sau khi thêm nó vào /etc/fstab. tôi làm gắn sudo -a
và tôi nhận được thông báo lỗi này:
mount: /etc/fstab: lỗi phân tích ở dòng 25 -- bỏ qua
mèo -v /etc/fstab
WTX-Cotton-bucket /home/ubuntu/wtx_cotton_storage fuse.s3fs use_path_request_style,passwd_file=/home/ubuntu/.passwd-s3fs,url=https://axrpuscetkut.compat.objectstorage.us-ashburn-1.oraclecloud.com, điểm cuối=us-ashburn-1 kernel_cache,multipart_size=128,parallel_count=50,multireq_max=100,max_background=1000,_netdev