WARNING: Re-reading the partition table failed

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了WARNING: Re-reading the partition table failed相关的知识,希望对你有一定的参考价值。

今日在做lvm的时候,把一块盘剩余空间全部分给新分区,在保存的时候报:

WARNING: Re-reading the partition table failed with error 16: 设备或资源忙.
技术分享图片

解决方法:执行下partprobe 命令

partprobe包含在parted的rpm软件包中。partprobe可以修改kernel中分区表,使kernel重新读取分区表。 因此,使用该命令就可以创建分区并且在不重新启动机器的情况下系统能够识别这些分区。

查看是否安装该命令:

[[email protected] ~]# rpm -q parted
parted-3.1-28.el7.x86_64
[[email protected] ~]# 
[[email protected] ~]# 
[[email protected] ~]# partprobe
Warning: 无法以读写方式打开 /dev/sr0 (只读文件系统)。/dev/sr0 已按照只读方式打开。

在次查看第三块已经出来了:
技术分享图片

如果还有错误,可以从错误中看出来,需要reboot重启然后再mkfs格式化硬盘空间就可以了。

以上是关于WARNING: Re-reading the partition table failed的主要内容,如果未能解决你的问题,请参考以下文章

fdisk时WARNING: Re-reading the partition table failed with error 16: 设备或资源忙.

[转帖]Warning:detected "cgroupfs" as the Docker cgroup driver. The recommended driver is &qu

关于fastapi开启多个服务实例时遇到WARNING: You must pass the application as an import string to enable 'reloa

warning C4819 解决方案 warning C4819: The file contains a character that cannot be represented in the cu

WARNING: The TCP backlog setting of 511.解决

-- Warning: Skipping the data of table mysql.event. Specify the --events option explicitly.