ceph deployment scripts (luminous) a key deployment ceph (docker)

The script is written, really hard! Bokor easy!

The old rules it:

. 1 Git clone HTTPS: // github.com/luckman666/deploy_ceph_cluster_luminous_docker.git 
2 CD deploy_ceph_cluster_luminous_docker -R & lt && the chmod 755 .
 . 3  # base.config edit parameters inside
 . 4 ./deploy_ceph_master.sh

Before writing the ceph (jewlel) due to the associated source of instability, often lead to failure of the script can not download!

So I wrote a ceph (luminous)

docker deployment ceph (luminous) related to the stability of the mirror I have been packaged into individual public warehouse

Silhouette profile section

Configure the main functions of the script parameters as needed (optional):

Automatic mutual trust,
clock synchronization,
change the hostname,
automatically deploy mon cluster,
automatically deploy OSD cluster,
automatically deploy MGR standby
automatically deploy the cluster RGW
automatically added portainer monitor, manage cluster container

After the implementation of the server where the environment variable refresh or re-login server.
View cluster case execution ceph -s

 
Check the operation of the server process:
 
 
MGR cluster monitor case, the clustering result View MGR display position, and enter the corresponding IP address and port number
 
 

Add OSD command (replaced by the corresponding variable)

$ Ceph_base_path the root directory of the disk device

$ Odisk disk device name

$ceph_base_path ceph基础目录

擦盘

1 ocker run --rm —privileged=true \
2 -v $disk_path/:/dev/ \
3 -e OSD_DEVICE=$disk_path/$odisk \
4 registry.cn-hangzhou.aliyuncs.com/yangb/ceph_luminous zap_device

添加OSD

1 docker run -d --net=host --name=$odisk —privileged=true \
2 -v $ceph_base_path/etc/:/etc/ceph \
3 -v $ceph_base_path/lib/:/var/lib/ceph \
4 -v $disk_path/:/dev/ \
5 -e OSD_DEVICE=$disk_path/$odisk \
6 -e OSD_TYPE=disk \
7 -e CLUSTER=ceph registry.cn-hangzhou.aliyuncs.com/yangb/ceph_luminous osd_ceph_disk

 

自动部署了容器管理工具,可以访问部署节点的9000端口查看和管理各个节点的容器运行情况
需要配置一下

 

这个脚本写的真心不容易,各位老板关注、点赞、转发必发大财!

持续关注波哥,相信波哥!
波哥在憋大招即将推出!




Guess you like

Origin www.cnblogs.com/devops-ITboge/p/11234600.html