コード例 #1
0
def clean_cs_data():
    try:
        clean_cs_data_dir0 = "sudo rm -rf " + config.cs_0
        clean_cs_data_dir1 = "sudo rm -rf " + config.cs_1
        clean_cs_data_dir2 = "sudo rm -rf " + config.cs_2
        shell_operator.run_exec3(clean_cs_data_dir0)
        shell_operator.run_exec3(clean_cs_data_dir1)
        shell_operator.run_exec3(clean_cs_data_dir2)
    except Exception as e:
        logger.error("clean data fail.")
        raise e
コード例 #2
0
def start_etcd():
    #try:
    start_cmd = "nohup " + "etcd | tee etcd.log" + " &"
    logger.info(start_cmd)
    #start_cmd = config.mds_start + " " + config.mds_listen
    shell_operator.run_exec3(start_cmd)
コード例 #3
0
def start_snapshot_server():
    #try:
    start_cmd = "nohup " + config.snapshot_server_start + " -conf " + config.snapshot_clone_server_conf + " >> clone.log &"
    logger.info(start_cmd)
    #start_cmd = config.mds_start + " " + config.mds_listen
    shell_operator.run_exec3(start_cmd)
コード例 #4
0
def start_mds():
    #try:
    start_cmd = "nohup " + config.mds_start + " 2>&1 | tee mds.log &"
    #start_cmd = config.mds_start + " " + config.mds_listen
    shell_operator.run_exec3(start_cmd)