ceph0.87安装使用手册

上传人:shaoy****1971 文档编号:108153462 上传时间:2019-10-22 格式:DOCX 页数:19 大小:455.09KB
返回 下载 相关 举报
ceph0.87安装使用手册_第1页
第1页 / 共19页
ceph0.87安装使用手册_第2页
第2页 / 共19页
ceph0.87安装使用手册_第3页
第3页 / 共19页
ceph0.87安装使用手册_第4页
第4页 / 共19页
ceph0.87安装使用手册_第5页
第5页 / 共19页
点击查看更多>>
资源描述

《ceph0.87安装使用手册》由会员分享,可在线阅读,更多相关《ceph0.87安装使用手册(19页珍藏版)》请在金锄头文库上搜索。

1、Ceph0.87安装使用手册(v0.1)2015年3月28日目录第一部分:环境准备- 1 -一、准备- 1 -二、在admin节点上安装ceph-deploy- 1 -三、在每个机器上安装ntp- 2 -四、在每个机器上安装openssh-server- 2 -五、在每个机器上创建user并给予sudo权限- 2 -六、设置从admin节点到其他三个节点的免密码登录- 3 -七、一些注意事项- 5 -第二部分:安装- 5 -一、在wx-ceph-admin节点上创建目录- 5 -二、清空配置(purge configuration)- 5 -三、安装- 6 -四、配置OSD(目录做OSD)-

2、7 -五、配置OSD(硬盘做OSD)- 8 -六、配置文件拷贝- 9 -七、安装MDS- 10 -八、Ceph运行- 10 -第三部分:使用- 11 -一、集群监控- 11 -二、用户管理- 14 -三、Pool(池)管理- 15 -第四部分:Cephfs- 15 -一、创建ceph文件系统- 15 -二、挂载(mount) ceph文件系统- 16 -Ceph 0.87(giant)安装使用手册第一部分:环境准备一、 准备需要准备4个机器,具体如下:序号机器名(hostname)作用IP推荐配置备注1wx-ceph-adminceph-deploy 管理节点10.10.10.200(浮动IP

3、)172.16.100.46(真实IP)2C/4GBetc/hosts配置文件需要使用真实IP2wx-ceph01mon10.10.10.204172.16.100.422C/4GBmonitor3wx-ceph02osd010.10.10.205172.16.100.442C/4GB/10GB云硬盘4wx-ceph03osd110.10.10.206172.16.100.452C/4GB/10GB云硬盘预备1:修改每个机器里边的/etc/hosts文件,添加这些机器的ip例如:在wx-ceph-admin机器的/etc/hosts文件中,添加:172.16.100.46 wx-ceph-ad

4、min172.16.100.42 wx-ceph01172.16.100.44 wx-ceph02172.16.100.45 wx-ceph03二、 在admin节点上安装ceph-deploy1、Add the release key:执行:wget -q -O- https:/ | sudo apt-key add 2、Add the Ceph packages to your repository. Replace ceph-stable-release with a stable Ceph release (e.g., cuttlefish, dumpling, emperor, fi

5、refly, etc.). For example:echo deb http:/ $(lsb_release -sc) main | sudo tee /etc/apt/sources.list.d/ceph.list执行:echo deb http:/ $(lsb_release -sc) main | sudo tee /etc/apt/sources.list.d/ceph.list3、Update your repository and install ceph-deploy:执行:sudo apt-get update & sudo apt-get install ceph-dep

6、loyNote: You can also use the EU mirror for downloading your packages. Simply replace http:/ by http:/ 在每个机器上安装ntpWe recommend installing NTP on Ceph nodes (especially on Ceph Monitor nodes) to prevent issues arising from clock drift.On Debian / Ubuntu, 执行:sudo apt-get install ntp四、 在每个机器上安装openssh

7、-serversudo apt-get install openssh-server五、 在每个机器上创建user并给予sudo权限1、在每个机器上创建user格式:ssh userceph-serversudo useradd -d /home/username -m usernamesudo passwd username实际操作:登录到每台机器,然后执行:sudo useradd -d /home/ceph -m cephsudo passwd ceph2、For the user you added to each Ceph node, ensure that the user has

8、 sudo privileges.格式:echo username ALL = (root) NOPASSWD:ALL | sudo tee /etc/sudoers.d/usernamesudo chmod 0440 /etc/sudoers.d/username实际操作:登录到每台机器,然后执行:echo ceph ALL = (root) NOPASSWD:ALL | sudo tee /etc/sudoers.d/cephsudo chmod 0440 /etc/sudoers.d/ceph六、 设置从admin节点到其他三个节点的免密码登录1、以新创建的用户登录到admin节点在ad

9、min节点上执行:su ceph2、执行ssh-keygen,一路回车。3、Copy the key to each Ceph Node, replacing username with the user name you created with Create a Ceph User.格式:ssh-copy-id usernamenode1ssh-copy-id usernamenode2ssh-copy-id usernamenode3执行:ssh-copy-id cephwx-ceph01ssh-copy-id cephwx-ceph02ssh-copy-id cephwx-ceph03

10、验证是否可以免密码登录:4、(Recommended) Modify the /.ssh/config file of your ceph-deploy admin node so that ceph-deploy can log in to Ceph nodes as the user you created without requiring you to specify -username username each time you execute ceph-deploy. This has the added benefit of streamlining ssh and scp u

11、sage. Replace username with the user name you created:Host node1 Hostname node1 User usernameHost node2 Hostname node2 User usernameHost node3 Hostname node3 User username执行:在admin节点:sudo vi /.ssh/configHost wx-ceph01 Hostname wx-ceph01 User cephHost wx-ceph02 Hostname wx-ceph02 User cephHost wx-cep

12、h03 Hostname wx-ceph03 User ceph七、 一些注意事项1、为了安装的便利,要确保防火墙开启 ceph需要用到的端口,为了简单,建议将防火墙全部禁用掉。2、在redhat和centos下,需要关闭selinux第二部分:安装安装之前,要确保第一部分的环境准备已经完成,以下的步骤通过在admin节点上来进行快速的ceph集群安装部署。(If you havent completed your Preflight Checklist, do that first. This Quick Start sets up a Ceph Storage Cluster using

13、ceph-deploy on your admin node. Create a three Ceph Node cluster so you can explore Ceph functionality.)一、 在wx-ceph-admin节点上创建目录说明:For best results, create a directory on your admin node for maintaining the configuration files and keys that ceph-deploy generates for your cluster.执行:mkdir my-clusterc

14、d my-cluster说明:The ceph-deploy utility will output files to the current directory. Ensure you are in this directory when executing ceph-deploy.Important:Do not call ceph-deploy with sudo or run it as root if you are logged in as a different user, because it will not issue sudo commands needed on the remote host.二、 清空配置(purge configuration)If at any point you run into trouble and you want to start over, execute the foll

展开阅读全文
相关资源
相关搜索

当前位置:首页 > 办公文档 > 其它办公文档

电脑版 |金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号