- 最后登录
- 2014-7-8
- 在线时间
- 29 小时
- 威望
- 17
- 金钱
- 298
- 注册时间
- 2012-4-23
- 阅读权限
- 10
- 帖子
- 48
- 精华
- 0
- 积分
- 17
- UID
- 380
|
1#
发表于 2013-1-28 20:16:31
|
查看: 16187 |
回复: 12
我的存储是EMC的,装上多路径软件之后
[root@chnap-itd64 rules.d]# 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"
[root@chnap-itd64 rules.d]# /sbin/start_udev
正在启动 udev:[确定]
[root@chnap-itd64 rules.d]# 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设备在多台服务器上绑定
[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
正在启动 udev:[确定]
[root@chnap-itd64 rules.d]# /sbin/start_udev
[root@chnap-itd64 rules.d]# ls -l /dev/as*
ls: 无法访问/dev/as*: 没有那个文件或目录
|
|