In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-31 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces Redhat7 Udev how to bind order path equipment, the article is very detailed, has a certain reference value, interested friends must read it!
1. Get the disk UUID:
For disk in `ls / dev/sd* `
Do
Echo $disk
/ usr/lib/udev/scsi_id-whitelisted-replace-whitespace-device=$disk
Done
/ dev/sdb
36000c29cffb16d0ab6e706d8474b8185
/ dev/sdc
36000c294296b162323c3d18f218c8ebe
/ dev/sdd
36000c293d28c648b8ea3780f31d3aebe
/ dev/sde
36000c29fde25492009f3fe4882603755
/ dev/sdf
36000c29845ce8733dcd8f3929da7b5cd
/ dev/sdi
36000c2915522598d7dc3510d3b2f684c
/ dev/sdj
36000c299864887911287c47884386547
/ dev/sdk
36000c29d4618f7df9988b2b35a5519a1
/ dev/sdl
36000c293efbdb7dcd808213db15a0113
/ dev/sdm
36000c294c9da2b5885758cf6bcc3647a
/ dev/sdn
36000c2905f57bc45665172b71346051e
/ dev/sdo
36000c299475e8f0fdf40ad2606e78168
/ dev/sdp
36000c293a88560cbd6232bc838960608
two。 Generate rules file
Cat / etc/udev/rules.d/99-oracle-asmdevices.rules
KERNEL== "sd?", ENV {ID_SERIAL} = = "36000c29cffb16d0ab6e706d8474b8185", SYMLINK+= "asm_ocr_1_1", OWNER= "grid", GROUP= "asmadmin", MODE= "0660"
KERNEL== "sd?", ENV {ID_SERIAL} = = "36000c294296b162323c3d18f218c8ebe", SYMLINK+= "asm_ocr_2_1", OWNER= "grid", GROUP= "asmadmin", MODE= "0660"
KERNEL== "sd?", ENV {ID_SERIAL} = = "36000c293d28c648b8ea3780f31d3aebe", SYMLINK+= "asm_vote_1_1", OWNER= "grid", GROUP= "asmadmin", MODE= "0660"
KERNEL== "sd?", ENV {ID_SERIAL} = = "36000c29fde25492009f3fe4882603755", SYMLINK+= "asm_vote_2_1", OWNER= "grid", GROUP= "asmadmin", MODE= "0660"
KERNEL== "sd?", ENV {ID_SERIAL} = = "36000c29845ce8733dcd8f3929da7b5cd", SYMLINK+= "asm_vote_3_1", OWNER= "grid", GROUP= "asmadmin", MODE= "0660"
KERNEL== "sd?", ENV {ID_SERIAL} = = "36000c2915522598d7dc3510d3b2f684c", SYMLINK+= "asm_data_1_1", OWNER= "grid", GROUP= "asmadmin", MODE= "0660"
KERNEL== "sd?", ENV {ID_SERIAL} = = "36000c299864887911287c47884386547", SYMLINK+= "asm_data_1_2", OWNER= "grid", GROUP= "asmadmin", MODE= "0660"
KERNEL== "sd?", ENV {ID_SERIAL} = = "36000c29d4618f7df9988b2b35a5519a1", SYMLINK+= "asm_data_1_3", OWNER= "grid", GROUP= "asmadmin", MODE= "0660"
KERNEL== "sd?", ENV {ID_SERIAL} = = "36000c293efbdb7dcd808213db15a0113", SYMLINK+= "asm_data_2_1", OWNER= "grid", GROUP= "asmadmin", MODE= "0660"
KERNEL== "sd?", ENV {ID_SERIAL} = = "36000c294c9da2b5885758cf6bcc3647a", SYMLINK+= "asm_data_2_2", OWNER= "grid", GROUP= "asmadmin", MODE= "0660"
KERNEL== "sd?", ENV {ID_SERIAL} = = "36000c2905f57bc45665172b71346051e", SYMLINK+= "asm_data_2_3", OWNER= "grid", GROUP= "asmadmin", MODE= "0660"
KERNEL== "sd?", ENV {ID_SERIAL} = = "36000c299475e8f0fdf40ad2606e78168", SYMLINK+= "asm_fra_1_1", OWNER= "grid", GROUP= "asmadmin", MODE= "0660"
KERNEL== "sd?", ENV {ID_SERIAL} = = "36000c293a88560cbd6232bc838960608", SYMLINK+= "asm_fra_2_1", OWNER= "grid", GROUP= "asmadmin", MODE= "0660"
3. Load rules Fil
Udevadm control-reload-rules
Udevadm trigger
4. The device information after binding is as follows:
Ls-l / dev/sd*
Brw-rw---- 1 grid asmadmin 8, 16 Aug 29 09:28 / dev/sdb
Brw-rw---- 1 grid asmadmin 8, 32 Aug 29 09:28 / dev/sdc
Brw-rw---- 1 grid asmadmin 8, 48 Aug 29 09:28 / dev/sdd
Brw-rw---- 1 grid asmadmin 8, 64 Aug 29 09:28 / dev/sde
Brw-rw---- 1 grid asmadmin 8, 80 Aug 29 09:28 / dev/sdf
Brw-rw---- 1 grid asmadmin 8, 128 Aug 29 09:28 / dev/sdi
Brw-rw---- 1 grid asmadmin 8, 144 Aug 29 09:28 / dev/sdj
Brw-rw---- 1 grid asmadmin 8, 160 Aug 29 09:27 / dev/sdk
Brw-rw---- 1 grid asmadmin 8, 176 Aug 29 09:28 / dev/sdl
Brw-rw---- 1 grid asmadmin 8, 192 Aug 29 09:27 / dev/sdm
Brw-rw---- 1 grid asmadmin 8, 208 Aug 29 09:28 / dev/sdn
Brw-rw---- 1 grid asmadmin 8, 224 Aug 29 09:28 / dev/sdo
Brw-rw---- 1 grid asmadmin 8, 240 Aug 29 09:28 / dev/sdp
Ls-l / dev/asm*
Lrwxrwxrwx 1 root root 3 Aug 29 09:27 / dev/asm_data_1_1-> sdi
Lrwxrwxrwx 1 root root 3 Aug 29 09:27 / dev/asm_data_1_2-> sdj
Lrwxrwxrwx 1 root root 3 Aug 29 09:27 / dev/asm_data_1_3-> sdk
Lrwxrwxrwx 1 root root 3 Aug 29 09:27 / dev/asm_data_2_1-> sdl
Lrwxrwxrwx 1 root root 3 Aug 29 09:27 / dev/asm_data_2_2-> sdm
Lrwxrwxrwx 1 root root 3 Aug 29 09:27 / dev/asm_data_2_3-> sdn
Lrwxrwxrwx 1 root root 3 Aug 29 09:27 / dev/asm_fra_1_1-> sdo
Lrwxrwxrwx 1 root root 3 Aug 29 09:27 / dev/asm_fra_2_1-> sdp
Lrwxrwxrwx 1 root root 3 Aug 29 09:27 / dev/asm_ocr_1_1-> sdb
Lrwxrwxrwx 1 root root 3 Aug 29 09:27 / dev/asm_ocr_2_1-> sdc
Lrwxrwxrwx 1 root root 3 Aug 29 09:27 / dev/asm_vote_1_1-> sdd
Lrwxrwxrwx 1 root root 3 Aug 29 09:27 / dev/asm_vote_2_1-> sde
Lrwxrwxrwx 1 root root 3 Aug 29 09:27 / dev/asm_vote_3_1-> sdf
The above is all the contents of the article "how to bind order path equipment in Redhat7 Udev". Thank you for reading! Hope to share the content to help you, more related 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.