In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article will explain in detail how ubuntu14.04 deploys ceph 0.87. the editor thinks it is very practical, so I share it with you as a reference. I hope you can get something after reading this article.
Ceph 0.87 ubuntu14.04 deployment (preparation)
Category: ceph Cluster distributed Storage 2015-01-22 15:15 9 people read comments (0) favorites, editors and deletes
Directory (?) [+]
CEPH Node Settings
CEPH deployment Settings
Advanced package Management tool APT
Red Hat package Manager RPM
CEPH Node Settings
Notice that the machines I configured are hostname, which are osd0, osd1, mds, and ceph-admin. Ceph-admin is used to install mon and ceph-deploy)
Perform the following steps:
1. Create a user on each Ceph node.
Ssh user@ceph-server
Sudo useradd-d / home/ceph-m ceph
Sudo passwd ceph
two。 Add root permissions to users 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 a SSH server, if necessary:
Sudo apt-get install openssh-server
Sudo yum install openssh-server
4. Configure your ceph-deploy management node by connecting to each Ceph node with a password-less SSH. 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 key to each Ceph node.
Ssh-copy-id ceph@ceph-server
6. Modify the ~ / .ssh/config file of your ceph-deploy management node so that it can be logged to the Ceph node like the users you created (e.g., ceph).
Host ceph-server
Hostname ceph-server.fqdn-or-ip-address.com
User ceph
7. Use and hostname ping to determine connectivity (for example, not an IP address). It is necessary to solve the host name resolution problem and firewall problem.
CEPH deployment Settings
Add Ceph database to 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 you cannot issue sudo commands on remote hosts
Advanced package Management tool (APT)
For Debian and Ubuntu releases, perform the following 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-
two。 Add Ceph packages to your repository and replace {ceph-stable-release} (such as cuttlefish, dumpling, etc.) with a stable Ceph distribution, such as
Echo deb http://ceph.com/debian-{ceph-stable-release}/ $(lsb_release-sc) main | sudo tee / etc/apt/sources.list.d/ceph.list
Notice that there are spaces here. The end result is
Http://ceph.com/debian-giant/ trusty main
3. Update your warehouse and install ceph-deploy
Sudo apt-get update & & sudo apt-get install ceph-deployRed Hat package Manager (RPM)
For platforms such as Red Hat (rhel6), CentOS (el6), Fedora 17-19 (f17-f19), OpenSUSE 12 (opensuse12), and SLES (sles11), follow these steps:
1. Add packages 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} (such as el6 for CentOS 6, rhel6 for Red Hat 6, fc18 or fc19 for Fedora 18 or Fedora 19 and sles11 for SLES 11) with your Linux distribution. 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
two。 Update your warehouse and install ceph-deploy
This is the end of sudo yum update & & sudo yum install ceph-deploy 's article on "how ubuntu14.04 deploys ceph 0.87". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, please share it for more people to see.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.