源码安装ceph后使用测试集群的方法
标签(空格分隔): ceph,ceph实验,ceph源码
通过博客 源码编译安装ceph(aarch64架构) 成功安装ceph之后,之后可以运行一个测试集群进行实验
1,进入安装构建目录:
[root@localhost ~]# cd ceph/build
2,进行make:
[root@localhost build]# make vstart
3,启动测试集群:
[root@localhost build]# ../src/vstart.sh -d -n -x -l
4,查看集群状态:
[root@localhost build]# ./bin/ceph -s
*** DEVELOPER MODE: setting PATH, PYTHONPATH and LD_LIBRARY_PATH ***
2017-11-29 03:08:27.029 ffff79bef200 -1 WARNING: all dangerous and experimental features are enabled.
2017-11-29 03:08:27.029 ffff79bef200 -1 Errors while parsing config file!
2017-11-29 03:08:27.029 ffff79bef200 -1 read_conf: ignoring line 1 because it is not valid UTF8.
2017-11-29 03:08:27.089 ffff79bef200 -1 WARNING: all dangerous and experimental features are enabled.
cluster:
id: db510864-278a-425e-9380-2af00aa48ac9
health: HEALTH_OK
services:
mon: 3 daemons, quorum a,b,c
mgr: x(active)
mds: cephfs_a-1/1/1 up {0=a=up:active}, 2 up:standby
osd: 3 osds: 3 up, 3 in
data:
pools: 2 pools, 16 pgs
objects: 21 objects, 2.19K
usage: 3.20G used, 27.0G / 30.2G avail
pgs: 16 active+clean
可以看到一些错误和警告,可以不必理会。
5,关闭测试集群:
[root@localhost build]# ../src/stop.sh
提示:启动了测试集群后,可以进行几乎所有和集群相关的命令,只需要在命令前加上 ./bin/ 就可以了
参考文档:
posted on 2017-11-29 15:50 sisimi_2017 阅读(1367) 评论(0) 编辑 收藏 举报