RHEL6 changes the name of the asm disk by udev.

  

In the RHEL6 system, some operations will cause the asm disk name to change. In this case, the asm disk name needs to be modified, and there are many ways to change the asm disk name. Today Xiaobian wants to introduce to you is the way RHEL6 uses udev to modify the name of the asm disk.

In order to regulate the use asm disk, fixed disk requires the use of udev name. The specific steps are as follows: rac can be modified by one node and one node.

1. Close the Oracle database.

2. Modify the asm_diskstring under ASM. The original parameter is set to /dev/emcpower*. 1

alter system set asm_diskstring=‘/dev/asmdisks/asm*’ scope=spfile sid=‘*’;

3, modify the udev mapping file, there are several The disk needs to add a few lines of similar files

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 effective

[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 asm and database can be

above is RHEL6 use udev to modify asm magnetic Method name describes the benefits of using udev is the ability to modify fixed disk asm name will not change because of some operations.

Copyright © Windows knowledge All Rights Reserved