ceph高可用分布式存储集群13-优秀的对象存储挂载工具goofsys

Goofys 是使用 Go 编写,基于 S3 接口的 Filey 系统。

Goofys 允许你挂载一个 s3 bucket 作为一个 Filey 系统。为什么是 Filey 系统而不是 File 系统?因为 goofys 优先考虑性能而不是 POSIX。

goofys 安装使用
chmod +x goofys
认证文件
$cat  ~/.aws/credentials
[default]
aws_access_key_id = ${ACCESS_KEY}
aws_secret_access_key = ${SECRET_KEY}
挂载参数
./goofys --endpoint=$ENDPOINT --dir-mode 0777 --file-mode 0777  -o allow_other --uid 1000 --gid 1000 -f $BUCKET $MOUNT_POINT
 
Additional parameters:
-o allow_other:         Assure access to your bucket for other users.
--file-mode value       Permission bits for files. (default: 0644) (default: 420)
--dir-mode value        Permission bits for directories. (default: 0755) (default: 493)
--uid value             User ID owner of all inodes. (default: 1000)
--gid value             Group ID owner of all inodes. (default: 1000)
--debug_fuse
--debug_s3
-f 在前台运行
 
开机自动挂载
goofys
#$bucket   $mountpoint        fuse     _netdev,allow_other,--file-mode=0666,--dir-mode=0777    0       0
 
 
作者:Dexter_Wang   工作岗位:某互联网公司资深云计算与存储工程师  联系邮箱:993852246@qq.com
原文地址:https://www.cnblogs.com/dexter-wang/p/14962738.html