11.2.0.3 RAC 全過程--6.Configure ASM

ygzhou518發表於2012-05-25
1.Install oracleasm packages
[root@swhygzhoudb01]#rpm  -qa | grep    oracleasm
oracleasm-support-2.1.7-1.el5.i386.rpm
oracleasm-2.6.18-164.el5-2.0.5-1.el5.i686.rpm
oracleasmlib-2.0.4-1.el5.i386.rpm
[root@swhygzhoudb01]#rpm  -Uvh  oracleasm*
[root@swhygzhoudb01 packages]# rpm -ivh oracleasm-support-2.1.7-1.el5.i386.rpm
warning: oracleasm-support-2.1.7-1.el5.i386.rpm: Header V3 DSA signature: NOKEY, key ID 1e5e0159
Preparing...                ########################################### [100%]
   1:oracleasm-support      ########################################### [100%]
[root@swhygzhoudb01 packages]# rpm -ivh  oracleasm-2.6.18-164.el5-2.0.5-1.el5.i686.rpm
warning: oracleasm-2.6.18-164.el5-2.0.5-1.el5.i686.rpm: Header V3 DSA signature: NOKEY, key ID 1e5e0159
Preparing...                ########################################### [100%]
   1:oracleasm-2.6.18-164.el########################################### [100%]
[root@swhygzhoudb01 packages]# rpm -ivh   oracleasmlib-2.0.4-1.el5.i386.rpm
warning: oracleasmlib-2.0.4-1.el5.i386.rpm: Header V3 DSA signature: NOKEY, key ID 1e5e0159
Preparing...                ########################################### [100%]
   1:oracleasmlib           ########################################### [100%]
2.Configure ASMLib
    If using user and group separation for the installation (as shown in this guide), the ASMLib driver interface owner is grid and the group to own the driver interface is asmdba (oracle and grid are both members of this group). These groups were created in section 2.1. If a more simplistic installation using only the Oracle user is performed, the owner will be oracle and the group owner will be dba. 
[root@rac001 ~]# /etc/init.d/oracleasm   configure
Configuring the Oracle ASM library driver.
This will configure the on-boot properties of the Oracle ASM librarydriver.  The following questions will determine whether the driver is loaded on boot and what permissions it will have. The current values will be shown in brackets ('[]').  Hitting without typing an answer will keep that current value.  Ctrl-C will abort.
Default user to own the driver interface []: grid
Default group to own the driver interface []: asmadmin
Start Oracle ASM library driver on boot (y/n) [n]: y
Scan for Oracle ASM disks on boot (y/n) [y]: y
Writing Oracle ASM library driver configuration: done
Initializing the Oracle ASMLib driver: [  OK  ]
Scanning the system for Oracle ASMLib disks: [  OK  ]
3.Using ASMLib create ASM Disks
# /usr/sbin/oracleasm   createdisk   OCR_VOTE01   /dev/sdb1
# /usr/sbin/oracleasm   createdisk   OCR_VOTE02   /dev/sdc1
# /usr/sbin/oracleasm   createdisk   OCR_VOTE03   /dev/sdd1 
# /usr/sbin/oracleasm   createdisk   ASM_DATA01   /dev/sde1  
# /usr/sbin/oracleasm   createdisk   ASM_DATA02   /dev/sdf1
# /usr/sbin/oracleasm   createdisk   ASM_DATA03   /dev/sdg1   
# /usr/sbin/oracleasm   createdisk   ASM_FRA01    /dev/sdh1
/usr/sbin/oracleasm  scandisks
/usr/sbin/oracleasm  listisks
 
4.Share ASM Disks
config.version = "8"
virtualHW.version = "4"
numvcpus = "2"
scsi0.present = "TRUE"
scsi0.virtualDev = "lsilogic"
memsize = "3000"
scsi0:0.present = "TRUE"
scsi0:0.fileName = "RAC01.vmdk"
ide1:0.present = "TRUE"
ide1:0.fileName = "auto detect"
ide1:0.deviceType = "cdrom-raw"
floppy0.present = "FALSE"
Ethernet0.present = "TRUE"
displayName = "ygzhou01"
guestOS = "redhat"
priority.grabbed = "normal"
priority.ungrabbed = "normal"
scsi0:0.redo = ""
ethernet0.addressType = "generated"
uuid.location = "56 4d b2 e8 2d 75 7c 9c-f0 f1 fc 0e 32 d9 5a 37"
uuid.bios = "56 4d b2 e8 2d 75 7c 9c-f0 f1 fc 0e 32 d9 5a 37"
ethernet0.generatedAddress = "00:0c:29:d9:5a:37"
ethernet0.generatedAddressOffset = "0"
scsi1.present = "TRUE"
scsi1:1.present = "TRUE"
scsi1:1.fileName = "E:\WHDBA\RACDB\RACDBASM\ASM01.vmdk"
scsi1:1.mode = "independent-persistent"
scsi1:2.present = "TRUE"
scsi1:2.fileName = "E:\WHDBA\RACDB\RACDBASM\ASM02.vmdk"
scsi1:2.mode = "independent-persistent"
scsi1:3.present = "TRUE"
scsi1:3.fileName = "E:\WHDBA\RACDB\RACDBASM\ASM03.vmdk"
scsi1:3.mode = "independent-persistent"
scsi1:4.present = "TRUE"
scsi1:4.fileName = "E:\WHDBA\RACDB\RACDBASM\ASM04.vmdk"
scsi1:4.mode = "independent-persistent"
scsi1:5.present = "TRUE"
scsi1:5.fileName = "E:\WHDBA\RACDB\RACDBASM\ASM05.vmdk"
scsi1:5.mode = "independent-persistent"
scsi1:6.present = "TRUE"
scsi1:6.fileName = "E:\WHDBA\RACDB\RACDBASM\ASM06.vmdk"
scsi1:6.mode = "independent-persistent"
scsi1:7.present = "TRUE"
scsi1:7.fileName = "E:\WHDBA\RACDB\RACDBASM\ASM07.vmdk"
scsi1:7.mode = "independent-persistent"
scsi1.virtualDev = "lsilogic"
Ethernet1.present = "TRUE"
scsi1:1.redo = ""
scsi1:2.redo = ""
scsi1:3.redo = ""
scsi1:4.redo = ""
scsi1:5.redo = ""
scsi1:6.redo = ""
scsi1:7.redo = ""
ethernet1.addressType = "generated"
ethernet1.generatedAddress = "00:0c:29:d9:5a:41"
ethernet1.generatedAddressOffset = "10"
####################################################
#####            Need To add                  ######
####################################################
disk.locking = "false"
diskLib.dataCacheMaxSize = "0"
diskLib.dataCacheMaxReadAheadSize = "0"
diskLib.DataCacheMinReadAheadSize = "0"
diskLib.dataCachePageSize = "4096"
diskLib.maxUnsyncedWrites = "0"
scsi1:1.deviceType = "disk"
scsi1:2.deviceType = "disk"
scsi1:3.deviceType = "disk"
scsi1:4.deviceType = "disk"
scsi1:5.deviceType = "disk"
scsi1:6.deviceType = "disk"
scsi1:7.deviceType = "disk"

workingDir = "."
ide1:0.startConnected = "FALSE"
ide1:0.autodetect = "TRUE"

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/24867586/viewspace-730991/,如需轉載,請註明出處,否則將追究法律責任。

相關文章