In emergency scenarios, OSD nodes may be restarted frequently, exerting impacts on services. Run the following command to set the OSD node status to DOWN:
This operation is risky. Exercise caution before command execution.
./dsware_insight [node_type] [dest_id] [dest_ip] [dest_port] [dest_mid] [command_type]
Parameter |
Description |
|---|---|
./dsware_insight |
Specifies an executable program for the tool. |
node_type |
Value: 0 |
dest_id |
The value can be obtained from the MDC configuration file. |
dest_ip |
Specifies the MDC IP address. |
dest_port |
Specifies the MDC port number. |
dest_mid |
Value: 8 |
command_type |
Value: 1807 |
parameter1 |
Specifies the resource pool ID. |
parameter2 |
Possible values are as follows: 0: cancels the DOWN status. 1: sets the DOWN status. |
parameter3 |
Specifies the ID list of OSD nodes. IDs are separated using spaces. |
An example is provided as follows:
./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 | |
NOTE:
Run the ./dsware_insight 0 2 192.168.6.8 10530 8 1807 2 1 33619991 command to set the status of OSD 33619991 in resource pool 0 to DOWN.