没有合适的资源?快使用搜索试试~ 我知道了~
在CentOS7上安装与配置分布式存储Ceph
需积分: 0 5 下载量 128 浏览量
2023-07-01
22:31:15
上传
评论
收藏 2.07MB PDF 举报
温馨提示
试读
46页
在CentOS7上安装与配置分布式存储Ceph。包括安装RHEL7操作系统并设置基础环境、CentOS7部署Ceph、Ceph的集群管理配置、管理Ceph块设备、管理CephFS设备、Ceph对象网关的安装配置、使用S3客户端访问对象存储、使用客户端s3cmd链接并管理对象存储资源、使用Swift API访问对象存储详细配置说明等。 当然部署Ceph的过程相对复杂,涉及多个组件和配置。Ceph的部署过程因环境和需求的不同而有所差异。在实际部署中,建议参考Ceph官方文档或相关的部署指南,以获取更详细和准确的部署步骤和配置说明。
资源推荐
资源详情
资源评论
Ceph 安装配置
0、Vmware 下的 centos7 安装
vmware:NIC1:仅主机模式 NIC2:仅桥接模式(NAT 模式显示 unpluged,故不用)
1 安装 RHEL 7 操作系统
[root@ceph-node001 mycluter]# cat /etc/redhat-release
CentOS Linux release 7.3.1611 (Core)
[root@ceph-node001 mycluter]#
可以选择多个软件包,需要选择 server gui 的模块
在网卡配置中,两块网卡都配好:NIC1:静态 ip;NIC2:动态 ip,可以上网
root 密码时,可以 root123,需要点两次 done 即可;配置需要一个新的用户,此处用 test
用户
http://mirrors.163.com/ceph/rpm-hammer/el6/noarch/
1.1 安装 RHEL7 操作系统
[root@ceph-node001 Desktop]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/vg_OS-lvRoot
9.8G 385M 8.9G 5% /
tmpfs 427M 224K 427M 1% /dev/shm
/dev/sda1 976M 42M 884M 5% /boot
/dev/mapper/vg_OS-lvHome
40G 49M 38G 1% /home
/dev/mapper/vg_OS-lvOpt
197G 60M 187G 1% /opt
/dev/mapper/vg_OS-lvTmp
9.8G 306M 9.0G 4% /tmp
/dev/mapper/vg_OS-lvUsr
20G 9.2G 9.4G 50% /usr
/dev/mapper/vg_OS-lvVar
40G 757M 37G 2% /var
[root@ceph-node001 Desktop]# fdisk -l
Disk /dev/sda: 1099.5 GB, 1099511627776 bytes
Disk /dev/sdd: 30GB,
三台机器硬盘都一致
[root@ceph-node001 Desktop]#
1.2 配置操作系统
关闭防火墙
systemctl stop firewalld.service
systemctl disable firewalld.service
关闭 SElinux(当前禁用:setenforce 0)
永久禁用:
vi /etc/selinux/config
# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
# enforcing - SELinux security policy is enforced.
# permissive - SELinux prints warnings instead of enforcing.
# disabled - No SELinux policy is loaded.
SELINUX=disabled
# SELINUXTYPE= can take one of three two values:
# targeted - Targeted processes are protected,
# minimum - Modification of targeted policy. Only selected processes are protect
ed.
# mls - Multi Level Security protection.
SELINUXTYPE=targeted
配置操作系统的主机表
#
cat>>/etc/hosts<<EOF
#Hadoop Name Node
192.168.100.21 ceph-node001
192.168.100.22ceph-node002
192.168.100.23ceph-node003
192.168.100.101cephclient001
EOF
配置机器名:
#
hostnamectl set-hostname ceph-node001
hostnamectl set-hostname ceph-node002
hostnamectl set-hostname ceph-node003
hostnamectl set-hostnamecephclient001
使用这种方式修改,可以永久性的修改主机名称!
1.3 配置节点间无密码 SSH(略)
1.4 配置 NTP
配置 NTP 服务器
配置文件:/etc/ntp.conf
vi /etc/ntp.conf
# Hosts on local network are less restricted.
# 允许内网其他机器同步时间
restrict 192.168.100.0 mask 255.255.255.0 nomodify notrap
# Use public servers from the pool.ntp.org project.
# Please consider joining the pool (http://www.pool.ntp.org/join.html).
# 中国这边最活跃的时间服务器 : http://www.pool.ntp.org/zone/cn
server 210.72.145.44 prefer # 中国国家受时中心
server 202.112.10.36 # 1.cn.pool.ntp.org
server 59.124.196.83 # 0.asia.pool.ntp.org
#broadcast 192.168.1.255 autokey # broadcast server
#broadcastclient # broadcast client
#broadcast 224.0.1.1 autokey # multicast server
#multicastclient 224.0.1.1 # multicast client
#manycastserver 239.255.254.254 # manycast server
#manycastclient 239.255.254.254 autokey # manycast client
# allow update time by the upper server
# 允许上层时间服务器主动修改本机时间
restrict 210.72.145.44 nomodify notrap noquery
restrict 202.112.10.36 nomodify notrap noquery
restrict 59.124.196.83 nomodify notrap noquery
# Undisciplined Local Clock. This is a fake driver intended for backup
# and when no outside source of synchronized time is available.
# 外部时间服务器不可用时,以本地时间作为时间服务
server 127.127.1.0 # local clock
fudge 127.127.1.0 stratum 10
重启 NTP 服务
systemctl restart ntpd.service
systemctl enable ntpd.service
查看 NTP 的状态
ntpq -p
配置 NTP 客户机
配置文件:/etc/ntp.conf
vi /etc/ntp.conf
# 配置时间服务器,指向内网时间服务器:节点 ceph-node001
server 192.168.100.21
手动同步时间
通过命令 ntpdate -u [hostname-of-server]进行时间同步
ntpdate -u ceph-node001
时间同步后可以将时间写入硬件寄存器
clock -w
重启 NTP 服务
systemctl restart ntpd.service
systemctl enable ntpd.service
查看 NTP 的状态
ntpq -p
剩余45页未读,继续阅读
资源评论
降世神童
- 粉丝: 8382
- 资源: 10
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功