Error informing the kernel about modifications to partition

前端之家收集整理的这篇文章主要介绍了Error informing the kernel about modifications to partition前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

centos7.2 partprobe 执行失败的问题

给ceph的osd配置分区的过程中,想通过partprobe命令及时通知kernel去更新分区表,
所以用parted命令创建完分区后就执行partprobe命令,在centos7.1上代码跑得666的,
但是centos7.2上就发生如下蛋痛的问题:

[root@ai126251006028 udev]# partprobe
Error: Error informing the kernel about modifications to partition /dev/sdb1 -- Device or resource busy. This means Linux won't know about any changes you made to /dev/sdb1 until you reboot -- so you shouldn't mount it or use it in any way before rebooting.
Error: Failed to add partition 1 (Device or resource busy)
[root@ai126251006028 udev]# partprobe
Error: Error informing the kernel about modifications to partition /dev/sdb1 -- Device or resource busy. This means Linux won't know about any changes you made to /dev/sdb1 until you reboot -- so you shouldn't mount it or use it in any way before rebooting.
Error: Failed to add partition 1 (Device or resource busy)


到google上搜索发现针对ceph-deploy工具(http://ceph-users.ceph.narkive.com/nDZS0mBE/ceph-disk-from-jewel-has-issues-on-redhat-7), 有人提了相同的问题,用partx可以搞定。


[root@ai126251006028 udev]# partx -u /dev/sdd
[root@ai126251006028 udev]# partx -u /dev/sdd
[root@ai126251006028 udev]# partprobe
Error: Error informing the kernel about modifications to partition /dev/sdb1 -- Device or resource busy. This means Linux won't know about any changes you made to /dev/sdb1 until you reboot -- so you shouldn't mount it or use it in any way before rebooting.
Error: Failed to add partition 1 (Device or resource busy)
[root@ai126251006028 udev]# partx -u /dev/sdd
[root@ai126251006028 udev]# partx -u /dev/sdd


感觉应该是partprobe跟centos7.2内核有地方不兼容导致的,暂时mark下。
原文链接:https://www.f2er.com/centos/380822.html

猜你在找的CentOS相关文章