In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)05/31 Report--
Editor to share with you how to view the udev correspondence of the asm disk in Oracle RAC, I believe most people do not know much about it, so share this article for your reference. I hope you will gain a lot after reading this article. Let's learn about it together.
[root@test ~] # cd / etc/udev/rules.d
[root@test rules.d] # cat 99-oracle-asmdevices.rules
KERNEL== "sd*", SUBSYSTEM== "block", PROGRAM== "/ sbin/scsi_id-whitelisted-replace-whitespace-device=/dev/$name", RESULT== "3600c0ff00027efc42a82ce5701000000", NAME= "crs1", OWNER= "grid", GROUP= "asmadmin", MODE= "0660"
KERNEL== "sd*", SUBSYSTEM== "block", PROGRAM== "/ sbin/scsi_id-whitelisted-replace-whitespace-device=/dev/$name", RESULT== "3600c0ff00027efc40f1fd15701000000", NAME= "crs2", OWNER= "grid", GROUP= "asmadmin", MODE= "0660"
KERNEL== "sd*", SUBSYSTEM== "block", PROGRAM== "/ sbin/scsi_id-whitelisted-replace-whitespace-device=/dev/$name", RESULT== "3600c0ff00027efc44e22d15701000000", NAME= "crs3", OWNER= "grid", GROUP= "asmadmin", MODE= "0660"
KERNEL== "sd*", SUBSYSTEM== "block", PROGRAM== "/ sbin/scsi_id-whitelisted-replace-whitespace-device=/dev/$name", RESULT== "3600c0ff00027efc49625d15701000000", NAME= "crs4", OWNER= "grid", GROUP= "asmadmin", MODE= "0660"
KERNEL== "sd*", SUBSYSTEM== "block", PROGRAM== "/ sbin/scsi_id-whitelisted-replace-whitespace-device=/dev/$name", RESULT== "3600c0ff00027efc4f429d15701000000", NAME= "crs5", OWNER= "grid", GROUP= "asmadmin", MODE= "0660"
KERNEL== "sd*", SUBSYSTEM== "block", PROGRAM== "/ sbin/scsi_id-whitelisted-replace-whitespace-device=/dev/$name", RESULT== "3600c0ff00027efc4f529d15701000000", NAME= "data1", OWNER= "grid", GROUP= "asmadmin", MODE= "0660"
KERNEL== "sd*", SUBSYSTEM== "block", PROGRAM== "/ sbin/scsi_id-whitelisted-replace-whitespace-device=/dev/$name", RESULT== "3600c0ff00027efc4f629d15701000000", NAME= "data2", OWNER= "grid", GROUP= "asmadmin", MODE= "0660"
KERNEL== "sd*", SUBSYSTEM== "block", PROGRAM== "/ sbin/scsi_id-whitelisted-replace-whitespace-device=/dev/$name", RESULT== "3600c0ff00027efc4f729d15701000000", NAME= "data3", OWNER= "grid", GROUP= "asmadmin", MODE= "0660"
KERNEL== "sd*", SUBSYSTEM== "block", PROGRAM== "/ sbin/scsi_id-whitelisted-replace-whitespace-device=/dev/$name", RESULT== "3600c0ff00027efc4f829d15701000000", NAME= "fra1", OWNER= "grid", GROUP= "asmadmin", MODE= "0660"
KERNEL== "sd*", SUBSYSTEM== "block", PROGRAM== "/ sbin/scsi_id-whitelisted-replace-whitespace-device=/dev/$name", RESULT== "3600c0ff00027efc4f929d15701000000", NAME= "fra2", OWNER= "grid", GROUP= "asmadmin", MODE= "0660"
[root@test rules.d] # ll
Total 56
-rw-r--r-- 1 root root 190 Sep 9 2016 55-usm.rules
-rw-r--r--. 1 root root 1652 Aug 26 2010 60-fprint-autosuspend.rules
-rw-r--r--. 1 root root 1060 Jun 29 2010 60-pcmcia.rules
-rw-r--r--. 1 root root 316 Jan 9 2013 60-raw.rules
-rw-r--r--. 1 root root 789 May 31 2016 70-persistent-cd.rules
-rw-r--r-- 1 root root 671 Sep 2 2016 70-persistent-net.rules
-rw-r--r-- 1 root root 40 Jan 24 2013 80-kvm.rules
-rw-r--r--. 1 root root 320 Sep 12 2012 90-alsa.rules
-rw-r--r--. 1 root root 83 Apr 1 2011 90-hal.rules
-rw-r--r--. 1 root root 2486 Jun 30 2010 97-bluetooth-serial.rules
-rw-r--r--. 1 root root 292 Jan 18 2013 98-kexec.rules
-rw-r--r--. 1 root root 54 Nov 3 2011 99-fuse.rules
-rw-r--r-- 1 root root 2163 Sep 9 2016 99-oracle-asmdevices.rules
-rw-r--r-- 1 root root 341 Aug 8 2017 99-vmware-scsi-udev.rules
[root@test sbin] # cd / dev/disk/
[root@test disk] # ls
By-id by-path by-uuid
[root@test disk] # cd by-id
[root@test by-id] # ll
Total 0
Lrwxrwxrwx 1 root root 10 Dec 6 09:20 dm-name-bak-lv01->.. /.. / dm-2
Lrwxrwxrwx 1 root root 10 Dec 6 09:20 dm-name-vg_db-lv_db1->.. /.. / dm-0
Lrwxrwxrwx 1 root root 10 Dec 6 09:20 dm-name-vg_db-lv_swap->.. /.. / dm-1
Lrwxrwxrwx 1 root root 10 Dec 6 09:20 dm-uuid-LVM-4r5uYRBHslmlhae5r2KYuVmikyIq9IeElMko3qUmkQcApM4qWJIcSDFDYnkwMns5->.. /.. / dm-1
Lrwxrwxrwx 1 root root 10 Dec 6 09:20 dm-uuid-LVM-4r5uYRBHslmlhae5r2KYuVmikyIq9IeEyfYsKoNPchVN9Ll6ekez5hgTxrvoOvKY->.. /.. / dm-0
Lrwxrwxrwx 1 root root 10 Dec 6 09:20 dm-uuid-LVM-LBV3iw8kSBcWNNx9dnGgbxTV2rACPkowsjQ4qNv217o4zNTcEeybSM2ajMUrtNSK->.. /.. / dm-2
Lrwxrwxrwx 1 root root 9 Dec 25 15:24 scsi-3600c0ff00027efc40f1fd15701000000->.. / sdi
Lrwxrwxrwx 1 root root 9 Dec 25 15:47 scsi-3600c0ff00027efc42a82ce5701000000->.. / sdh
Lrwxrwxrwx 1 root root 9 Dec 29 15:49 scsi-3600c0ff00027efc44e22d15701000000->.. /.. / sdj
Lrwxrwxrwx 1 root root 9 Dec 25 15:24 scsi-3600c0ff00027efc49625d15701000000->.. / sdk
Lrwxrwxrwx 1 root root 9 Dec 25 15:24 scsi-3600c0ff00027efc4f429d15701000000->.. / sdl
Lrwxrwxrwx 1 root root 9 Dec 25 16:05 scsi-3600c0ff00027efc4f529d15701000000->.. / sdb
Lrwxrwxrwx 1 root root 9 Dec 26 02:04 scsi-3600c0ff00027efc4f629d15701000000->.. /.. / sdc
Lrwxrwxrwx 1 root root 9 Dec 25 15:24 scsi-3600c0ff00027efc4f729d15701000000->.. / sdd
Lrwxrwxrwx 1 root root 9 Dec 25 15:24 scsi-3600c0ff00027efc4f829d15701000000->.. / sde
Lrwxrwxrwx 1 root root 9 Dec 25 15:24 scsi-3600c0ff00027efc4f929d15701000000->.. / sdf
Lrwxrwxrwx 1 root root 9 Dec 6 09:20 scsi-3600c0ff00027efc4fa29d15701000000->.. /.. / sdg
Lrwxrwxrwx 1 root root 10 Dec 6 09:20 scsi-3600c0ff00027efc4fa29d15701000000-part1->.. /.. / sdg1
Lrwxrwxrwx 1 root root 9 Dec 25 15:24 wwn-0x600c0ff00027efc40f1fd15701000000->.. / sdi
Lrwxrwxrwx 1 root root 9 Dec 25 15:47 wwn-0x600c0ff00027efc42a82ce5701000000->.. / sdh
Lrwxrwxrwx 1 root root 9 Dec 29 15:49 wwn-0x600c0ff00027efc44e22d15701000000->.. /.. / sdj
Lrwxrwxrwx 1 root root 9 Dec 25 15:24 wwn-0x600c0ff00027efc49625d15701000000->.. / sdk
Lrwxrwxrwx 1 root root 9 Dec 25 15:24 wwn-0x600c0ff00027efc4f429d15701000000->.. / sdl
Lrwxrwxrwx 1 root root 9 Dec 25 16:05 wwn-0x600c0ff00027efc4f529d15701000000->.. / sdb
Lrwxrwxrwx 1 root root 9 Dec 26 02:04 wwn-0x600c0ff00027efc4f629d15701000000->.. /.. / sdc
Lrwxrwxrwx 1 root root 9 Dec 25 15:24 wwn-0x600c0ff00027efc4f729d15701000000->.. / sdd
Lrwxrwxrwx 1 root root 9 Dec 25 15:24 wwn-0x600c0ff00027efc4f829d15701000000->.. / sde
Lrwxrwxrwx 1 root root 9 Dec 25 15:24 wwn-0x600c0ff00027efc4f929d15701000000->.. / sdf
Lrwxrwxrwx 1 root root 9 Dec 6 09:20 wwn-0x600c0ff00027efc4fa29d15701000000->.. /.. / sdg
Lrwxrwxrwx 1 root root 10 Dec 6 09:20 wwn-0x600c0ff00027efc4fa29d15701000000-part1->.. /.. / sdg1
Check the udev of the asm disk by comparing the scsi sequence number.
The above is all the contents of the article "how to View the udev correspondence of asm disks in Oracle RAC". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!
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.