您好,登錄后才能下訂單哦!
1.基礎(chǔ)環(huán)境介紹 Ubuntu 12.04.5 openssh 都需要默認(rèn)安裝 源節(jié)點(diǎn)
ceph 0.80.4 ceph-admin管理和客戶端節(jié)點(diǎn),ceph01,ceph02,ceph03集群節(jié)點(diǎn), 網(wǎng)絡(luò)萬(wàn)兆:192.168.100.11 集群節(jié)點(diǎn)硬盤需要3個(gè)。以上是基礎(chǔ)配置
2.利用ice安裝Calamari-server、ceph-deploy部署3節(jié)點(diǎn)Ceph環(huán)境,因?yàn)殡x線安裝,所以/etc/apt/sources.list備份。 配好hostname。
每個(gè)節(jié)點(diǎn)需要寫ceph-deploy的/etc/hosts ip 需要在該/etc/hosts
ceph-deploy需要與其他節(jié)點(diǎn)之間免KEY
#ssh-keygen
#ssh-copy-id test-ceph01 ceph02 ceph03
locale
export LC_ALL="C"
3.配置ntp時(shí)間同步
3.1)搭建時(shí)間同步服務(wù)器
安裝ntp apt-get install ntp
3.2)修改ntp.conf備份基礎(chǔ)
vim /etc/ntp.conf
# (Again, the address is an example only.)
broadcast 160.17.5.255
3.3)啟動(dòng)服務(wù)
service ntpd start
# more information.
server ceph01
ntpdate -d ip
查看防火墻關(guān)閉
ufw disable
Firewall stopped and disabled on system startup
4.在 根目錄下創(chuàng)建一個(gè)ceph_config目錄解壓包到這個(gè)目錄下
執(zhí)行安裝腳步如下:
#python ice_setup.py
chown -R www-data:www-data /var/log/calamari/
#calamari-ctl initialize
apt-key list
ceph-deploy calamari connect ceph01 ceph02 ceph03 ceph04
#ceph-deploy install ceph-admin ceph01 ceph02 ceph03 安裝ceph集群
#ceph-deploy new test-ceph01 初始化mon并生成ceph.conf
修改ceph.conf文件
[global]
fsid = de882364-b3f9-45ce-b625-42acdbba3922
mon_initial_members = ceph01, ceph02, ceph03
mon_host = 160.17.5.11,160.17.5.12,160.17.5.13
auth_cluster_required = cephx
auth_service_required = cephx
auth_client_required = cephx
filestore_xattr_use_omap = true
public_network = 160.17.5.0/24
cluster_network = 192.168.110.0/24
osd_pool_default_size = 3
osd_pool_default_min_size = 2
osd_pool_default_pg_num = 256
osd_pool_default_pgp_num = 256
osd_max_backfills = 3
osd_recovery_max_active = 5
ceph mon remove ceph01
mon_host = 192.168.111.11,192.168.111.12,192.168.111.13
Ceph-deploy mon create test-ceph01 創(chuàng)建可以是3臺(tái)mon
ceph-deploy --overwrite-conf mon create ceph01
ceph-deploy gatherkeys ceph01 ceph02 ceph03
環(huán)境有臟數(shù)據(jù)執(zhí)行以下操作
Ceph-deploy osd create --zap-disk ceph01:/dev/sdc ceph02:/dev/sdc ceph03:/dev/sdc
強(qiáng)制安裝
ceph-deploy --overwrite-conf osd create rceph01:/dev/sdb rceph02://dev/sdb rceph03:/dev/sdb
pkill -i salt-minion
salt-key -L 發(fā)現(xiàn)
salt-key -A 加入
節(jié)點(diǎn)需要安裝網(wǎng)管的可以加入主機(jī)的名稱
安裝
#apt-get install tgt radosgw
#apt-get install libapache2-mod-fastcgi
先將節(jié)點(diǎn)ceph01節(jié)點(diǎn)生成ceph.client.radosgw.keyring的key拷貝到其他需要網(wǎng)管的節(jié)點(diǎn)
將節(jié)點(diǎn)ceph01文件分發(fā)到個(gè)節(jié)點(diǎn)的home下
./gateway.sh
./server
創(chuàng)建池
./pool.sh
選擇網(wǎng)管節(jié)點(diǎn)
ceph-deploy --overwrite-conf config push ceph03
免責(zé)聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如果涉及侵權(quán)請(qǐng)聯(lián)系站長(zhǎng)郵箱:is@yisu.com進(jìn)行舉報(bào),并提供相關(guān)證據(jù),一經(jīng)查實(shí),將立刻刪除涉嫌侵權(quán)內(nèi)容。