Install CEpH on Ubuntu 14.04 Server

Source: Internet
Author: User
Tags aliyun


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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.