安装部署方法:
1安装ceph 如果你已经安装了ceph这步就可以跳过了。
CEPH_RELEASE=18.2.0 # replace this with the active release curl --silent --remote-name --location https://download.ceph.com/rpm-${CEPH_RELEASE}/el9/noarch/cephadm chmod +x cephadm
./cephadm add-repo --release reef
apt install ceph -y
cephadm bootstrap --mon-ip
ssh-copy-id -f -i /etc/ceph/ceph.pub root@hostname
ceph orch host add hostname ip
/home/aaa/cephadm bootstrap --mon-ip ip --allow-overwrite
ceph orch daemon add osd hostname:/dev/vdb
ceph osd pool create data 128 128
ceph osd pool create metadata 128 128
2 创建元数据和数据pool
ceph osd pool create data 128 128
ceph osd pool create metadata 128 128
3.配置服务器信息
如果您想在192.168.1.2和192.168.1.3的每台机器上部署3个hpfs-srvr实例,您需要在每台机器上执行以下命令:
./set_ip.sh -ip 192.168.1.2,192.168.1.3 -count 3
如果执行成功,它将在/etc/fsconf目录下创建一个名为msrv.conf的文件。
您需要将Ceph配置文件ceph.conf复制到每个hpfs-srvr主机的/etc/fsconf目录中,并且还需要将ceph.conf文件复制到每个hpfs-srvr主机的/etc/ceph目录中,因为hpfs-srvr需要通过RADOS访问Ceph。
4.配置客户端
如果执行成功,它将在 /etc/fsconf 目录下创建一个名为 msrv.conf 的文件。
您需要将 Ceph 配置文件 ceph.conf 复制到每个 hfs 主机的 /etc/fsconf 目录中,并且还需要将 ceph.conf 文件复制到每个 hfs 主机的 /etc/ceph 目录中,因为 hfs 需要通过 RADOS 访问 Ceph。
5.启动
start hpfs-srvr:
./deploy_server.sh
mount fs :
./hfs /mnt
1079

被折叠的 条评论
为什么被折叠?



