ceph单节点部署
1.查询挂载信息
lsblk
2.使用自定义镜像源,默认镜像源地址(可选)
/etc/yum.repos.d/CentOS-Base.repo
替换baseurl路径为本地路径
/root/ceph_install_offline/ceph-package
链接:https://pan.baidu.com/s/180zM5gPcXN5gVkeTLEhYuw
提取码:i8bt
更新yum缓存
yum clean all
yum repolist
yum list installed
3.设置主机名
# 设置 hostname
hostnamectl set-hostname ceph1
# 配置 hosts 解析,IP地址根据实际调整
cat /etc/hosts
192.168.180.148 ceph1
# 重启下
reboot
4.关闭防火墙
# 关闭防火樯
systemctl disable firewalld
systemctl stop firewalld
# 关闭 selinux
setenforce 0
sed -i 's/^SELINUX=.*/SELINUX=disabled/' /etc/selinux/config
6.配置免密登录
给ceph单节点配置免密,一台机器也要
ssh-keygen -t rsa -P '' -f ~/.ssh/id_rsa
cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys
# 权限设置 644
chmod 644 ~/.ssh/authorized_keys
7.安装依赖
rpm -ivh http://download.ceph.com/rpm-