From 625c6afa8e7c265685e5e3443add5d37cc647ce2 Mon Sep 17 00:00:00 2001 From: mabofu Date: Thu, 25 May 2023 13:23:58 +0800 Subject: [PATCH] fixed bug-I78815: the rbd reads and writes performance data that is inconsistent with the iostat results --- dsms_deploy/dsms-deploy.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dsms_deploy/dsms-deploy.py b/dsms_deploy/dsms-deploy.py index 5d6de00..3be0d2f 100755 --- a/dsms_deploy/dsms-deploy.py +++ b/dsms_deploy/dsms-deploy.py @@ -619,6 +619,7 @@ def command_init(args): run_ssh_command(leader.ip, DEPLOY_USERNAME, leader.root_passwd, f'cd {INIT_DIR};ceph-deploy mgr create {leader.hostname}') run_ssh_command(leader.ip, DEPLOY_USERNAME, leader.root_passwd, f'cd {INIT_DIR};ceph-deploy mds create {hostname}') run_ssh_command(leader.ip, DEPLOY_USERNAME, leader.root_passwd, 'ceph mgr module enable cephadm --force') + run_ssh_command(leader.ip, DEPLOY_USERNAME, leader.root_passwd, 'ceph config set mgr mgr/prometheus/scrape_interval 10') run_ssh_command(leader.ip, DEPLOY_USERNAME, leader.root_passwd, 'ceph mgr module enable prometheus --force') time.sleep(20) # give some room to start run_ssh_command(leader.ip, DEPLOY_USERNAME, leader.root_passwd, 'ceph orch set backend cephadm') @@ -679,7 +680,6 @@ def command_add_node(args): run_ssh_command(leader.ip, DEPLOY_USERNAME, leader.root_passwd, f'cd {INIT_DIR};ceph-deploy admin {add_node.hostname}') if add_node.mon: run_ssh_command(leader.ip, DEPLOY_USERNAME, leader.root_passwd, f'cd {INIT_DIR};ceph-deploy mon create {add_node.hostname}') - run_ssh_command(leader.ip, DEPLOY_USERNAME, leader.root_passwd, f'cd {INIT_DIR};ceph-deploy mgr create {add_node.hostname}') run_ssh_command(leader.ip, DEPLOY_USERNAME, leader.root_passwd, f'cd {INIT_DIR};ceph-deploy mds create {add_node.hostname}') run_ssh_command(leader.ip, DEPLOY_USERNAME, leader.root_passwd, f'ssh-copy-id -f -i ~/ceph.pub root@{add_node.hostname}') -- Gitee