Press Ctrl + D on your main screen and click Add button as shown below:
Click Next and Finish
We need to make sure these disks are accessed from all the nodes in the cluster(which we will add). To achieve this: After all the disks are added, edit the virtual m/c config(.VMX) file (In my case D:\RACSETUP11g\Node1\ VijuRac1.vmdk) and add the settings in BOLD by editing with Notepad.
config.version = "8"
virtualHW.version = "6"
scsi0.present = "TRUE"
scsi0.virtualDev = "lsilogic"
memsize = "1004"
scsi0:0.present = "TRUE"
scsi0:0.fileName = "Red Hat Enterprise Linux 5.vmdk"
ide1:0.present = "TRUE"
ide1:0.fileName = "H:\RHEL5\dvd.iso"
ide1:0.deviceType = "cdrom-image"
floppy0.autodetect = "TRUE"
ethernet0.present = "TRUE"
ethernet0.wakeOnPcktRcv = "FALSE"
usb.present = "TRUE"
ehci.present = "TRUE"
sound.present = "TRUE"
sound.fileName = "-1"
sound.autodetect = "TRUE"
svga.autodetect = "TRUE"
pciBridge0.present = "TRUE"
mks.keyboardFilter = "allow"
displayName = "Red Hat Enterprise Linux 5"
guestOS = "rhel5"
nvram = "Red Hat Enterprise Linux 5.nvram"
deploymentPlatform = "windows"
virtualHW.productCompatibility = "hosted"
tools.upgrade.policy = "useGlobal"
ide1:0.autodetect = "FALSE"
floppy0.fileName = "A:"
isolation.tools.hgfs.disable = "TRUE"
ethernet0.addressType = "generated"
uuid.location = "56 4d 99 94 d7 86 4d ef-38 c5 9f db 38 20 52 4d"
uuid.bios = "56 4d 99 94 d7 86 4d ef-38 c5 9f db 38 20 52 4d"
scsi0:0.redo = ""
pciBridge0.pciSlotNumber = "17"
scsi0.pciSlotNumber = "16"
ethernet0.pciSlotNumber = "32"
sound.pciSlotNumber = "33"
ehci.pciSlotNumber = "34"
ethernet0.generatedAddress = "00:0c:29:20:52:4d"
ethernet0.generatedAddressOffset = "0"
floppy0.startConnected = "FALSE"
ide1:0.startConnected = "TRUE"
tools.syncTime = "FALSE"
disk.locking = "FALSE"
diskLib.dataCacheMaxSize = "0"
diskLib.dataCacheMaxReadAheadSize = "0"
diskLib.dataCacheMinReadAheadSize = "0"
diskLib.dataCachePageSize = "0"
scsi0.sharedBus = "virtual"
extendedConfigFile = "VijuRac1.vmxf"
scsi0:1.present = "TRUE"
scsi0:1.fileName = "shared01.vmdk"
ethernet1.present = "TRUE"
ethernet1.connectionType = "hostonly"
ethernet1.wakeOnPcktRcv = "FALSE"
scsi0:1.mode = "independent-persistent"
scsi0:1.deviceType = "disk"
scsi0:2.present = "TRUE"
scsi0:2.fileName = "shared02.vmdk"
scsi0:2.mode = "independent-persistent"
scsi0:2.deviceType = "disk"
scsi0:3.present = "TRUE"
scsi0:3.fileName = "shared03.vmdk"
scsi0:3.mode = "independent-persistent"
scsi0:3.deviceType = "disk"
scsi0:4.present = "TRUE"
scsi0:4.fileName = "ocr.vmdk"
scsi0:4.mode = "independent-persistent"
scsi0:4.deviceType = "disk"
scsi0:5.present = "TRUE"
scsi0:5.fileName = "vdisk.vmdk"
scsi0:5.mode = "independent-persistent"
scsi0:5.deviceType = "disk"
Login to the OS as root user
Create Disk partitions for the shared disks:
Perform the below activity on all the partitions.
[root@rac1 ~]# fdisk /dev/sde
Command (m for help): n
Command action
e extended
p primary partition (1-4)
p
Partition number (1-4): 1
First cylinder (1-307, default 1):
Using default value 1
Last cylinder or +size or +sizeM or +sizeK (1-307, default 307):
Using default value 307
Command (m for help): w
The partition table has been altered!
Calling ioctl() to re-read partition table.
WARNING: Re-reading the partition table failed with error 16: Device or resource busy.
The kernel still uses the old table.
The new table will be used at the next reboot.
Syncing disks.
Change the network parameters:
Add the following in /etc/sysctl.conf
kernel.shmmni = 4096
# semaphores: semmsl, semmns, semopm, semmni
kernel.sem = 250 32000 100 128
net.ipv4.ip_local_port_range = 1024 65000
net.core.rmem_default=4194304
net.core.rmem_max=4194304
net.core.wmem_default=262144
net.core.wmem_max=262144
Run the following for the kernel parameters to take effect.
/sbin/sysctl -p
Change the Hosts file to add the ip address:
127.0.0.1 localhost.localdomain localhost
# Public
192.168.1.150 rac1.asteroid.com rac1
192.168.1.200 rac2.asteroid.com rac2
#Private
192.168.2.150 rac1-priv.asteroid.com rac1-priv
192.168.2.200 rac2-priv.asteroid.com rac2-priv
#Virtual
192.168.1.100 rac1-vip.asteroid.com rac1-vip
192.168.1.100 rac2-vip.asteroid.com rac2-vip
Create Groups and Users:
# groupadd -g 501 oinstall
# groupadd -g 502 dba
# useradd -g oinstall -G dba oracle
# passwd oracle
Create oracle directories:
[root@rac1 ~]# mkdir -p /u01/app/oracle/product/11.2.0/crs
[root@rac1 ~]# mkdir /u01/app/oracle/product/11.2.0/db_1
[root@rac1 ~]# mkdir /u01/Stage11g
[root@rac1 ~]# chown -R oracle:oinstall /u01/app
[root@rac1 ~]# chown oracle:oinstall /u01/Stage11g
[root@rac1 ~]#
Set the shell limits for oracle user
oracle soft nproc 2047
oracle hard nproc 16384
oracle soft nofile 1024
oracle hard nofile 65536
Add the following as the second last lines in the /etc/pam.d/login file if it does not exist:
session required pam_limits.so
Append the following to the /etc/profile file:
if [ $USER = “oracle” ]; then
if [ $SHELL = “/bin/ksh” ]; then
ulimit -p 16384
ulimit -n 65536
else
ulimit -u 16384 -n 65536
fi
umask 022
fi
Download ASM libraries:
http://www.oracle.com/technetwork/topics/linux/asmlib/index-101839.html
Install ASM libraries:
[root@rac1 asm]# rpm -Uvh oracleasm-2.6.18-53.el5-2.0.4-1.el5.i686.rpm \
> oracleasmlib-2.0.4-1.el5.i386.rpm \
> oracleasm-support-2.1.4-1.el5.i386.rpm
warning: oracleasmlib-2.0.4-1.el5.i386.rpm: Header V3 DSA signature: NOKEY, key ID 1e5e0159
warning: oracleasm-support-2.1.4-1.el5.i386.rpm: Header V3 DSA signature: NOKEY, key ID b38a8516
Preparing... ########################################### [100%]
1:oracleasm-support ########################################### [ 33%]
2:oracleasm-2.6.18-53.el5########################################### [ 67%]
3:oracleasmlib ########################################### [100%]
Configure ASM:
[root@rac1 asm]# /etc/init.d/oracleasm configure
Configuring the Oracle ASM library driver.
This will configure the on-boot properties of the Oracle ASM library
driver. 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
answer will keep that current value. Ctrl-C will abort.
Default user to own the driver interface []: oracle
Default group to own the driver interface []: dba
Start Oracle ASM library driver on boot (y/n) [n]: y
Scan for Oracle ASM disks on boot (y/n) [y]:
Writing Oracle ASM library driver configuration: done
Initializing the Oracle ASMLib driver: [ OK ]
Scanning the system for Oracle ASMLib disks: [ OK ]
Create ASM DISKS:
[root@rac1 asm]# /etc/init.d/oracleasm createdisk VOL1 /dev/sdc1
Marking disk "VOL1" as an ASM disk: [ OK ]
[root@rac1 asm]# /etc/init.d/oracleasm createdisk VOL2 /dev/sdd1
Marking disk "VOL2" as an ASM disk: [ OK ]
[root@rac1 asm]# /etc/init.d/oracleasm createdisk VOL3 /dev/sde1
Marking disk "VOL3" as an ASM disk: [ OK ]
[root@rac1 asm]# /etc/init.d/oracleasm createdisk VOL4 /dev/sdf1
Marking disk "VOL4" as an ASM disk: [ OK ]
[root@rac1 asm]# /etc/init.d/oracleasm listdisks
VOL1http://www.blogger.com/img/blank.gif
VOL2
VOL3
VOL4
[root@rac1 asm]#
Clone the node RAC1 to RAC2
i.e copy the folder RAC1 in the windows to RAC2...
Continuation in Part4
No comments:
Post a Comment