--- title: "分片已启动 (index_shard_started_exception) 错误排查与解决" date: 2026-01-25 lastmod: 2026-01-25 description: "index_shard_started_exception 表示尝试对一个已经启动的分片执行启动操作,分片已启动是正常状态。" tags: ["分片"] summary: "为什么这个错误发生 # index_shard_started_exception 表示尝试对一个已经启动的分片执行启动操作。 如何修复 # 1. 检查分片状态 # GET /_cat/shards?v 2. 无需操作 # 分片已启动是正常状态。 3. 如果需要重启 # POST /_cluster/reroute { "commands": [{ "move": { "index": "<index>", "shard": 0, "from_node": "node1", "to_node": "node2" } }] } 预防措施 # 避免重复启动分片 " --- ## 为什么这个错误发生 `index_shard_started_exception` 表示尝试对一个已经启动的分片执行启动操作。 ## 如何修复 ### 1. 检查分片状态 ```bash GET /_cat/shards?v ``` ### 2. 无需操作 分片已启动是正常状态。 ### 3. 如果需要重启 ```bash POST /_cluster/reroute { "commands": [{ "move": { "index": "", "shard": 0, "from_node": "node1", "to_node": "node2" } }] } ``` ### 预防措施 - 避免重复启动分片