Showing posts with label Ceph. Show all posts
Showing posts with label Ceph. Show all posts

4 August 2016

How to Install Ceph Storage on CentOS 7.2 64bits


Pre-Setup LAB Ceph Storage Configuration: 

OS:       CentOS7.2 64bits
CPU:    1 Core
RAM:   2GB หรือมากกว่า
NIC:     *2 card   (Storage และ Internet)
HDD:    20GB หรือมากกว่า

Server IP Address:

172.20.1.30 ldp-ceph
172.20.1.31 ceph01
172.20.1.32 ceph02
172.20.1.33 ceph03

1. ทุกเครื่องให้ทำการ Initial Configuration ดังนี้

กำหนดไฟล์ ้hosts
vi /etc/hosts
172.20.1.50 ldp-ceph ldp-ceph.example.me
172.20.1.51 node01 node01.example.me
172.20.1.52 node02 node02.example.me
172.20.1.53 node03 node03.example.me

เพิ่ม admin user ceph
useradd -d /home/cephuser -m ceph-admin
echo -e "ceph-admin\nceph-admin\n" | passwd ceph-admin
echo "ceph-admin ALL = (root) NOPASSWD:ALL" | sudo tee /etc/sudoers.d/ceph-admin
chmod 0440 /etc/sudoers.d/ceph-admin
echo -e 'Defaults:ceph-admin !requiretty\nceph-admin ALL = (root) NOPASSWD:ALL' | tee /etc/sudoers.d/ceph-admin
chmod 440 /etc/sudoers.d/ceph-admin