Skip to content

Commit

Permalink
Merge pull request #1446 from drivebyer/patch-2
Browse files Browse the repository at this point in the history
Update command font
  • Loading branch information
windsonsea authored May 4, 2023
2 parents f0b8970 + 7287c41 commit e9ce7ca
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions docs/zh/docs/middleware/elasticsearch/user-guide/migrate-es.md
Original file line number Diff line number Diff line change
Expand Up @@ -185,22 +185,22 @@ pvc-7d4c45c9-49d6-4684-aca2-8b853d0c335c 37580963840 prod-master3 Ready true /de
由于 HwameiStor 使用 rclone 来迁移 PV,rclone 在迁移过程中可能会丢失权限(见 [rclone#1202](https://github.com/rclone/rclone/issues/1202)[hwameistor#830](https://github.com/hwameistor/hwameistor/issues/830))。

具体表现在 es 上的现象则是 es 一直反复启动失败,使用一下命令查看 pod 日志:
```
```bash
kubectl -n mcamel-system logs mcamel-common-es-cluster-masters-es-data-0 -c elasticsearch
```

日志中包含如下错误信息:
```
```log
java.lang.IllegalStateException: failed to obtain node locks, tried [[/usr/share/elasticsearch/data]]] with lock id [0]; maybe these locations are not writable or multiple nodes were started without increasing [node.max_local_storage_nodes] (was [1])?
```

这时我们需要使用以下命令修改 es 的 CR:
```
```bash
kubectl -n mcamel-system edit elasticsearches.elasticsearch.k8s.elastic.co mcamel-common-es-cluster-masters
```

为 es 的 pod 添加一个 initcontainer,initcontainer 的内容如下:
```
```yaml
- command:
- sh
- -c
Expand All @@ -212,7 +212,7 @@ kubectl -n mcamel-system edit elasticsearches.elasticsearch.k8s.elastic.co mcame
```
它在 CR 中的位置如下:
```
```yaml
spec:
...
...
Expand Down

0 comments on commit e9ce7ca

Please sign in to comment.