应急场景,可能会遇到OSD频繁重启,影响业务的问题。使用此命令可以将OSD强制置DOWN。
该操作为高危操作,执行前请确认。
./dsware_insight [node_type] [dest_id] [dest_ip] [dest_port] [dest_mid] [command_type]
参数 |
参数说明 |
|---|---|
./dsware_insight |
工具可执行程序 |
node_type |
0 |
dest_id |
通过MDC配置文件获取 |
dest_ip |
MDC的IP地址 |
dest_port |
MDC的端口号 |
dest_mid |
8 |
command_type |
1807 |
parameter1 |
资源池ID |
parameter2 |
取值 0:取消 1:设置 |
parameter3 |
OSD的NID列表,用空格隔开 |
示例:
./dsware_insight 0 2 192.168.6.8 10530 8 1807 2 1 33619991 |
|---|
[2022-02-28 19:42:09][INFO][/devcloud/workspace/j_TEPUIKAP/persistence/src/dsware/src/dsware_insight/dsware_debug_tool.c,1242] get_pool_mapping_mdc:pool(2) belong to mdc_id(3) cluster_id(0),send message to(ip=192.168.15.204@192.168.15.204, port=10530) This is a high-risk operation. Are you sure you want to continue? [Yes/No]Yes [2022-02-28 19:42:12][-]| type | value | [2022-02-28 19:42:12][-]+----------------+-----------------------------------------+ [2022-02-28 19:42:12][-]| operation | set force down osd | [2022-02-28 19:42:12][-]| pool_id | 2 | [2022-02-28 19:42:12][-]| result | success | |
说明:
执行“./dsware_insight 0 2 192.168.6.8 10530 8 1807 2 1 33619991”命令让资源池0中的33619991的OSD强制置DOWN。