In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-06 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)06/01 Report--
1. Demand
Oracle Linux 6.7 uses udev as asm
/dev/sdb /dev/asm-diskb/dev/sdc /dev/asm-diskc/dev/sdd /dev/asm-diskd/dev/sde /dev/asm-diske/dev/sdf /dev/asm-diskf
2, fault phenomenon
Oracle Linux 6.7 under vmware vshpere5.1, using scsi_id-related commands, no uuid can be seen
3. Treatment method
a. Add records to/etc/scsi_id.config
[root@dfyl rules.d]# echo "options=--whitelisted --replace-whitespace" >> /etc/scsi_id.config
b. Connect via vcenter, then Home-Inventory-Datastore and Datastore Cluster, locate the corresponding storage media, then right-click Datastore Browser
With the VM shutdown, add disk.EnableUUID="TRUE" to the VM file, restart the host, rerun the udev.sh script, and then run the start_udev command
udev.sh (configure udev device mapping and generate udev rule file)
#!/ bin/bashfor i in b c d e f;do echo "KERNEL==\"sd*\", BUS==\"scsi\", PROGRAM==\"/sbin/scsi_id --whitelisted --replace-whitespace --device=/dev/\$name\", RESULT==\"`/sbin/scsi_id --whitelisted --replace-whitespace --device=/dev/sd$i`\", NAME=\"asm-disk$i\", OWNER=\"grid\", GROUP=\"asmadmin\", MODE=\"0660\"">>/etc/udev/rules.d/80-asm.rulesdone
5. Start udev equipment
[root@dfyl rules.d]# start_udevStarting udev: [ OK ]
6. View the corresponding relationship
[root@dfyl rules.d]# ll /dev/asm-disk*brw-rw----. 1 grid asmadmin 8, 16 Apr 12 14:51 /dev/asm-diskbbrw-rw----. 1 grid asmadmin 8, 32 Apr 12 14:51 /dev/asm-diskcbrw-rw----. 1 grid asmadmin 8, 48 Apr 12 14:51 /dev/asm-diskdbrw-rw----. 1 grid asmadmin 8, 64 Apr 12 14:51 /dev/asm-diskebrw-rw----. 1 grid asmadmin 8, 80 Apr 12 14:51 /dev/asm-diskf
7. References
a、http://www.askmaclean.com/archives/%E5%9C%A8linux-6%E4%B8%8A%E4%BD%BF%E7%94%A8udev%E8%A7%A3%E5%86%B3rac-asm%E5%AD%98%E5%82%A8%E8%AE%BE%E5%A4%87%E5%90%8D%E9%97%AE%E9%A2%98.htmlb、http://blog.csdn.net/staricqxyz/article/details/8332566
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.