我想用 /dev/emcpowera 绑定UDEV
我的存储是EMC的,装上多路径软件之后# fdisk -l
WARNING: GPT (GUID Partition Table) detected on '/dev/sda'! 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/O 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 '/dev/sdc'! 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/O 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 '/dev/sdb'! 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/O 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 '/dev/sdd'! 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/O 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 '/dev/sde'! 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/O 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 '/dev/emcpowera'! 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/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
Device Boot Start End Blocks Id System
/dev/emcpowera1 1 261084 2097151999+ ee GPT
如果用下面的这种方式编辑规则文件,udev设置是可以出来的
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"
# /sbin/start_udev
正在启动 udev:[确定]
# ls -l /dev/asm-disk*
brw-rw---- 1 grid asmadmin 8, 17 1月 28 20:00 /dev/asm-disk1
目前我想用 /dev/emcpowera 这个设备绑定
但是没有成功,是不是我的99-oracle-asmdevices.rules
这个文件的写法不对。
多路径软件装上之后一般/dev/emcpowera不会变,
虽然用/dev/sdb也可以绑定,也没有影响,但是我想
用/dev/emcpowera设备在多台服务器上绑定
# 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"
# /sbin/start_udev
正在启动 udev:[确定]
# /sbin/start_udev
# ls -l /dev/as*
ls: 无法访问/dev/as*: 没有那个文件或目录
我自己顶一下吧。
原来在linux6 里面如果要用这种方法做ASM的话。
需要在/etc/udev/rules.d 目录上新增了50-udev.rules 文件,
redhat 5 下面就有这个文件,到redhat 6下就没了
并把下列信息加入50-udev.rules,现在在oracle上已经可以正常安装asm了
# 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"
# start_udev
正在启动 udev:[确定]
# ls -l /dev/emc*
crw-rw---- 1 root root 10, 58 1月 29 19:33 /dev/emcpower
brw-rw---- 1 root disk 120, 0 1月 29 19:33 /dev/emcpowera
brw-rw---- 1 grid asmadmin 120, 1 1月 29 19:33 /dev/emcpowera1
brw-rw---- 1 grid asmadmin 120, 2 1月 29 19:33 /dev/emcpowera2
brw-rw---- 1 grid asmadmin 120, 3 1月 29 19:33 /dev/emcpowera3
brw-rw---- 1 grid asmadmin 120, 4 1月 29 19:33 /dev/emcpowera4
重启udev的时候权限已经正常了
ASM可以正常配置使用了
该问题已经解决。 good 。。。。。 我很奇怪的是,已经有了emcpower,那直接在rc.local中修改权限就好了,不用udev了 xifenfei 发表于 2013-6-11 09:47 static/image/common/back.gif
我很奇怪的是,已经有了emcpower,那直接在rc.local中修改权限就好了,不用udev了 ...
下次再装的时候试试。
我觉得不用绑定也行。
EMC已经是/dev/emcpower伪设备了,而且设备号也不变,应该不用绑定了。 如果只在rc.local中修改权限,重启udev时owner会变回root,不可靠。 我也碰到了这个问题 在rc。local中修改权限后 在安装过程中碰到 无效ASM磁盘提示 根据贴主的 提示后正常 very good hzcyhujw 发表于 2013-12-8 15:50 static/image/common/back.gif
我也碰到了这个问题 在rc。local中修改权限后 在安装过程中碰到 无效ASM磁盘提示 根据贴主的 提示后正常 v ...
修改权限后,asm提示错误后,查看属性。会变root.root
权限没有变 还是gird:asmadmin 但是在选择asm磁盘的时候报错提示无效的ASM磁盘 学习了,好贴! 这样出来是块设备,咱们用于asm的不是要求是字符设备或者叫做裸设备么? UDEV 后 直接安装CRS 吗?
页:
[1]