partprobe报错Device or resource busy

Warning: the kernel failed to re-read the partition table on /dev/vda (Device or resource busy)

我在初始化Linux数据盘时,执行将partprobe,新的分区表变动同步至操做系统,遇到了如下问题:bash

Warning: WARNING: the kernel failed to re-read the partition table on /dev/vda (Device or resource busy).
 As a result, it may not reflect all of your changes until after reboot.


我首先尝试了一个方法ide

假设新增的分区是/dev/sda9,那么执行partx -a /dev/sda9 /dev/sda就能够了spa

2019090215151759.png

宣布失败。操作系统


partprobe必须具体到新建的那个分区,不然没法成功从新读取分区表debug

如:orm

partprobe
Warning: WARNING: the kernel failed to
re-read the partition table on /dev/sda (Device or resource busy).
As a result, it may not reflect all of your changes until after reboot.

(错误信息,提示重启,可是重启以后也没法成功,由于partprobe须要针对单个新增分区才适当)blog

如:同步

partprobe /dev/sda9it

/dev/sda9为刚用fdisk新建的分区,显示成功io

partprobe这个命令执行完毕以后不会输出任何返回信息

成功debug√

相关文章
相关标签/搜索