Get the App
SLTechnology News&Howtos  ›  Servers  › 

What is the method for UDEV to take effect in Linux 7.x

Shulou Source: shulou.com Published: 2022-06-01 03:35:25 09月25日 Update

Linux 7.x what is the effective method of UDEV, I believe that many inexperienced people do not know what to do, so this article summarizes the causes of the problem and solutions, through this article I hope you can solve this problem.

In linux 6.x, when you install RAC, you need to configure UDEV for persistence:

[root@rac01 udev] cat 99-oracle-asmdevices.rules

KERNEL== "sd*", ENV {DEVTYPE} = = "disk", SUBSYSTEM== "block", PROGRAM== "/ usr/lib/udev/scsi_id-g-u-d $devnode", RESULT== "1ATA_VBOX_HARDDISK_VB90ea2842-3d5cfe18", RUN+= "/ bin/sh-c 'mknod / dev/asmdiskb b $major $minor; chown grid:asmadmin / dev/asmdiskb; chmod 0660 / dev/asmdiskb'"

KERNEL== "sd*", ENV {DEVTYPE} = = "disk", SUBSYSTEM== "block", PROGRAM== "/ usr/lib/udev/scsi_id-g-u-d $devnode", RESULT== "1ATA_VBOX_HARDDISK_VB0c31ed82-ca3c7a2f", RUN+= "/ bin/sh-c 'mknod / dev/asmdiskc b $major $minor; chown grid:asmadmin / dev/asmdiskc; chmod 0660 / dev/asmdiskc'"

KERNEL== "sd*", ENV {DEVTYPE} = = "disk", SUBSYSTEM== "block", PROGRAM== "/ usr/lib/udev/scsi_id-g-u-d $devnode", RESULT== "1ATA_VBOX_HARDDISK_VBd2eba70f-9707444e", RUN+= "/ bin/sh-c 'mknod / dev/asmdiskd b $major $minor; chown grid:asmadmin / dev/asmdiskd; chmod 0660 / dev/asmdiskd'"

KERNEL== "sd*", ENV {DEVTYPE} = = "disk", SUBSYSTEM== "block", PROGRAM== "/ usr/lib/udev/scsi_id-g-u-d $devnode", RESULT== "1ATA_VBOX_HARDDISK_VB15946091-75f9c0f4", RUN+= "/ bin/sh-c 'mknod / dev/asmdiske b $major $minor; chown grid:asmadmin / dev/asmdiske; chmod 0660 / dev/asmdiske'"

KERNEL== "sd*", ENV {DEVTYPE} = = "disk", SUBSYSTEM== "block", PROGRAM== "/ usr/lib/udev/scsi_id-g-u-d $devnode", RESULT== "1ATA_VBOX_HARDDISK_VBac950c6b-de84431c", RUN+= "/ bin/sh-c 'mknod / dev/asmdiskf b $major $minor; chown grid:asmadmin / dev/asmdiskf; chmod 0660 / dev/asmdiskf'"

After configuring UDEV, you need to execute:

Start_udev

To make the configuration effective.

However, there is no start_udev command in linux 7.x. After configuring UDEV, you need to execute:

[root@rac01 udev] # / sbin/udevadm trigger-- type=devices-- action=change

Or:

[root@rac01 udev] # / sbin/udevadm control-- reload

[root@rac01 udev] # ll / dev/asm*

Lrwxrwxrwx 1 root root 4 Mar 6 06:46 / dev/asm-diskc-> sdc1

Lrwxrwxrwx 1 root root 4 Mar 6 06:46 / dev/asm-diskd-> sdd1

Lrwxrwxrwx 1 root root 4 Mar 6 06:46 / dev/asm-diske-> sde1

Lrwxrwxrwx 1 root root 4 Mar 6 06:46 / dev/asm-diskf-> sdf1

Lrwxrwxrwx 1 root root 4 Mar 6 06:46 / dev/asm-diskg-> sdg1

[root@rac01 udev] #

If it doesn't change, you'll have to restart the system.

After reading the above, have you mastered what is the effective method of UDEV in Linux 7.x? If you want to learn more skills or want to know more about it, you are welcome to follow the industry information channel, thank you for reading!

Tags: Method configuration content more problem helpless for this reason command skill article system experience industry information information channel channel Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno MySQL vpn NVidia Linux MariaDB