我们在使用asm的时候,选择的外部冗余,也就是使用raid10,不使用asm的二路,三路镜像。
大概记录一下安装步骤
1.磁盘做raid5,在做raid5的时候可以将整个raid虎头划分为几个逻辑盘
[root@statg2 ~]# MegaCli -CfgDsply -a0
==============================================================================
Adapter: 0
Product Name: PERC H700 Integrated
Memory: 512MB
BBU: Present
Serial No: 25L01IN
==============================================================================
Number of DISK GROUPS: 1
DISK GROUP: 0
Number of Spans: 1
SPAN: 0
Span Reference: 0x00
Number of PDs: 11
Number of VDs: 7
Number of dedicated Hotspares: 0
Virtual Drive Information:
Virtual Drive: 0 (Target Id: 0)
Name :os
RAID Level : Primary-5, Secondary-0, RAID Level Qualifier-3
Size : 200.0 GB
Sector Size : 512
Parity Size : 20.0 GB
State : Optimal
Strip Size : 1.0 MB
Number Of Drives : 11
Span Depth : 1
Default Cache Policy: WriteBack, ReadAdaptive, Direct, Write Cache OK if Bad BBU
Current Cache Policy: WriteBack, ReadAdaptive, Direct, Write Cache OK if Bad BBU
Default Access Policy: Read/Write
Current Access Policy: Read/Write
Disk Cache Policy : Disk's Default
Encryption Type : None
Bad Blocks Exist: No
Is VD Cached: Yes
Cache Cade Type : Read Only
2.fdisk 将以下逻辑盘格式化后相当于asm单块磁盘
[root@statdb183 ~]# sfdisk -l
Disk /dev/sdc: 104433 cylinders, 255 heads, 63 sectors/track
Disk /dev/sdd: 104433 cylinders, 255 heads, 63 sectors/track
Disk /dev/sde: 104433 cylinders, 255 heads, 63 sectors/track
Disk /dev/sdh: 104433 cylinders, 255 heads, 63 sectors/track
Disk /dev/sdg: 104433 cylinders, 255 heads, 63 sectors/track
Disk /dev/sdf: 104433 cylinders, 255 heads, 63 sectors/track
Disk /dev/sdi: 82698 cylinders, 255 heads, 63 sectors/track
Disk /dev/sdb: 104433 cylinders, 255 heads, 63 sectors/track
Disk /dev/sdj: 26108 cylinders, 255 heads, 63 sectors/track
Disk /dev/sdk: 34854 cylinders, 255 heads, 63 sectors/track
3./etc/udev/rules.d设置权限文件
[root@statdb183 rules.d]# cat 99-oracle-asmdevices.rules
KERNEL=="sd*", BUS=="scsi", PROGRAM=="/sbin/scsi_id --whitelisted --replace-whitespace --device=/dev/$name", RESULT=="36b8ca3a0f2c8a9001a25e35f2c724647", NAME="asm-diskb", OWNER="grid", GROUP="asmadmin", MODE="0660"
KERNEL=="sd*", BUS=="scsi", PROGRAM=="/sbin/scsi_id --whitelisted --replace-whitespace --device=/dev/$name", RESULT=="36b8ca3a0f2c8a9001a25e3782deae88a", NAME="asm-diskc", OWNER="grid", GROUP="asmadmin", MODE="0660"
KERNEL=="sd*", BUS=="scsi", PROGRAM=="/sbin/scsi_id --whitelisted --replace-whitespace --device=/dev/$name", RESULT=="36b8ca3a0f2c8a9001a25e3982fda7ab7", NAME="asm-diskd", OWNER="grid", GROUP="asmadmin", MODE="0660"
KERNEL=="sd*", BUS=="scsi", PROGRAM=="/sbin/scsi_id --whitelisted --replace-whitespace --device=/dev/$name", RESULT=="36b8ca3a0f2c8a9001a25e3af312dd314", NAME="asm-diske", OWNER="grid", GROUP="asmadmin", MODE="0660"
KERNEL=="sd*", BUS=="scsi", PROGRAM=="/sbin/scsi_id --whitelisted --replace-whitespace --device=/dev/$name", RESULT=="36b8ca3a0f2c8a9001a25e3ca32d590a8", NAME="asm-diskf", OWNER="grid", GROUP="asmadmin", MODE="0660"
KERNEL=="sd*", BUS=="scsi", PROGRAM=="/sbin/scsi_id --whitelisted --replace-whitespace --device=/dev/$name", RESULT=="36b8ca3a0f2c8a9001a25e41d37c52b4a", NAME="asm-diskg", OWNER="grid", GROUP="asmadmin", MODE="0660"
KERNEL=="sd*", BUS=="scsi", PROGRAM=="/sbin/scsi_id --whitelisted --replace-whitespace --device=/dev/$name", RESULT=="36b8ca3a0f2c8a9001a25e435392a2a73", NAME="asm-diskh", OWNER="grid", GROUP="asmadmin", MODE="0660"
KERNEL=="sd*", BUS=="scsi", PROGRAM=="/sbin/scsi_id --whitelisted --replace-whitespace --device=/dev/$name", RESULT=="36b8ca3a0f2c8a9001a25e4713cc5345a", NAME="asm-diski", OWNER="grid", GROUP="asmadmin", MODE="0660"
KERNEL=="sd*", BUS=="scsi", PROGRAM=="/sbin/scsi_id --whitelisted --replace-whitespace --device=/dev/$name", RESULT=="36b8ca3a0f2c8a9001a25e4b840fe48af", NAME="asm-diskj", OWNER="grid", GROUP="asmadmin", MODE="0660"
KERNEL=="sd*", BUS=="scsi", PROGRAM=="/sbin/scsi_id --whitelisted --replace-whitespace --device=/dev/$name", RESULT=="36b8ca3a0f2c8a9001a25e4cc42352604", NAME="asm-diskk", OWNER="grid", GROUP="asmadmin", MODE="0660"
4.这样就可以在安装grid软件时选择建立数据组了。
大概记录一下安装步骤
1.磁盘做raid5,在做raid5的时候可以将整个raid虎头划分为几个逻辑盘
[root@statg2 ~]# MegaCli -CfgDsply -a0
==============================================================================
Adapter: 0
Product Name: PERC H700 Integrated
Memory: 512MB
BBU: Present
Serial No: 25L01IN
==============================================================================
Number of DISK GROUPS: 1
DISK GROUP: 0
Number of Spans: 1
SPAN: 0
Span Reference: 0x00
Number of PDs: 11
Number of VDs: 7
Number of dedicated Hotspares: 0
Virtual Drive Information:
Virtual Drive: 0 (Target Id: 0)
Name :os
RAID Level : Primary-5, Secondary-0, RAID Level Qualifier-3
Size : 200.0 GB
Sector Size : 512
Parity Size : 20.0 GB
State : Optimal
Strip Size : 1.0 MB
Number Of Drives : 11
Span Depth : 1
Default Cache Policy: WriteBack, ReadAdaptive, Direct, Write Cache OK if Bad BBU
Current Cache Policy: WriteBack, ReadAdaptive, Direct, Write Cache OK if Bad BBU
Default Access Policy: Read/Write
Current Access Policy: Read/Write
Disk Cache Policy : Disk's Default
Encryption Type : None
Bad Blocks Exist: No
Is VD Cached: Yes
Cache Cade Type : Read Only
2.fdisk 将以下逻辑盘格式化后相当于asm单块磁盘
[root@statdb183 ~]# sfdisk -l
Disk /dev/sdc: 104433 cylinders, 255 heads, 63 sectors/track
Disk /dev/sdd: 104433 cylinders, 255 heads, 63 sectors/track
Disk /dev/sde: 104433 cylinders, 255 heads, 63 sectors/track
Disk /dev/sdh: 104433 cylinders, 255 heads, 63 sectors/track
Disk /dev/sdg: 104433 cylinders, 255 heads, 63 sectors/track
Disk /dev/sdf: 104433 cylinders, 255 heads, 63 sectors/track
Disk /dev/sdi: 82698 cylinders, 255 heads, 63 sectors/track
Disk /dev/sdb: 104433 cylinders, 255 heads, 63 sectors/track
Disk /dev/sdj: 26108 cylinders, 255 heads, 63 sectors/track
Disk /dev/sdk: 34854 cylinders, 255 heads, 63 sectors/track
3./etc/udev/rules.d设置权限文件
[root@statdb183 rules.d]# cat 99-oracle-asmdevices.rules
KERNEL=="sd*", BUS=="scsi", PROGRAM=="/sbin/scsi_id --whitelisted --replace-whitespace --device=/dev/$name", RESULT=="36b8ca3a0f2c8a9001a25e35f2c724647", NAME="asm-diskb", OWNER="grid", GROUP="asmadmin", MODE="0660"
KERNEL=="sd*", BUS=="scsi", PROGRAM=="/sbin/scsi_id --whitelisted --replace-whitespace --device=/dev/$name", RESULT=="36b8ca3a0f2c8a9001a25e3782deae88a", NAME="asm-diskc", OWNER="grid", GROUP="asmadmin", MODE="0660"
KERNEL=="sd*", BUS=="scsi", PROGRAM=="/sbin/scsi_id --whitelisted --replace-whitespace --device=/dev/$name", RESULT=="36b8ca3a0f2c8a9001a25e3982fda7ab7", NAME="asm-diskd", OWNER="grid", GROUP="asmadmin", MODE="0660"
KERNEL=="sd*", BUS=="scsi", PROGRAM=="/sbin/scsi_id --whitelisted --replace-whitespace --device=/dev/$name", RESULT=="36b8ca3a0f2c8a9001a25e3af312dd314", NAME="asm-diske", OWNER="grid", GROUP="asmadmin", MODE="0660"
KERNEL=="sd*", BUS=="scsi", PROGRAM=="/sbin/scsi_id --whitelisted --replace-whitespace --device=/dev/$name", RESULT=="36b8ca3a0f2c8a9001a25e3ca32d590a8", NAME="asm-diskf", OWNER="grid", GROUP="asmadmin", MODE="0660"
KERNEL=="sd*", BUS=="scsi", PROGRAM=="/sbin/scsi_id --whitelisted --replace-whitespace --device=/dev/$name", RESULT=="36b8ca3a0f2c8a9001a25e41d37c52b4a", NAME="asm-diskg", OWNER="grid", GROUP="asmadmin", MODE="0660"
KERNEL=="sd*", BUS=="scsi", PROGRAM=="/sbin/scsi_id --whitelisted --replace-whitespace --device=/dev/$name", RESULT=="36b8ca3a0f2c8a9001a25e435392a2a73", NAME="asm-diskh", OWNER="grid", GROUP="asmadmin", MODE="0660"
KERNEL=="sd*", BUS=="scsi", PROGRAM=="/sbin/scsi_id --whitelisted --replace-whitespace --device=/dev/$name", RESULT=="36b8ca3a0f2c8a9001a25e4713cc5345a", NAME="asm-diski", OWNER="grid", GROUP="asmadmin", MODE="0660"
KERNEL=="sd*", BUS=="scsi", PROGRAM=="/sbin/scsi_id --whitelisted --replace-whitespace --device=/dev/$name", RESULT=="36b8ca3a0f2c8a9001a25e4b840fe48af", NAME="asm-diskj", OWNER="grid", GROUP="asmadmin", MODE="0660"
KERNEL=="sd*", BUS=="scsi", PROGRAM=="/sbin/scsi_id --whitelisted --replace-whitespace --device=/dev/$name", RESULT=="36b8ca3a0f2c8a9001a25e4cc42352604", NAME="asm-diskk", OWNER="grid", GROUP="asmadmin", MODE="0660"
4.这样就可以在安装grid软件时选择建立数据组了。
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/26390465/viewspace-1793494/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/26390465/viewspace-1793494/