Pre-Test (content Summary)
1. Ceph node Setup (CEPH nodes Setup)
2. Ceph Deploy Setup(Ceph deployment Setup)
2.1 Advanced Package Tool (APT)
2.2 Red Hat Package Manager (RPM)
3. Summary(Summary)
Pre-Test
New version 0.60.
Thank you for trying ceph! Before delving into Ceph, we recommend setting up a Ceph-deploy management node and a 3-node demo cluster to explore some of the ceph features. A preflight check will help you prepare to manage your ceph storage cluster using a ceph-deploy management node and 3 CEPH nodes (or virtual machines).
1.CEPH node Settings
Perform the following steps:
1. Create a user on each ceph node.
SSH [email protected]
sudo useradd-d/home/ceph-m ceph
sudo passwd ceph
2. Add root privileges to the user in each Ceph node
echo "Ceph all = (root) nopasswd:all" | sudo tee/etc/sudoers.d/ceph
sudo chmod 0440/etc/sudoers.d/ceph
3. Install an SSH server (if necessary):
sudo apt-get install Openssh-server
sudo yum install Openssh-server
4. Configure your Ceph-deploy management node with a password-free SSH connection to each ceph node. Leave the password blank:
Ssh-keygen
Generating Public/private key pair.
Enter file in which to save the key (/CEPH-CLIENT/.SSH/ID_RSA):
Enter passphrase (empty for no passphrase):
Enter same Passphrase again:
Your identification has been saved In/ceph-client/.ssh/id_rsa.
Your public key has been saved in/ceph-client/.ssh/id_rsa.pub.
5. Copy the secret key to each ceph node.
Ssh-copy-id [email protected]
6. Modify the ~/.ssh/config file of your Ceph-deploy management node so that it can be logged to the Ceph node just like the user you created (for example, Ceph).
Host Ceph-server
Hostname ceph-server.fqdn-or-ip-address.com
User Ceph
7. Use and host name ping to determine connectivity (for example, not an IP address). Resolve host name resolution issues and firewall issues as necessary.
2.CEPH Deployment Settings
Add the Ceph repository to the Ceph-deploy management node. After that, install Ceph-deploy.
Important: If you are logged in with a different user, do not run Ceph-deploy with sudo or root privileges because the sudo command cannot be issued on a remote host
2.1 Advanced Package Management tool (APT)
for Debian and Ubuntu distributions, follow these steps:
1. Add a Release key
Wget-q-o-' HTTPS://CEPH.COM/GIT/?P=CEPH.GIT;A=BLOB_PLAIN;F=KEYS/RELEASE.ASC ' | sudo apt-key add-
Echo Deb http://ceph.com/debian-dumpling/$ (LSB_RELEASE-SC) main | sudo tee/etc/apt/sources.list.d/ceph.list
sudo apt-get update
sudo apt-get install Ceph-deploy
2. Add the Ceph package to your warehouse and replace {ceph-stable-release} with a stable ceph release (e.g. cuttlefish, dumpling, etc.), for example
Echo Deb http://ceph.com/debian-{ceph-stable-release}/$ (LSB_RELEASE-SC) main | sudo tee/etc/apt/sources.list.d/ceph.list
3. Update your warehouse and install Ceph-deploy
sudo apt-get update && sudo apt-get install Ceph-deploy
2.2Red Hat Package Manager (RPM)
For Red Hat (RHEL6), CentOS (el6), Fedora 17-19 (f17-f19), OpenSUSE (Opensuse12), and SLES (SLES11) platforms follow these steps:
1. Add the package to your warehouse. Open a text editor and create a yellowdog update, modify (YUM) entry, using the path/etc/yum.repos.d/ceph.repo, for example:
sudo vim/etc/yum.repos.d/ceph.repo
Paste the following sample code. Replace {ceph-stable-release} (such as dumpling, etc.) with a stable ceph distribution. R Replace {distro} with your Linux distribution (e.g. El6 for CentOS 6, rhel6 for Red Hat 6, fc18 or fc19 for Fedora or Fedora 19 and SLES11 for SLES 11) 。 Finally, save the file to/etc/yum.repos.d/ceph.repo.
[Ceph-noarch]
Name=ceph Noarch Packages
Baseurl=http://ceph.com/rpm-{ceph-stable-release}/{distro}/noarch
Enabled=1
Gpgcheck=1
Type=rpm-md
Gpgkey=https://ceph.com/git/?p=ceph.git;a=blob_plain;f=keys/release.asc
2. Update your warehouse and install Ceph-deploy
sudo yum update && sudo yum install Ceph-deploy
3. Summary
complete the quick start of preflight and continue with the quick start of storing clusters.
Preflight "Preflight"