对容器全盘空间用尽事件进行查错

如果挂接为容器永久性存储媒体的专用磁盘的存储空间用尽,您需要采取紧急措施。

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 文件系统应该会使用该磁盘上的所有可用空间。