RHEL6 uses udev to modify the asm disk name. If the current system uses the emcpower multi-path software, the disk name changes after the restart. to standardize the use of the asm disk, you need to use the udev Fixed Disk name. The specific steps are as follows. rac can have a node. Change the method of one node to 1, disable Oracle Database 2, and modify asm_diskstring under ASM. The original parameter is set to/dev/emcpower * 1altersystemsetasm_dis.
RHEL6 use udev to modify the asm disk name
The existing system uses the 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 the udev Fixed Disk name. The specific steps are as follows. A node can be modified as a node under rac.
1. Close the Oracle database
2. Modify asm_diskstring in ASM. The original value of this parameter is/dev/emcpower * 1.
Alter system set asm_diskstring = '/dev/asmdisks/asm *' scope = spfile sid = '*';
3. Modify the udev ing file. several lines of similar files need to be added for several disks.
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 @ sdcmpdb1 asmdisks] $ ls
Asmarch0000 asmdata0002 asmdata0013 asmdata0017 asmredo0002 asmredo0006 asmredo0010 asmredo0014 asmredo0018 asmredo0022 asmtemp0002 asmundo0000
Asmarch0001 asmdata0003 asmdata0014 asmdata0018 asmredo0003 asmredo0007 asmredo0011 asmredo0015 asmredo0019 asmredo0023 asmtemp0003 asmundo0001
Asmdata0000 asmdata0011 asmdata0015 asmredo0000 asmredo0004 asmredo0008 asmredo0012 asmredo0016 asmredo0020 asmtemp0000 asmtemp0004 asmundo0002
Asmdata0001 asmdata0012 asmdata0016 asmredo0001 asmredo0005 asmredo0009 asmredo0013 asmredo0017 asmredo0021 asmtemp0001 asmtemp0005 asmundo0003
[Oracle @ sdcmpdb1 asmdisks] $ pwd
/Dev/asmdisks
5. Restart the asm and database.
For more information about RedHat, see RedHat topic page http://www.linuxidc.com/topicnews.aspx? Tid = 10