对容器全盘空间用尽事件进行查错
如果挂接为容器永久性存储媒体的专用磁盘的存储空间用尽,您需要采取紧急措施。
Proceed as follows to solve the problem with resizing the storage medium. Run all listed commands as root on the container host.
过程:调整存储媒体大小
-
增加磁盘大小。需要采取什么措施取决于具体的安装情境。
-
If the disk is partitioned (for example, there is a
/dev/vdb1for disk/dev/vdb), run the following commands:运行以下命令:
-
parted /dev/vdb -
(parted)print -
(parted)resizepart NUMBER 100%whereNUMBERis the partition number shown byprintcommand (for example,1if/dev/vdb1) -
(parted)quit
-
-
调整文件系统的大小。例如,对于 XFS 文件系统,请运行以下命令:
xfs_growfs /dev/vdb1
完成该过程后,XFS 文件系统应该会使用该磁盘上的所有可用空间。