In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-07 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
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!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.