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. Description of requirements
Customers want to use udev service to solve RAC ASM storage device names under Oracle Linux5.8, and hope to achieve the following correspondence
/ dev/sdc1 / dev/asm-disk1/dev/sdd1 / dev/asm-disk2/dev/sde1 / dev/asm-disk3
2. Disk partition
-- omit--
Note: after partitioning, use parted to make the disk partition effective.
3. Check the disk device ID number (the device id number of each device is unique, which is required when writing udev rules)
[root@dfyl rules.d] # scsi_id-g-s / block/sdc36000c2908c33001d8572add242aed36f [root@dfyl rules.d] # scsi_id-g-s / block/sdd36000c291ad0f8d7d5df9a36253b7063d [root@dfyl rules.d] # scsi_id-g-s / block/sde36000c2937b2c00717cafcf2c7fa7b595 [root@dfyl rules.d] # echo "options=-g" > > / etc/scsi_id.config
4. Write udev rules
[root@dfyl ~] # cd / etc/udev/rules.d/ [root@dfyl rules.d] # vim 80-oracle-asmdevices.rules KERNEL== "sdc1", BUS== "scsi", PROGRAM== "/ sbin/scsi_id-g-u-s / block/$parent", RESULT== "36000c2908c33001d8572add242aed36f", NAME= "asm-disk1", OWNER= "oracle", GROUP= "dba", MODE= "0660" KERNEL== "sdd1", BUS== "scsi", PROGRAM== "/ sbin/scsi_id-g-u-s / block/$parent", RESULT== "36000c291ad0f8d7d5df9a36253b7063d" NAME= "asm-disk2", OWNER= "oracle", GROUP= "dba", MODE= "0660" KERNEL== "sde1", BUS== "scsi", PROGRAM== "/ sbin/scsi_id-g-u-s / block/$parent", RESULT== "36000c2937b2c00717cafcf2c7fa7b595", NAME= "asm-disk3", OWNER= "oracle", GROUP= "dba", MODE= "0660"
5. Start udev
[root@dfyl rules.d] # start_udevStarting udev: [OK]
6. Check the mapping relationship
[root@dfyl rules.d] # ll / dev/asm-*brw-rw---- 1 oracle dba 8, 33 Apr 5 12:04 / dev/asm-disk1brw-rw---- 1 oracle dba 8, 49 Apr 5 12:04 / dev/asm-disk2brw-rw---- 1 oracle dba 8, 65 Apr 5 12:08 / dev/asm-disk3
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.