红联Linux门户
Linux帮助

partprobe出现warning问题

发布时间:2012-10-04 18:07:09来源:红联作者:静静飞舞
今天在给服务器做LVM的时候(服务器的系统是CentOS 6.3),用fdisk分区之后,用w写入分区表的时候,就提示
Command (m for help): w
The partition table has been altered!

Calling ioctl() to re-read partition table.

WARNING: Re-reading the partition table failed with error 16: Device or resource busy.
The kernel still uses the old table. The new table will be used at
the next reboot or after you run partprobe(8) or kpartx(8) Syncing disks.
退出fdisk之后,用partprobe直接通知内核重读分区表,出现如下问题:
Warning: WARNING: the kernel failed to re-read the partition table on /dev/sda (设备或资源忙). As a result, it may not reflect all of your changes until after reboot.
尝试用
partx -a /dev/sda

BLKPG: Device or resource busy
error adding partition 1
BLKPG: Device or resource busy
error adding partition 2
BLKPG: Device or resource busy
error adding partition 3
BLKPG: Device or resource busy
error adding partition 4
BLKPG: Device or resource busy
error adding partition 5
BLKPG: Device or resource busy
error adding partition 6
BLKPG: Device or resource busy
error adding partition 7
BLKPG: Device or resource busy
error adding partition 8
出现上面输出。
将SELinux设置,setenforce 0 之后,问题依旧,请问怎么解决?
会不会是 CentOS 6.3 本身的设置?
文章评论

共有 10 条评论

  1. 于 2014-07-12 12:02:30发表:

    我的和你的一样我用的也是虚拟机 ,是虚拟机的愿意那么?

  2. 于 2014-04-16 18:16:28发表:

    我的也是不行,用partx -a 也不行。

  3. 于 2014-04-16 18:15:58发表:

    我的也不行

  4. 于 2014-02-28 19:27:08发表:

    假设新增的分区是/dev/sda9,那么执行partx -a /dev/sda9 /dev/sda就可以了,试过partprobe; partprobe /dev/sda9(提示找不到此设备); partx -a /dev/sda​(跟你提示的一样)都不行,最后网上查到partx -a /dev/sda9 /dev/sda才成功​

  5. 静静飞舞 于 2012-10-06 10:03:31发表:

    6# 相思爱文


    嗯,谢谢你啦~~~谢谢~~

  6. 相思爱文 于 2012-10-05 21:33:05发表:

    用mount命令挂载。
    方法可搜索下,有详细说明的

    如果卸载前运行df命令查看,左面的设备,右面是挂载点
    卸载时只需指明设备或挂载点中的一项
    挂载时都要指明

  7. 静静飞舞 于 2012-10-05 15:14:04发表:

    4# 相思爱文

    嗯,谢谢你啦~~~找到原因了。主要是因为是使用的虚拟机,如果是直接在Linux系统上,不会出现这个问题,呵呵,谢谢你啦~~~
    哦,对了,请问用umount -l 卸载分区之后,怎么样挂载呀?

  8. 相思爱文 于 2012-10-04 21:39:13发表:

    解决不了,就检查好后,做好准备,重启吧

  9. 静静飞舞 于 2012-10-04 20:03:42发表:

    2# 相思爱文


    嗯,嗯 我是在/dev/sda的空余空间用fdisk划分新的分区的,不是在已经挂载的分区上直接分。

  10. 相思爱文 于 2012-10-04 19:01:44发表:

    在已经使用的分区中,是不能重新分区的。要分区,先卸载已挂载分区,然后分区,建立文件系统(格式化),挂载,最后才能使用。