cephadm安装ceph集群

安装 cephadm

安装cephadm有两种方式,

一种是基于发行版直接使用发行版自带的apt或者yum安装

使用这种方式安装的cephadm版本可能不是最新的,可以通过cephadm version查看安装版本

apt install -y cephadm

一种是使用curl获取cephadm工具,下载的cephadm是一个python的二进制文件

通过这种方式,可以安装指定版本的ceph。

下面这个链接ubuntu和centos都可以用,虽然连接里面有个rpm,但是都可以使用的

如果安装了错误版本测cephadm,想删除的话,可以先删除/etc/apt/source.d/ceph.source仓库文件

然后执行apt remove -y cephadm,来删除通过./cephadm install安装的二进制包

 

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

 

posted @ 2025-06-10 11:27  mofy  阅读(74)  评论(0)    收藏  举报