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.