RHEL8 udev & partprob Error: Partition(s):1,2,3.. /dev/sdc1 have been written, but we have been unable to inform the kernel of the change
by scofieldd from LinuxQuestions.org on (#4T7P4)
Hi guys ,
I was trying to add shared disks using udev in my rhel8 vm on virtualbox,but I am having a problem when applying the rules along with partprob on the partitions . Does udev configuration change in red hat 8 ?
Thx in advance
The shared disks are required for my oracle database install .
- It seems that rhel8 doesn't allow partprob to read the partition table online after its modification (only applies change in kernel and not in userland). for every disk the system keeps requesting a reboot to link these modification to the kernel (see error) :
Code:#/sbin/partprobe /dev/sdc1
#/sbin/partprobe /dev/sdd1
#/sbin/partprobe /dev/sde1
#/sbin/partprobe /dev/sdf1Quote:
" udev rules :
Quote:
" The disks :
the desired permissions are not visible
Code:[root@london2 vagrant]# ll /dev/oracleasm/asm*
lrwxrwxrwx. 1 root root 6 Oct 26 07:30 /dev/oracleasm/asm-disk1 -> ../sdc
lrwxrwxrwx. 1 root root 6 Oct 26 07:30 /dev/oracleasm/asm-disk2 -> ../sdd
lrwxrwxrwx. 1 root root 6 Oct 26 07:30 /dev/oracleasm/asm-disk3 -> ../sde
lrwxrwxrwx. 1 root root 6 Oct 26 07:30 /dev/oracleasm/asm-disk4 -> ../sdf" udev status :
On the other hand I also notice an error from the udev service
Quote:
the user oracle exists
Code:[root@london2 vagrant]# groups oracle
oracle : oinstall racdba dba oper backupdba dgdba kmdbabut even when I tried with the below commands than partprob to apply the changes It didn't work.Code:/sbin/partx -u /dev/sdc
OR /sbin/hdparm -z /dev/sdcAny insight would be really appreciated as I haven't found any resource online regarding custom udev rules issues in RHEL8


I was trying to add shared disks using udev in my rhel8 vm on virtualbox,but I am having a problem when applying the rules along with partprob on the partitions . Does udev configuration change in red hat 8 ?
Thx in advance
The shared disks are required for my oracle database install .
- It seems that rhel8 doesn't allow partprob to read the partition table online after its modification (only applies change in kernel and not in userland). for every disk the system keeps requesting a reboot to link these modification to the kernel (see error) :
Code:#/sbin/partprobe /dev/sdc1
#/sbin/partprobe /dev/sdd1
#/sbin/partprobe /dev/sde1
#/sbin/partprobe /dev/sdf1Quote:
| default: ****************************************************************************** default: Configure udev. Fri Oct 25 20:02:46 UTC 2019 default: ****************************************************************************** default: Error: Partition(s) 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 5 4, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64 on /dev/sdc1 have been written, but we have been unable to inform the kernel of the change, probably because it/they are in use. As a result, the old partition(s) will remain in use. You should reboot now before making further changes. default: Error: Partition(s) 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 5 4, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64 on /dev/sdd1 have been written, but we have been unable to inform the kernel of the change, probably because it/they are in use. As a result, the old partition(s) will remain in use. You should reboot now before making further changes. default: Error: Partition(s) 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 5 4, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64 on /dev/sde1 have been written, but we have been unable to inform the kernel of the change, probably because it/they are in use. As a result, the old partition(s) will remain in use. You should reboot now before making further changes. default: Error: Partition(s) 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 5 4, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64 on /dev/sdf1 have been written, but we have been unable to inform the kernel of the change, probably because it/they are in use. As a result, the old partition(s) will remain in use. You should reboot now before making further changes. |
Quote:
| [root@london2 vagrant]# cat /etc/udev/rules.d/99-oracle-asmdevices.rules KERNEL=="sd?1", SUBSYSTEM=="block", PROGRAM=="/usr/lib/udev/scsi_id -g -u -d /dev/$parent", RESULT=="1ATA_VBOX_HARDDISK_VB10a62cf9-e1a4aafe", SYMLINK+="oracleasm/asm-disk1", OWNER="oracle", GROUP="dba", MODE="0660" KERNEL=="sd?1", SUBSYSTEM=="block", PROGRAM=="/usr/lib/udev/scsi_id -g -u -d /dev/$parent", RESULT=="1ATA_VBOX_HARDDISK_VB28814cf8-c552fb1e", SYMLINK+="oracleasm/asm-disk2", OWNER="oracle", GROUP="dba", MODE="0660" KERNEL=="sd?1", SUBSYSTEM=="block", PROGRAM=="/usr/lib/udev/scsi_id -g -u -d /dev/$parent", RESULT=="1ATA_VBOX_HARDDISK_VBd90d74ee-9d444a1a", SYMLINK+="oracleasm/asm-disk3", OWNER="oracle", GROUP="dba", MODE="0660" KERNEL=="sd?1", SUBSYSTEM=="block", PROGRAM=="/usr/lib/udev/scsi_id -g -u -d /dev/$parent", RESULT=="1ATA_VBOX_HARDDISK_VB90ac3161-58c1b131", SYMLINK+="oracleasm/asm-disk4", OWNER="oracle", GROUP="dba", MODE="0660" |
the desired permissions are not visible
Code:[root@london2 vagrant]# ll /dev/oracleasm/asm*
lrwxrwxrwx. 1 root root 6 Oct 26 07:30 /dev/oracleasm/asm-disk1 -> ../sdc
lrwxrwxrwx. 1 root root 6 Oct 26 07:30 /dev/oracleasm/asm-disk2 -> ../sdd
lrwxrwxrwx. 1 root root 6 Oct 26 07:30 /dev/oracleasm/asm-disk3 -> ../sde
lrwxrwxrwx. 1 root root 6 Oct 26 07:30 /dev/oracleasm/asm-disk4 -> ../sdf" udev status :
On the other hand I also notice an error from the udev service
Quote:
| [root@london2 vagrant]# systemctl status systemd-udevd.service a- systemd-udevd.service - udev Kernel Device Manager Loaded: loaded (/usr/lib/systemd/system/systemd-udevd.service; static; vendor preset: disabled) Active: active (running) since Sat 2019-10-26 08:18:35 UTC; 2s ago Docs: man:systemd-udevd.service(8) man:udev(7) Main PID: 1958 (systemd-udevd) Status: "Processing with 12 children at max" Tasks: 1 Memory: 3.0M CGroup: /system.slice/systemd-udevd.service a""a"1958 /usr/lib/systemd/systemd-udevd Oct 26 08:18:35 london2.evilcorp.com systemd[1]: Stopped udev Kernel Device Manager. Oct 26 08:18:35 london2.evilcorp.com systemd[1]: Starting udev Kernel Device Manager... Oct 26 08:18:35 london2.evilcorp.com systemd-udevd[1958]: Network interface NamePolicy= disabled on kernel command line, ignoring. Oct 26 08:18:35 london2.evilcorp.com systemd-udevd[1958]: Error resolving user 'oracle': Bad message Oct 26 08:18:35 london2.evilcorp.com systemd[1]: Started udev Kernel Device Manager. |
Code:[root@london2 vagrant]# groups oracle
oracle : oinstall racdba dba oper backupdba dgdba kmdbabut even when I tried with the below commands than partprob to apply the changes It didn't work.Code:/sbin/partx -u /dev/sdc
OR /sbin/hdparm -z /dev/sdcAny insight would be really appreciated as I haven't found any resource online regarding custom udev rules issues in RHEL8