- 最后登录
- 2017-5-29
- 在线时间
- 10 小时
- 威望
- 16
- 金钱
- 122
- 注册时间
- 2012-2-6
- 阅读权限
- 10
- 帖子
- 22
- 精华
- 0
- 积分
- 16
- UID
- 203
|
1#
发表于 2012-6-26 10:34:18
|
查看: 13038 |
回复: 5
centos 6.2 系统安装在存储上,已装好rdac ,为asm建了4个分区,怎么写udev rule呢
自己写的规则不起作用
[root@zhdb rules.d]# cat /etc/udev/rules.d/99-oracle-asmdevices.rules
KERNEL=="/dev/mapper/mpathap4", SUBSYSTEM=="block", PROGRAM=="/sbin/scsi_id --whitelisted --replace-whitespace --device=/dev/$name", NAME="oradisk01", SYMLINK="mapper/$name", OWNER="grid", GROUP="asmadmin", MODE="0660"
[root@zhdb rules.d]# id grid
uid=1100(grid) gid=1000(oinstall) 组=1000(oinstall),1200(asmadmin),1201(asmdba),1202(asmoper)
[root@zhdb rules.d]# parted
GNU Parted 2.1
使用 /dev/sda
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) p
Model: IBM VirtualDisk (scsi)
Disk /dev/sda: 1100GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Number Start End Size File system Name 标志
1 1049kB 211MB 210MB ext4 启动
2 211MB 524GB 524GB ext4
3 524GB 592GB 67.1GB linux-swap(v1)
4 592GB 712GB 120GB oracleasm1
5 712GB 832GB 120GB oracleasm2
6 832GB 952GB 120GB oracleasm3
7 952GB 1072GB 120GB oracleasm4
(parted) q
[root@zhdb 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: 1099.5 GB, 1099511627776 bytes
255 heads, 63 sectors/track, 133674 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 133675 1073741823+ ee GPT
WARNING: GPT (GUID Partition Table) detected on '/dev/mapper/mpatha'! The util fdisk doesn't support GPT. Use GNU Parted.
Disk /dev/mapper/mpatha: 1099.5 GB, 1099511627776 bytes
255 heads, 63 sectors/track, 133674 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/mapper/mpathap1 1 133675 1073741823+ ee GPT
Disk /dev/mapper/mpathap1: 209 MB, 209715200 bytes
255 heads, 63 sectors/track, 25 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
Disk /dev/mapper/mpathap1 doesn't contain a valid partition table
Disk /dev/mapper/mpathap2: 524.3 GB, 524288000000 bytes
255 heads, 63 sectors/track, 63741 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
Disk /dev/mapper/mpathap2 doesn't contain a valid partition table
Disk /dev/mapper/mpathap3: 67.1 GB, 67108864000 bytes
255 heads, 63 sectors/track, 8158 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
Disk /dev/mapper/mpathap3 doesn't contain a valid partition table
Disk /dev/mapper/mpathap4: 120.4 GB, 120392253440 bytes
255 heads, 63 sectors/track, 14636 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
Disk /dev/mapper/mpathap4 doesn't contain a valid partition table
Disk /dev/mapper/mpathap5: 120.0 GB, 120000086016 bytes
255 heads, 63 sectors/track, 14589 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
Disk /dev/mapper/mpathap5 doesn't contain a valid partition table
Disk /dev/mapper/mpathap6: 120.0 GB, 120000086016 bytes
255 heads, 63 sectors/track, 14589 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
Disk /dev/mapper/mpathap6 doesn't contain a valid partition table
Disk /dev/mapper/mpathap7: 120.0 GB, 120000086016 bytes
255 heads, 63 sectors/track, 14589 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
Disk /dev/mapper/mpathap7 doesn't contain a valid partition table |
|