HowTo Add Additional Disks to VMBox and ASM diskgroups.doc

Post on 15-Sep-2015

228 views 2 download

Transcript of HowTo Add Additional Disks to VMBox and ASM diskgroups.doc

CR010_2

2. Modify VM Settings & Add additional virtual hard disks. 2 disks for ASM, 1 for temporary backups. Edit the VM created, for the following:

1. Disabling 'Enable PAE/NX' processors extended feature.

2. For Adding additional virtual Hard disks.

3. For Modifying and Adding additional Virtual Network Adapters for each VM.

Disabling 'Enable PAE/NX' processors extended feature:- Goto VM Setting- Select tab 'Processor' Under System, Uncheck 'Extended features' option.

For Adding additional virtual Hard disks:Procedure:

- Select VM, RightClick and Select 'Settings' Option

- Select edbar2p5 VM -> Settings -> Storage -> Select the Controller:SATA, Click '+' to add Hard Disk Option-> Choose create new -> Choose 'VDI' as hardisk type-> Dynamically allocated ->ExtraVDisk1 and 20.-> Click Similarly, Add 2 more disks for ASM as ASMVDisk1,ASMVDisk2 each of 10GB.

For Modifying and Adding additional Virtual Network Adapters for each VM.:- Select VM, RightClick and Select 'Settings' Option

- Click on Network. Select Host-only Adapter- Click 'OK'.Final Network Adapters..ScreenShot.:

2.Installing ASM Libraries & Creating Disk groups.As root, install the ASM libraries ( copy from the existing oel5.4 media, or else can be downloaded..)

Note: All ASMLib installations require the oracleasmlib and oracleasm-support packages appropriate for their machine. The driver packages are named after the kernel they support. Run the "uname -r" command on your machine to determine your kernel version. The corresponding package has the name oracleasm-. Also, see the release notes

1.

[root@edbar2p5 ~]# uname -r

2.6.18-371.1.2.0.1.el52.

Since Kernel Upgraded, Do not Copy the ASM libraries available in the Installation DVD, Rather Goto below URL and download the appropriate require ASM Library.

http://www.oracle.com/technetwork/server-storage/linux/downloads/rhel5-084877.html

Downloaded: oracleasm-support-2.1.8-1.el5.i386.rpm

oracleasmlib-2.0.4-1.el5.i386.rpm

oracleasm-2.6.18-371.1.2.el5-2.0.5-1.el5.i686.rpm

3.Installing ASM libraries....

Goto Shared folder D:\temp\VMBox_OCP_LAB\ASM_Libraries(2.6.18-371.1.2.0.1.el5)rpm -ivh oracleasm-support-2.1.8-1.el5.i386.rpm

rpm -ivh --nodeps oracleasmlib-2.0.4-1.el5.i386.rpm

rpm -ivh oracleasm-2.6.18-371.1.2.el5-2.0.5-1.el5.i686.rpm

#/usr/sbin/oracleasm configure -i

Give user as oracle, group asmdba, Y and Y.

#/usr/sbin/oracleasm init

Done...successfully..

[root@edbar2p5 ASM_Libraries(2.6.18-371.1.2.0.1.el5)]# /usr/sbin/oracleasm init

Loading module "oracleasm": failed

Unable to load module "oracleasm"

STUCK HERE..........................

yum install oracleasm-support oracleasmlib oracleasm-`uname -r`

#/usr/sbin/oracleasm configure -i

Give user as oracle, group asmdba, Y and Y.

#/usr/sbin/oracleasm init

Done...successfully..

-* Ensure the virtual disk added for ASM are visible when FDISK command.

/dev/sdc:/dev/sdd

5. Creating ASM Disks

/usr/sbin/asmtool -C -l /dev/oracleasm -n asmdisk1 -s /dev/sdc -a force=yes

/usr/sbin/asmtool -C -l /dev/oracleasm -n asmdisk2 -s /dev/sdd -a force=yes

#oracleasm listdisks

ASMDISK1

ASMDISK2#chown oracle:oinstall /dev/sdc

#chownn oracle:oinstall /dev/sdd

#chmod 600 /dev/sdc#chmod 600 /dev/sdd

File Ref: SAW - size hardware for Portal implementation (v. DRAFT 1A )