My Oracle Support Banner

Oracle Linux 6 : 'partprobe' command shows "WARNING: the kernel failed to re-read the partition table on /dev/sdd (Device or resource busy)" . (Doc ID 2308515.1)

Last updated on MAY 13, 2020

Applies to:

Linux OS - Version Oracle Linux 6.9 with Unbreakable Enterprise Kernel [4.1.12] and later
Oracle Cloud Infrastructure - Version N/A and later
Information in this document applies to any platform.


On Oracle Linux 6, after the LVM disk space and underlying storage has been extended up to few a gigabytes, subsequently trying to extend the same LVM is unsuccessful after a new partition has been created.

The command 'partprobe' is unable to run and attempting an online resize and extending the partition which is mounted as Ext4 filesystem fails as in the example below:

After successfully creating PV and VG mounted the FS/volume group. Then created New Partition as /dev/sdd3 and then tried partprobe with old File System mounted :

[root@localhost ~]# lvdisplay /dev/DataVolGroup/lvol0
--- Logical volume ---
LV Path /dev/DataVolGroup/lvol0
LV Name lvol0
VG Name DataVolGroup
LV Write Access read/write
LV Creation host, time OL6u8, 2017-08-29 16:36:33 +0530
LV Status available
# open 0
LV Size 1.00 GiB
Current LE 256
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 251:3
----- Mounted the Filesystem -------
[root@localhost ~]# mount /dev/DataVolGroup/lvol0 /mnt/test_lv/
[root@localhost ~]# ll
total 16
drwx------. 2 root root 16384 Aug 29 16:37 lost+found
-rw-r--r--. 1 root root 0 Aug 29 16:41 test1
-rw-r--r--. 1 root root 0 Aug 29 16:41 test2
-rw-r--r--. 1 root root 0 Aug 29 16:41 test3
-rw-r--r--. 1 root root 0 Aug 29 16:41 test4
-rw-r--r--. 1 root root 0 Aug 29 16:41 test5
[root@Test6u8 ~]# df -k /mnt/test_lv
Filesystem 1K-blocks Used Available Use% Mounted on
999320 1284 929224 1% /mnt/test_lv
Command (m for help): t
Partition number (1-4): 3
Hex code (type L to list codes): 8e
Changed system type of partition 3 to 8e (Linux LVM)
Command (m for help): p
Disk /dev/sdd: 53.7 GB, 53687091200 bytes
255 heads, 63 sectors/track, 6527 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x91ad2ad5
Device Boot Start End Blocks Id System
/dev/sdd1 1 654 5253223+ 8e Linux LVM
/dev/sdd2 655 1438 6297480 8e Linux LVM
/dev/sdd3 1439 1700 2104515 8e Linux LVM <<<<<<<<<<<
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.
[root@Test6u8 ~]# partprobe /dev/sdd
Warning: WARNING: the kernel failed to re-read the partition table on /dev/sdd (Device or resource busy). As a result, it may not reflect all of your changes until after reboot.
[root@Test6u8 ~]# cat /proc/partitions |grep sdd
8 48 52428800 sdd
8 49 5253223 sdd1
8 50 6297480 sdd2

-------- New partition /dev/sdd3 is not reflected ---------



No changes


To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!

In this Document

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.