linux扩展磁盘,格式化分区时候,如果报错:WARNING: Re-reading the partition table failed with error 16: 设备或资源忙.
[root@rac2 grid]# fdisk /dev/sda
...
WARNING: Re-reading the partition table failed with error 16: 设备或资源忙.
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)
正在同步磁盘。
[root@rac2 grid]#
可以通过三个方法尝试解决:
1.重启设备:reboot
2.如果不允许重启设备的话:
[root@rac2 grid]#partprobe
或者:
[root@rac2 grid]# kpartx -l /dev/sda /* /dev/sda为格式化出错的分区 */
问题解决