- Details
- Written by: sam
- Category: 電腦相關
- Hits: 2481
新加osd,透過ceph-deploy
[root@ceph1 ~]# vi /etc/hosts
10.0.252.160 px160
10.0.252.117 ceph1
10.0.252.118 ceph2
10.0.252.119 ceph3
10.0.252.161 px161
10.0.252.162 px162
10.0.252.163 px163
adduser
root@px160:~# adduser sam
root@px160:/etc# apt-get install sudo
root@px160:/etc# cat << EOF >/etc/sudoers.d/sam
sam ALL = (root) NOPASSWD:ALL
Defaults:sam !requiretty
EOF
oot@px160:/etc# chmod 440 /etc/sudoers.d/sam
一樣拿本機的第二顆來當osd
- Details
- Written by: sam
- Category: 電腦相關
- Hits: 3665
本次目標及對象
主機 ceph1 ceph2 ceph3
10.0.252.117-119
3 個 mon 安裝在三臺主機,
1 個admin 在ceph1
3 個 osd 安裝在三臺主機會各提供一個osd,測試性質,各200G
1 個 rados 本次要測試 object
此次採用centos 7
系統完成後,請先設定IP及hostname
我的如下
10.0.252.117 ceph1
10.0.252.118 ceph2
10.0.252.119 ceph3
- Details
- Written by: sam
- Category: 電腦相關
- Hits: 4986
Now status
root@px157:/etc/pve# pvecm status
Quorum information
------------------
Date: Thu Jul 6 13:49:32 2017
Quorum provider: corosync_votequorum
Nodes: 3
Node ID: 0x00000001
Ring ID: 1/144
Quorate: Yes
Votequorum information
----------------------
Expected votes: 3
Highest expected: 3
Total votes: 3
Quorum: 2
Flags: Quorate
Membership information
----------------------
Nodeid Votes Name
0x00000001 1 10.0.252.157 (local)
0x00000002 1 10.0.252.158
0x00000003 1 10.0.252.159