Document directory
- Appendix 2 password-less SSH access
Original article address:Install CEpH on centos 5.5 (original) centos5.5 install CEpH
Author:For the simplicity of the experiment, Eugene is performed on a virtual CentOS-5.5 i386.
Preparation:
Link to Yum library extension tool under centos5.5: ftp://ftp.univie.ac.at/systems/linux/dag/redhat/el5/en/x86_64/dag/RPMS/rpmforge-release-0.5.2-2.el5.rf.x86_64.rpm ftp://ftp.univie.ac.at/systems/linux/dag/redhat/el5/en/i386/dag/RPMS/rpmforge-release-0.5.2-2.el5.rf.i386.rpm# Yum install rpm-build fuse-devel libtool-ltdl-devel boost-devel libedit-devel gitopenssl-devel gcc-C ++ btrfs-progs Step 1 because the CD the kernel version is not the latest, all the first steps are to compile the kernel, In this tutorial, 2.6.37 is selected. # Make mrproper & # Make menuconfig
Carefully find and select multiple options related to btrfs and CEpH, save and exit# Make bzimage & # Make modules & # Make modules_install & # make install (note that two errors will occur. Refer to the other two blog posts in this blog)
Step 2. Install btrfs and create btrfs File System download source package: btrfs-progs-0.19.tar.gz,
Note that btrfs has been compiled into the kernel in step 1., Do not need source code package btrfs-0.xx. Run the following command to test tar-zxvf XXXX & make install: fdisk/dev/SDB... & mkdir/mnt/btrfs & mkfs. btrfs/dev/sdb1 & Mount-T btrfs/dev/sdb1/mnt/sdb1 & DF: You can see the result. Remember umount.
Step 3, install CEpH into the source package ceph-0.24 ,. /autogen &&. /configure & make install has some problems in this process. (1) install libcrypto ++: Download the source code package cryptopp561.zip, & mkdir cryptopp561 & CD & unzip .. /cryptopp561.zip & Vim gnumakefile, cxxflags + =-FPIC & make libcryptopp. so & make install (2) requires installation of libedit: because the system is i386 series, rpm-uvh http://dev.centos.org/centos/5/testing/i386/RPMS/libedit-3.0-2.20090905cvs.el5.centos.i386.rpm rpm- Uvh implements mkcephfs-C/usr/local/etc/CEpH. conf -- allhosts -- mkbtrfs-k/etc/CEpH/keyring. bin # mkcephfs-C/etc/CEpH. conf -- allhosts -- mkbtrfs-k/etc/CEpH/keyring. bin commands are a bit mixed. #/Etc/init. d/CEpH-A Start Step 5. CEpH mounting: # Mount-T CEpH 10.65.1.86: // MNT/cephmount: Wrong FS type, bad option, bad superblock on 10.65.1.87:/, missing codePage or other error in some cases useful info is found in syslog-Try dmesg | tail or so check error: [root @ ceph86 SRC] # dmesg | taillibceph: no secret set (for auth_x protocol) libceph: Error-22 on auth Protocol 2 init after removing the ceph-0.24, reinstall the latest CEpH- 0.25.1.
Appendix 1 modify hostname
Google Baidu
This mainly involves the/etc/sysconfig/network file, the hostname command, and the/etc/hosts file.
Appendix 2 password-less SSH access
The principle is the public-private key mechanism. If I want to allow others to access me, I need to send my own public key to others so that they can access me with this public key.
$ Ssh-keygen-d # This command will be executed in ~ /. Generate several files under ssh. Here id_dsa.pub is used, which is the public key of the node (a) And then adds the content to the peer node (B) #~ In the authorized_keys file under the/. Ssh/directory, if there is no such file, create one. In this way, log on to Node B without the password ssh. |
Appendix 3 please remember to disable selinuxsetenforce 0vim/etc/sysconfig/SELinux. Otherwise, the operation on the newly added device on the client will result in an error: xxxxxpermission denied in order to exclude interference: servcie iptabes stop