1.创建 Ceph 存储库文件
sudo tee /etc/yum.repos.d/ceph.repo <<EOF
[ceph]
name=Ceph packages for $basearch
baseurl=https://download.ceph.com/rpm-pacific/el8/\$basearch/
enabled=1
gpgcheck=1
type=rpm-md
gpgkey=https://download.ceph.com/keys/release.asc
[ceph-noarch]
name=Ceph noarch packages
baseurl=https://download.ceph.com/rpm-pacific/el8/noarch/
enabled=1
gpgcheck=1
type=rpm-md
gpgkey=https://download.ceph.com/keys/release.asc
EOF
2.安装 epel-release 和 ceph-fuse
sudo yum install epel-release
sudo yum update
sudo yum install ceph-fuse
3.将配置文件从ceph机器scp到目标机器 /etc/ceph下
4.创建挂载点
sudo mkdir -p /mnt/ceph
5.使用ceph-fuse挂载
sudo ceph-fuse -m <monitors> /mnt/ceph
例如:
sudo ceph-fuse -m 192.168.1.100:6789 /mnt/ceph
6.卸载挂载点
sudo umount /mnt/ceph