RHEL6 use udev to modify the asm disk name

Source: Internet
Author: User

RHEL6 uses udev to modify the asm disk name. The current system uses emc power Multi-path software, and the disk name changes after the restart. to standardize the use of the asm disk, you need to use udev to fix the disk name. The specific steps are as follows: You can create a node under rac. Change the method of one node to 1, disable oracle Database 2, and modify asm_diskstring under ASM, originally, this parameter was set to/dev/emcpower * 1 alter system set asm_diskstring = '/dev/asmdisks/asm *' scope = spfile sid = '*'; 3, to modify the udev ing file, you need to add several lines of files like KERNEL = "emcpower * 1", SUBSYSTEM = "block ", PROGRAM = "/sbin/scsi_id -- whitelisted -- replace-whitespace -- device =/dev/$ name", RESULT = "360000970000295900314533030344131", NAME + = "asmdisks/asmarch0000 ", ACTION = "add | change", OWNER = "grid", GROUP = "asmadmin", MODE = "0660" KERNEL = "emcpower * 1 ", SUBSYSTEM = "block", PROGRAM = "/sbin/scsi_id -- whitelisted -- replace-whitespace -- device =/dev/$ name", RESULT = "360000970000295900314533030344130 ", NAME + = "asmdisks/asmarch0001", ACTUIB = "add | change", OWNER = "grid", GROUP = "asmadmin ", MODE = "0660" KERNEL = "emcpower * 1", SUBSYSTEM = "block ", PROGRAM = "/sbin/scsi_id -- whitelisted -- replace-whitespace -- device =/dev/$ name", RESULT = "360000970000295900314533030343834", NAME + = "asmdisks/asmdata0000 ", ACTUIB = "add | change", OWNER = "grid", GROUP = "asmadmin", MODE = "0660 "............. 4, run start_udev to make the disk take effect. [oracle @ brief asmdisks] $ please wait until there are too many temporary disks attached asmtemp0002 then asmdata0003 asmdata0014 asmdata0018 then there are too many temporary connections attached to the disk please refer to asmtemp0000 asmtemp0004 when asmdata0012 asmdata0016 when there are too many when asmtemp0001 asmtemp0005 asmundo0003 [oracle @ sdcmpdb1 asmdisks] $ pwd/dev/asmdisks5, restart asm and database.
 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.