Centos搭建ceph+++八、添加一块OSD

八、添加一块OSD


1.添加【管理节点(都是ceph用户my-cluster目录下执行)执行

ceph-deploy osd prepare node1:/ceph/osd/

ceph-deploy osd prepare node1:/ceph/osd/

...
...
[node1][INFO  ] checking OSD status...
[node1][DEBUG ] find the location of an executable
[node1][INFO  ] Running command: sudo /bin/ceph --cluster=ceph osd stat --format=json
[ceph_deploy.osd][DEBUG ] Host node1 is now ready for osd use.

2.激活新的OSD

ceph-deploy osd activate node1:/ceph/osd/

...
...
[node1][INFO  ] checking OSD status...
[node1][DEBUG ] find the location of an executable
[node1][INFO  ] Running command: sudo /bin/ceph --cluster=ceph osd stat --format=json
[node1][INFO  ] Running command: sudo systemctl enable ceph.target

3.查看状态

[root@node2 ~]# ceph -w
    cluster 46ac86e8-1efe-403c-b735-587f9d76a905
     health HEALTH_OK
     monmap e1: 1 mons at {node1=10.0.0.41:6789/0}
            election epoch 3, quorum 0 node1
     osdmap e14: 3 osds: 3 up, 3 in
            flags sortbitwise,require_jewel_osds
      pgmap v42: 64 pgs, 1 pools, 0 bytes data, 0 objects
            15417 MB used, 39842 MB / 61440 MB avail
                  64 active+clean

2017-11-28 04:50:10.668940 mon.0 [INF] pgmap v42: 64 pgs: 64 active+clean; 0 bytes data, 15417 MB used, 39842 MB / 61440 MB avail
2017-11-28 04:50:14.665988 mon.0 [INF] pgmap v43: 64 pgs: 64 active+clean; 0 bytes data, 15417 MB used, 39842 MB / 61440 MB avail

你会发现变成了active + clean状态


你可能感兴趣的:(ceph四节点部署,ceph四节点部署)