「ディスクがいっぱいになったコンテナ」イベントのトラブルシューティング

コンテナの永続ストレージメディアとしてマウントされた専用ディスクのストレージ領域が不足した場合は、緊急アクションが必要になります。

Proceed as follows to solve the problem with resizing the storage medium. Run all listed commands as root on the container host.

プロシージャ: ストレージメディアのサイズ変更
  1. ディスクのサイズを増やします。 取るべきアクションは、インストールシナリオによって異なります。

  2. If the disk is partitioned (for example, there is a /dev/vdb1 for disk /dev/vdb), run the following commands:

    次のコマンドを実行します。

    1. parted /dev/vdb

    2. (parted) print

    3. (parted) resizepart NUMBER 100% where NUMBER is the partition number shown by print command (for example, 1 if /dev/vdb1)

    4. (parted) quit

  3. ファイルシステムのサイズを変更します。 たとえば、XFSファイルシステムの場合、次のコマンドを実行します。

    xfs_growfs /dev/vdb1

手順を完了すると、XFSファイルシステムがディスク上の使用可能な容量をすべて使用しているはずです。