Monthly Archives: October 2018

Ceph块存储和对象存储

1 案例1:块存储应用案例 1.1 问题 延续Day04的实验内容,演示块存储在KVM虚拟化中的应用案例,实现以下功能: Ceph创建块存储镜像 客户端安装部署ceph软件 客户端部署虚拟机 客户端创建secret 设置虚拟机配置文件,调用ceph存储 1.2 方案 使用Ceph存储创建镜像。 KVM虚拟机调用Ceph镜像作为虚拟机的磁盘。 1.3 步骤 实现此案例需要按照如下步骤进行。 1)创建磁盘镜像。 [root@node1 ~]# rbd create vm1-image –image-feature layering –size 10G [root@node1 ~]# rbd create vm2-image –image-feature layering –size 10G [root@node1 ~]# rbd list … Continue reading

Posted in ceph | Tagged | Leave a comment

创建ceph集群时常见问题徽宗

问题一: 时间不同步 [root@node1 ~]# ceph -s cluster 29908a48-7574-4aac-ac14-80a44b7cffbf health HEALTH_WARN clock skew detected on mon.node2, mon.node3 Monitor clock skew detected monmap e1: 3 mons at {node1=192.168.4.11:6789/0,node2=192.168.4.12:6789/0,node3=192.168.4.13:6789/0} election epoch 10, quorum 0,1,2 node1,node2,node3 osdmap e36: 6 osds: 6 up, 6 in … Continue reading

Posted in ceph | Tagged | Leave a comment

创建ceph集群

创建ceph集群 使用4台虚拟机,1台客户端、3台存储集群服务器,IP规划如下 client 192.168.4.10 node1 192.168.4.11 node2 192.168.4.12 node3 192.168.4.13 步骤一:安装前准备 1)物理机为所有节点配置yum源,注意所有的虚拟主机均需要挂载安装光盘。 [root@root9pc01 ~]# yum -y install vsftpd [root@root9pc01 ~]# mkdir /var/ftp/ceph ################################## 把cluster解压并挂载到FTP目录 [root@room9pc52 ~]# cd cluster/ [root@room9pc52 cluster]# ll 总用量 968676 drwxr-xr-x 2 root root 4096 6月 12 … Continue reading

Posted in ceph | Tagged | Leave a comment

创建LVS集群

案例:练习使用ipvsadm 先配置yum源 [root@60 ~]# yum-config-manager –add ftp://192.168.4.254/rhel7 已加载插件:langpacks, product-id adding repo from: ftp://192.168.4.254/rhel7 [192.168.4.254_rhel7] name=added from: ftp://192.168.4.254/rhel7 baseurl=ftp://192.168.4.254/rhel7 enabled=1 [root@60 ~]# echo “gpgcheck=0” >> /etc/yum.repos.d/ 192.168.4.254_rhel7.repo redhat.repo [root@60 ~]# echo “gpgcheck=0” >> /etc/yum.repos.d/192.168.4.254_rhel7.repo 开始装包ipvsadm [root@60 ~]# yum install -y ipvsadm … Continue reading

Posted in ceph | Tagged | Leave a comment