Ceph1:
VI/etc/hosts (on all nodes)
127.0.0.1 localhost
192.168.1.15 ceph1
192.168.1.16 ceph2
192.168.1.17 ceph3
Ssh-keygen-Q-t rsa-f ~ /. Ssh/id_rsa-C ''-N''
VI ~ /. Ssh/config
Host ceph2
Hostname ceph2
User Root
Stricthostkeychecking No
Host ceph3
Hostname ceph3
User Root
Stricthostkeychecking No
Ssh-copy-ID ceph2
Ssh-copy-ID ceph3
To get latest CEpH-deploy:
Wget-Q-o-'https: // ceph.com/git /? P = CEpH. Git; A = blob_plain; F = keys/release. ASC '| apt-key add-
Echo Deb http://ceph.com/debian-firefly/ $ (lsb_release-SC) Main | tee/etc/APT/sources. List. d/CEpH. List
VI/etc/APT/sources. List (on all nodes)
Deb http://mirrors.aliyun.com/ubuntu/ trusty main restricted universe multiverse
Deb http://mirrors.aliyun.com/ubuntu/ trusty-security main restricted universe multiverse
Deb http://mirrors.aliyun.com/ubuntu/ trusty-Updates main restricted universe multiverse
Deb http://mirrors.aliyun.com/ubuntu/ trusty-proposed main restricted universe multiverse
Deb http://mirrors.aliyun.com/ubuntu/ trusty-backports main restricted universe multiverse
Aptitude Update (on all nodes)
Aptitude-y install CEpH-deploy
SSH ceph2 aptitude update; SSH ceph3 aptitude update
Mkdir CEpH-Cluster
CD CEpH-Cluster
CEpH-deploy new ceph1
CEpH-deploy install ceph1 ceph2 ceph3
CEpH-deploy mon create-initial
CEpH-deploy OSD -- zap-disk create ceph1: SDB
CEpH-deploy OSD -- zap-disk create ceph2: SDB
CEpH-deploy OSD -- zap-disk create ceph3: SDB
CEpH-deploy admin ceph1 ceph2 ceph3
Chmod + R/etc/CEpH. Client. admin. Keyring
SSH ceph2 chmod + R/etc/CEpH. Client. admin. Keyring
SSH ceph3 chmod + R/etc/CEpH. Client. admin. Keyring
CEpH-deploy mon add ceph2 ceph3
CEpH-W
This article is from the ilovecat blog, be sure to keep this source http://hj192837.blog.51cto.com/655995/1440590
Install CEpH on Ubuntu 14.04 Server