Centos 6.2 64-bit installation of CEpH 0.47.2

Source: Internet
Author: User

Centos 6.2 64-bit kernel version is 2.6.32-220. el6.i686 and CEpH clients have been integrated in Versions later than 2.6.34. Obviously, centos6.2 does not have a Client client. Since I have installed ceph0.47.2 in Ubuntu 11.10 64-bit, in addition, the kernel version of ubuntu 11.10 is 3.0.0-12-generic, so it naturally contains the CEpH client. For convenience, I plan to perform experiments according to the following configuration.

In the following example, mon represents a monitoring node, OSD represents an object storage device, MDS represents a metadata server, and client represents a client.

CEpH must be installed on Mon, OSD, and MDS respectively, and configured according to the following example. The client must have a CEpH client (as analyzed above, if the kernel version is high enough, it will be built in)

 

Location

IP

Identity

Ubuntu 11.10

Local Virtual Machine

192.168.10.3

Mon and client

Centos 1, 6.2

Real Server

192.168.5.101

OSD

Centos6.2

Real Server

192.168.5.100

MDS

Use SSH to add trust to the Mon node.

# Ssh-keygen

# Cd ~ /. Ssh; CAT id_dsa.pub> authorized_keys

# Copy the. Ssh folder to the Home Directory of another user

First./autogen. Sh

Then execute./configure

Some packages are missing

Configure: Error: libuuid not found

Configure: Error: no fuse found (use -- without-fuse to disable)

Configure: Error: no usable version of libedit found.

Configure: Error: libaio not found

For example, libuuid, fuse, libaio, and libedit are respectively installed according to the following commands.

Yum install libuuid-devel

Yum install fuse-devel

Yum install libedit-devel

Yum install libaio-devel

Then run./configure -- without-tcmalloc -- without-libatomic-ops

Makefile is generated after configure is successful.

The process of executing make is very slow. Please wait.

At this time, a problem will occur: 'int _ max 'was not declared in this scope

I don't know why this problem occurs. The reminder is obviously that there is no declaration, so Add the following definition to the. CC file it prompts.

# Include <limits. h>

I don't know if this is correct, but it can be compiled.

Later, another problem emerged: Error: expat. h: no such file or directory.

Error: 'xml _ parser 'does not name a type

In this case, the package expat-devel is missing to execute Yum install expat-devel.

OK. At this time, the compilation is passed. It is not easy.

Then execute make install.

No problem. You can configure the CEpH. conf file to form a CEpH small cluster for testing.

For more information about CEpH. conf, see http://ceph.com/docs/master/config-cluster/ceph-conf/.

Note that you need to create some file reference http://ceph.com/docs/master/config-cluster/mkcephfs/

For my configuration

In ubuntu 11.10 192.168.10.3

Mkdir/home/xieke/mon.0

On 192.168.5.101

Mkdir/home/xieke/osd.0

On 192.168.5.100

Mkdir/home/xieke/mds.0

Because these directories are not created by yourself, you must create them by yourself.

In addition, CEpH. conf is placed on the Mon node, and/etc/CEpH under the OSD node and the MDS node. after Conf, copy the CEpH folder to/usr/local/etc/CEpH, and update/etc/CEpH each time. update/usr/local/etc/CEpH at the same time after Conf. CONF file

After each update, perform the mkcephfs-C/etc/CEpH. conf-A operation on the Mon node.

Run service CEpH-a start on the Mon Node

You can run CEpH-s to view the running status of each part.

Related Article

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.