UDEV mounts EMC multipath disk
My storage is EMC, after installing multipath software
[root@chnap-itd64 rules.d] # fdisk-l
WARNING: GPT (GUID Partition Table) detected on'/ devmax sdaws! The util fdisk doesn't support GPT. Use GNU Parted.
Disk / dev/sda: 3597.3 GB, 3597303545856 bytes
255 heads, 63 sectors/track, 437347 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
Device Boot Start End Blocks Id System
/ dev/sda1 1 267350 2147483647 + ee GPT
WARNING: GPT (GUID Partition Table) detected on'/ devram Sdcads! The util fdisk doesn't support GPT. Use GNU Parted.
Disk / dev/sdc: 2147.5 GB, 2147483648000 bytes
255 heads, 63 sectors/track, 261083 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
Device Boot Start End Blocks Id System
/ dev/sdc1 1 261084 2097151999 + ee GPT
WARNING: GPT (GUID Partition Table) detected on'/ devamp sdbstores! The util fdisk doesn't support GPT. Use GNU Parted.
Disk / dev/sdb: 2147.5 GB, 2147483648000 bytes
255 heads, 63 sectors/track, 261083 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
Device Boot Start End Blocks Id System
/ dev/sdb1 1 261084 2097151999 + ee GPT
WARNING: GPT (GUID Partition Table) detected on'/ devdeband sddlers! The util fdisk doesn't support GPT. Use GNU Parted.
Disk / dev/sdd: 2147.5 GB, 2147483648000 bytes
255 heads, 63 sectors/track, 261083 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
Device Boot Start End Blocks Id System
/ dev/sdd1 1 261084 2097151999 + ee GPT
WARNING: GPT (GUID Partition Table) detected on'/ devamp sdeeds! The util fdisk doesn't support GPT. Use GNU Parted.
Disk / dev/sde: 2147.5 GB, 2147483648000 bytes
255 heads, 63 sectors/track, 261083 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
Device Boot Start End Blocks Id System
/ dev/sde1 1 261084 2097151999 + ee GPT
WARNING: GPT (GUID Partition Table) detected on'/ devpool emcpowerasides! The util fdisk doesn't support GPT. Use GNU Parted.
Disk / dev/emcpowera: 2147.5 GB, 2147483648000 bytes
255 heads, 63 sectors/track, 261083 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
Device Boot Start End Blocks Id System
/ dev/emcpowera1 1 261084 2097151999 + ee GPT
If you edit the rule file in the following way, the udev settings can come out.
More 99-oracle-asmdevices.rules
KERNEL== "sdb1", BUS== "scsi", PROGRAM== "/ sbin/scsi_id-g-u-d / dev/$parent", RESULT== "36006016076f32e00745442a6f862e211", NAME= "asm-disk1", OWNER= "grid", GRO
UP= "asmadmin", MODE= "0660"
[root@chnap-itd64 rules.d] # / sbin/start_udev
Starting udev: [OK]
[root@chnap-itd64 rules.d] # ls-l / dev/asm-disk*
Brw-rw---- 1 grid asmadmin 8, 17 January 28 20:00 / dev/asm-disk1
Currently I want to bind with / dev/emcpowera this device.
But it didn't work. Is it my 99-oracle-asmdevices.rules?
This document is not written in the right way.
General / dev/emcpowera will not change after multipath software is installed.
Although you can bind it with / dev/sdb, it doesn't matter, but I think
Bind on multiple servers with / dev/emcpowera device
[root@chnap-itd64 rules.d] # vi 99-oracle-asmdevices.rules
KERNEL== "emcpowera1", BUS== "scsi", PROGRAM== "/ sbin/scsi_id-g-u-d / dev/$parent", RESULT== "36006016076f32e00745442a6f862e211", NAME= "asm-disk1", OWNER= "grid", GROUP= "asmadmin", MODE= "0660"
[root@chnap-itd64 rules.d] # / sbin/start_udev
Starting udev: [OK]
[root@chnap-itd64 rules.d] # / sbin/start_udev
[root@chnap-itd64 rules.d] # ls-l / dev/as*
Ls: unable to access / dev/as*: does not have that file or directory
It turns out that if you want to use this method to do ASM in linux6.
Need to add the 50-udev.rules file to the / etc/udev/rules.d directory
There is this file under redhat 5, but it will be gone under redhat 6.
Add the following information to 50-udev.rules, and now you can install asm normally on oracle.
[root@chnap-itd65 rules.d] # cat 50-udev.rules
SUBSYSTEM== "block", KERNEL== "emcpowera1", GROUP= "asmadmin", OWNER= "grid", MODE= "0660"
SUBSYSTEM== "block", KERNEL== "emcpowera2", GROUP= "asmadmin", OWNER= "grid", MODE= "0660"
SUBSYSTEM== "block", KERNEL== "emcpowera3", GROUP= "asmadmin", OWNER= "grid", MODE= "0660"
SUBSYSTEM== "block", KERNEL== "emcpowera4", GROUP= "asmadmin", OWNER= "grid", MODE= "0660"
[root@chnap-itd65 rules.d] # start_udev
Starting udev: [OK]
[root@chnap-itd65 rules.d] # ls-l / dev/emc*
Crw-rw---- 1 root root 10, 58 January 29 19:33 / dev/emcpower
Brw-rw---- 1 root disk 120, January 29 19:33 / dev/emcpowera
Brw-rw---- 1 grid asmadmin 120, January 29 19:33 / dev/emcpowera1
Brw-rw---- 1 grid asmadmin 120, January 29 19:33 / dev/emcpowera2
Brw-rw---- 1 grid asmadmin 120,3 January 29 19:33 / dev/emcpowera3
Brw-rw---- 1 grid asmadmin 120,4 January 29 19:33 / dev/emcpowera4
Permissions were normal when udev was restarted.
ASM can be configured and used normally.
The problem has been solved.
Conclusion: you already have emcpower, so you can modify permissions directly in rc.local instead of udev.