一、下载obsfs
下载源码
下载地址:https://github.com/huaweicloud/huaweicloud-obs-obsfs
git clone https://github.com/huaweicloud/huaweicloud-obs-obsfs.git
# 下载所需包
yum install -y gcc libstdc++-devel gcc-c++ fuse fuse-devel curl-devel libxml2-devel mailcap git automake make openssl-devel
查看libfuse版本 find / -name libfuse.so*
obsfs支持使用的libfuse版本为2.9.7,2.9.8或2.9.9。
下载libfuse2.9.7
下载地址:https://github.com/libfuse/libfuse/releases/tag/fuse-2.9.7
wget https://github.com/libfuse/libfuse/releases/tag/fuse-2.9.7
tar -zxvf fuse-2.9.7.tar.gz
cd fuse-2.9.7/ && ./configure && make && make install
echo -e '\n/usr/local/lib' >> /etc/ld.so.conf
ldconfig
find / -name libfuse.so*
cp /usr/local/lib/libfuse.so.2.9.7 /usr/lib64/
rm -f /usr/lib64/libfuse.so
rm -f /usr/lib64/libfuse.so.2
ln -s /usr/lib64/libfuse.so.2.9.7 /usr/lib64/libfuse.so
ln -s /usr/lib64/libfuse.so.2.9.7 /usr/lib64/libfuse.so.2
生成obsfs
cd huaweicloud-obs-obsfs-master/
sh build.sh
安装obsfs
cd huaweicloud-obs-obsfs-master/
sh install_obsfs.sh
查看版本
obsfs --version
Huawei Simple Storage Service File System V1.83(commit:unknown) with OpenSSL
查看openssl版本 openssl version
obsfs软件包仅支持openssl1.0.0及以下版本。
下载地址:https://www.openssl.org/source/old/1.0.0/openssl-1.0.0s.tar.gz
wget https://www.openssl.org/source/old/1.0.0/openssl-1.0.0s.tar.gz
tar -zxvf openssl-1.0.0s.tar.gz
cd openssl-1.0.0s
./config shared --prefix=/usr/local/ssl --openssldir=/usr/local/ssl
make
sudo make install
sudo mv /usr/bin/openssl /usr/bin/openssl.backup
sudo ln -s /usr/local/ssl/bin/openssl /usr/bin/openssl
openssl version
二、初始化obsfs
echo AK:SK > /etc/passwd-obsfs
cat /etc/passwd-obsfs
chmod 600 /etc/passwd-obsfs
三、挂载obsfs
obsfs 并行文件系统名 本地挂载目录 -o url=区域终端节点地址 -o passwd_file=/etc/passwd-obsfs -o big_writes -o max_write=131072 -o use_ino
df -hT
区域终端节点地址:https://developer.huaweicloud.com/endpoint?OBS
标签:obsfs,libfuse,openssl,huaweicloud,2.9,usr,挂载,OBS From: https://www.cnblogs.com/kongshuo/p/18108109