Legacy Knowledge Base
公開されました Jun. 30, 2025

破損したSearchサービスボリュームをクリーンアップする

Written By

Péter Simonyi

How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How To articles!

While we make every effort to ensure this Knowledge Base is accurate, it may not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with any feedback or concerns.

Legacy Article

You are viewing an article from our legacy "FastTrack" publication program, made available for informational purposes. Articles in this program were published without a requirement for independent editing or verification and are provided"as is" without guarantee.

Before using any information from this article, independently verify its suitability for your situation and project.

問題

  • Search サービスのボリュームが破損し、ES ノードが起動しない。

Environment

  • LXC-SM

解決策

1. SearchサービスのLCP.jsonに以下のようなボリューム定義があると仮定します:

"volumes": {
"esdata": "/data"
}

2. ボリュームの新しいパスを指定する(これにより、以前のパスの内容が新しいパスに移動するので、/dataフォルダにあったESノードとインデックスが/data-newフォルダに移動します)。

"volumes": {
"esdata": "/data-new"
}
3. Search サービスのデプロイ
4. Search サービスの Shell にアクセスし、すべてのインスタンスから /data-new フォルダのファイルをすべて削除する
5. ボリュームのパスを元のパスに戻す
"volumes": {
"esdata": "/data"
}
6. Searchサービスをデプロイする

追加情報

  • この方法は、ボリュームが破損しているためにSearchサービスが起動できない場合にのみ使用します。
  • 以下の手順を踏むと、完全な再インデックス化が必要になりますのでご注意ください。
  • CLIを使用してSearchサービスのみをデプロイする場合、Elasticsearchに接続できないことが確認された場合、Liferayも再起動する必要があるかもしれません
Did this article resolve your issue ?

Legacy Knowledge Base