This document normally stores in Virtual Box Oralce Linux 6 VM under jcchoy/Documents/oracle_linux_6_installation_notes.txt 2011-04-17 Sunday at home Linux 6 install for x86 (32 bit) Are the downloaded zip files (V24734-01.zip) or DVD ISO images ? according https://edelivery.oracle.com/EPD/Download/get_form readme icon link listed below, it is the DVD in zip format. ----------------------------------------------------------------------------------------------------------------------------------- Oracle Linux Release 6 Media Pack for x86 (32 bit) ================================================== Oracle Linux Release 6 is released through Oracle eDelivery on DVD ISO image. The set contains installable DVD and 2 source code DVDs. Most of the systems can be booted with the installation DVD. Installation To install Oracle Linux 6 from DVD media, follow the following steps: 1. Download the compressed binary DVD images Download Oracle Linux 6 DVD from Oracle eDelivery. You do not need to download Source DVDs to install Oracle Linux, this DVD only contain the source code. 2. Uncompress the DVD image The downloaded file is compressed with the zip format. Use unzip tool available at http://oss.oracle.com/el4/unzip/unzip.html to uncompress the file. 3. Write the DVD image to DVD Use your favorite cd burning software to write these images directly to DVD. Do not write the image files to the DVD. To test if you have burned and directories are visible. 4. Insert the DVD, and boot Insert the DVD into your system, boot from DVD, and follow the on-screen instructions to deploy Oracle Linux! Please visit http://linux.oracle.com for more information. ----------------------------------------------------------------------------------------------------------------------------------- Plan: - zip the dvd into a windows folder by itself on my F disk - create another Virtualbox VM (Virtual Machine) called it Oracle Linux 6 - reserved 60 GB for it in preparation of the Oracle 11gR2 installation in it. - follow pictural install guide printed earlier in http://www.oracle-base.com/articles/linux/OracleLinux6Installation.php 9:30 pm got an error from WinRAR to unzip V24734-01.zip, saying it is multi-part or corrupt ! tried download it again. same error !? ! F:\Oracle Linux 6 Download\Install DVD zip file\V24734-01\V24734-01.zip: Either multipart or corrupt ZIP archive 10:50 pm It seems that I have to unzip the file in a unix environment because the zip file is in unix format ? The problem is WinRAR, downloaded 7-zip and used it to extract the zip file with no problem and created a V24734-01 folder with OracleLinux-R6-U0-Server-i386-dvd.iso in it. 2011-04-22 Sunday at home Linux 6 install for x86 (32 bit) 1:44 pm Consolidate/remove extra V24734-01 folder to F:\Oracle Linux 6 Download\Install DVD zip file\V24734-01\OracleLinux-R6-U0-Server-i386-dvd.iso Google iso extension to find out what it is : " ISO files are useful for duplicating or backing up CDs and DVDs because they copy every bit of data exactly from the disc. This is different than copying all files from a disc because the disc header information is lost in the copy process. An ISO file can be used to restore a disc exactly to the original version." Currently there is a magicdisc mounted on E: from Fedora 14 i386 iso file (from Justin) try eject it (nothing), try unmount all drive (works) E now shows DVD drive (E:) when I click it, it asks to insert a dvd. startup magicdisc to get the magicdisc icon lower right, then right click, virtual cd/dvd-rom / E: No Media/Mount and pick F:\Oracle Linux 6 Download\Install DVD zip file\V24734-01\OracleLinux-R6-U0-Server-i386-dvd.iso ok to show the dvd in windows explorer each time and E now shows OL6.0 i386 Disc (E) => mounted ! Now I am ready to install it in another Virtualbox VM 2:30 pm Open VirtualBox and click new VM, name : Oracle Linux 6 (it automatically picks os type system: Linux, version: oracle) gives it 2 GB memory, check boot disk, create new Virtual Disk 61.74 GB max. (dynamic expanding storage) save in F:\VirtualBox VMs\Oracle Linux 6 on F (60 GB).vdi, click finish system storage, add a dvd to point to F:\Oracle Linux 6 Download\Install DVD zip file\V24734-01\OracleLinux-R6-U0-Server-i386-dvd.iso because it asks for a iso file not DVD drive E (probably don't need to mount on virtual DVD drive E at all !) Now follow http://www.oracle-base.com/articles/linux/OracleLinux6Instalation.php to install Oracle Linux 6 on th new VM. hit Ctrl key to switch between keying in windows xp or inside the VM installation screens: choose U.S.English for keyboard setting click Re-initialize all button in response to Error Processing Drive ATA Virtualbox Harddisk prompt. Hostname: olinux6.oraclelinux (localhost.localdomain) don't click Configure Network, becuase I am using DHCP, just click next after entering hostname. timezone is American/Vancouver, use system utc Pw for root is root/jcchoy321 same as non-admin user jcchoy Type of Installation : check Use All Space and Review and modify partitioning layout Click format in response to Format Warning screen of /dev/sda partition tbale (MDOS) Click "Write changes to disk" in response to Writinng Storage Configuration to disk warnings. Accept Base Server and check Customize now icon Package Group Selection screen must ensure you check all packages you want on the right screen ! there should be approx. 1014 packages to install not 530 ! 3:46pm Reinstall Oracle Linux 6 again, Leave system storage primary ide dvd point to F:\Oracle Linux 6 Download\Install DVD zip file\V24734-01\OracleLinux-R6-U0-Server-i386-dvd.iso This time at the Package Group Selection screen, check more packages to install at the right for each item click on left. pick Gnome destkop, network tools etc. ended up with 1601 packages to install, took more than 2 hours ? 6 pm At the Set Up sofware Updates screen get "Network connection not active, cannoe be setup for softwar update at this time. Register by running Unbreakable Linux Network (ULN) registration System>Administration Menu Update Software later with System>Software Update " contine with a message "Your system is not setup for software updates" create user screen (must create a regular non-admin) use of your system jcchoy/jcchoy321 name Joel Choy Date and Time Screen check Sychronise date and time over the network and pick the 1st ip address in the window Kdump screen get insufficient memory to configure kdump ok prompt ? click ok. (kdump - kernel crash dumping mechanisem in the event of syste crash, require portion of system memory to work that will be unavailable for other use). This could be because of the 2 GB memory chosen earlier. Kdump probably can be reinstall again, choose less memory than 2 GB which is more than half of total 3.24 GB total. Finish the install, log onto jcchoy with the desktop Firewall (disable it) System>Administration>Firewall, specify root/jcchoy321 and click disable. SELinux (disable it) vi /etc/selinux/config file, comment the SELINUX=enforcing and SELINUXTYPE line and add SELINUX=disabled line. shutdown oracle linux 6 detached the oracle linux .iso DVD in F: from the IDE DVD drive and add an empty dvd there Received a warning msg that memory is more than half of 3.24 GB total of computer, continue at own risk. Reduce memory to 1.6 GB in the VM before restart the Oracle Linux 6 VM Once Oracle Linux 6 is up and log onto jcchoy/jcchoy321, run ULN registration and software update from System>Administration menu. Notice no network connection. Right click the network connection icon, and make "System eth0" active until the red x is gone and "Wired network connection 'system etho' active" when cursor is over network connection icon. Make sure firefox browser can connect to internet. Yes. Now run ULN registration and software update. Cannot proceed because it looks like I need to have an Oracle customer paid account. To turn off password prompt from locking screen: System/preference/screen saver/ uncheck lock screen when screensaver active also change computer idle time from 5 min to 30 min. 2011-04-30 Saturday Preparing for Oracle 11gR2 on Oracle Linux 6 VM 9:00 pm Looking at a Oracle 11gR2 Rac on Linux (Virtual Box) googled from work : http://www.oracle-base.com/articles/11g/OracleDB11gR2RACInstallationOnOEL5.5UsingVirtualBox.php This is a simulataion of a 2 nodes RAC on Oracle Linux 5.5 64 bit VirtualBox (3.2.8) Virtualization install. After reading through the entire document, decided it would be too complex for me at this stage. Decided to just get single instance working on Virtual Box with Linux 6 VM first. Found another website on google (1st link) with keywords "oracle 11gr2 install "oracle 11gr2 install with asm virtualbox" A 4 part series that seems quite good for a single instance install with ASM on VirtualBox View(part 1 VirtualBox Installation) http://oraclenz.com/2011/02/05/playing-with-oracle-11gr2-oel-56-and-virtualbox-402-1st-part-2/ downloaded Oracle 11gR2 for linux x86 part 1 in F:\Oracle 11gR2 download (takes about an hour) before realizing that I need to download from VirtualBox Linux machine. Remember from Apirl 9 /2011 Oracle 10gR2 install Fedora 13 Linux that there was a winscp open source that can sftp between windows and linux. Want to give that a try. No it seems to be a just sftp between local and remote PC. Probably Linux 6 can retrieve from the F:\Oracle 11gR2 download of windows with its sftp server installed there. Experiment that later. Just download Oracle 11gR2 from Linux 6 VM with Oracle account instead for now. Leave Oracle 11gR2 for Linux x86 part 1/part 2 zip in F:\Oracle 11R2 download folder for later. These are not used to install in Oracle Linux 6 VM. 2011-05-01 Sunday Preparing for Oracle 11gR2 on Oracle Linux 6 VM View (part 2 Oracle Linux (OEL 5.6) Installation) http://oraclenz.com/2011/02/04/playing-with-oracle-11gr2-oel-56-and-virtualbox-402-1st-part/ Already done 2011-04-22 Sunday. Re-install only if I need to start over. View (part 3 Oracle Preinstall Tasks) http://oraclenz.com/2011/02/06/playing-with-oracle-11gr2-oel-56-and-virtualbox-402-3rd-part/ Logon to VirtualBox 4.0.4 VM Oracle Linux 6 with jcchoy/jcchoy321 click upper right top wired network 'System eth0' to active. Connect to Firefox to download: - linux_11gR2_database_1of2.zip (1,285,396,902 bytes) - linux_11gR2_database_2of2.zip (995,359,177 bytes) - linux_11gR2_grid.zip (980,831,749 bytes) Ensure size of downloads agree with Oracle download website in /home/jcchoy/Downloads with ls -l [jcchoy@olinux6 ~]$ su - root Password: [root@olinux6 ~]# grep MemTotal /proc/meminfo MemTotal: 1649868 kB (1.6 GB > 1 GB memory minimum available, fine) [root@olinux6 ~]# grep SwapTotal /proc/meminfo SwapTotal: 4161528 kB (4.1 GB fine about 1.5 times of memory, fine) [root@olinux6 ~]# free (default is in kilo bytes) total used free shared buffers cached Mem: 1649868 1588888 60980 0 14940 1337204 -/+ buffers/cache: 236744 1413124 Swap: 4161528 0 4161528 Current disk free space [root@olinux6 ~]# df -h Filesystem Size Used Avail Use% Mounted on /dev/mapper/vg_olinux6-lv_root 50G 5.1G 42G 11% / tmpfs 806M 524K 806M 1% /dev/shm /dev/sda1 485M 29M 431M 7% /boot /dev/mapper/vg_olinux6-lv_home 7.2G 3.3G 3.6G 48% /home [root@olinux6 ~]# 2011-05-08 Sunday Oracle 11gR2 preparation 2:30 PM Check shared memory available: [jcchoy@olinux6 ~]$ su - root Password: [root@olinux6 ~]# df -h /dev/shm/ Filesystem Size Used Avail Use% Mounted on tmpfs 806M 260K 806M 1% /dev/shm [root@olinux6 ~]# Don't understand why Francisco suggests increase /dev/shm mounted on shmfs filesystem be increased to 1240M from 1024M which is abt 50% of total Memory of 2048 M (2 GB) with "mount -t tmpfs shmfs -o size=1240m /dev/shm" command and vi /etc/fstab adding a line "shmfs /dev/shm tmpfs size=1240m 0" Leave shared memory check for now because I don't understand why shmfs filesystem, I think I need to replace shmfs filesystem with tmpfs, increase a bit say tmpfs size to 950M from 806M. "mount -t tmpfs shmfs -o size=1240m /dev/shm" means: mount -t (filesystem type=tmpfs in this case, filesystem found on device shmfs at /dev/shm (taken from man mount which shows the command format as mount -t type device dir) mount -t tmpfs shows the following [jcchoy@olinux6 Downloads]$ mount -t tmpfs tmpfs on /dev/shm type tmpfs (rw) Continue with checking required packages (or later version installed or not Use "yum list installed package-name*" command to check if package is installed or not. Get warnings but yum list installed package-name* still work [root@olinux6 ~]# yum list installed b* Loaded plugins: refresh-packagekit, rhnplugin This system is not registered with ULN. ULN support will be disabled. Installed Packages binutils.i686 2.20.51.0.2-5.11.el6 binutils-devel.i686 2.20.51.0.2-5.11.el6 [root@olinux6 ~]# yum list installed compat-libstdc+* Loaded plugins: refresh-packagekit, rhnplugin This system is not registered with ULN. ULN support will be disabled. Installed Packages compat-libstdc++-296.i686 2.96-144.el6 compat-libstdc++-33.i686 3.2.3-69.el6 Seems to be missing ksh-20060214, libaio-devel yum list installed sometimes doesn't work Can't install with yum Can't run rpm following Francisco's cd /media/Oracle\ Linux\ Server \ DVD\ 20110119 cd Server; rpm -Uvh binutils-2.* 4:00 pm Tried go to Places\DVD OL6.0 i386 Disc 1 20110203\ (virtual dvd (E:) double click on Packages, double-click on ksh-2010* rpm package to install it, it worked ! [root@olinux6 /]# yum list installed binutil-2* Installed Packages binutils.i686 2.20.51.0.2-5.11.el6 [root@olinux6 /]# yum list installed unixODBC* 9:00 pm Installed Packages unixODBC.i686 2.2.14-11.el6 unixODBC-devel.i686 2.2.14-11.el6 [root@olinux6 /]# yum list installed ksh* Loaded plugins: refresh-packagekit, rhnplugin Installed Packages ksh.i686 20100621-2.el6 [root@olinux6 /]# yum list installed oracleasm* Installed Packages oracleasm-support.i686 2.1.5-1.el6 the virtual dvd just have 1 oracleasm package not 2 listed in Francisco's list. Edit "/etc/sysctl.conf" [root@olinux6 etc]# cp -p sysctl.conf sysctl.conf.110508 [root@olinux6 etc]# ls -l sysctl.* -rw-r--r--. 1 root root 821 Dec 19 21:13 sysctl.conf -rw-r--r-- 1 root root 821 Dec 19 21:13 sysctl.conf.110508 gedit sysctl.conf add the following lines: kernel.core_uses_pid = 1 fs.suid_dumpable = 1 fs.aio-max-nr = 1048576 fs.file-max = 6815744 kernel.shmall = 2097152 kernel.shmmax = 536870912 kernel.shmmni = 4096 kernel.sem = 250 32000 100 128 net.ipv4.ip_local_port_range = 9000 65500 net.core.rmem_default = 262144 net.core.rmem_max = 4194304 net.core.wmem_default = 262144 net.core.wmem_max = 1048586 Run sysctl -p command [root@olinux6 etc]# sysctl -p net.ipv4.ip_forward = 0 net.ipv4.conf.default.rp_filter = 1 net.ipv4.conf.default.accept_source_route = 0 kernel.sysrq = 0 kernel.core_uses_pid = 1 net.ipv4.tcp_syncookies = 1 error: "net.bridge.bridge-nf-call-ip6tables" is an unknown key error: "net.bridge.bridge-nf-call-iptables" is an unknown key error: "net.bridge.bridge-nf-call-arptables" is an unknown key kernel.core_uses_pid = 1 fs.suid_dumpable = 1 fs.aio-max-nr = 1048576 fs.file-max = 6815744 kernel.shmall = 2097152 kernel.shmmax = 536870912 kernel.shmmni = 4096 kernel.sem = 250 32000 100 128 net.ipv4.ip_local_port_range = 9000 65500 net.core.rmem_default = 262144 net.core.rmem_max = 4194304 net.core.wmem_default = 262144 net.core.wmem_max = 1048586 3 errors of unknown key, google said known bugs of linux because I don't have the bridge module loaded. shouldn't matter. 10:00 pm Now let’s configure the Virtual Machine to reduce the Idle CPU load, to achieve this goal, you just need to edit the file “/etc/grub.conf” and add the words “divider=10” after the word quiet, as show in the picture bellow. updated /boot/grub/grub.conf with the "divider=10" after a backup of the file: [root@olinux6 etc]# ls -l grub* lrwxrwxrwx. 1 root root 22 Apr 22 18:34 grub.conf -> ../boot/grub/grub.conf [root@olinux6 etc]# cd /boot/grub [root@olinux6 grub]# ls -l grub* -rw-------. 1 root root 830 Apr 22 18:34 grub.conf [root@olinux6 grub]# cp -p grub.conf grub.conf.110508 [root@olinux6 grub]# pwd /boot/grub [root@olinux6 grub]# gedit grub.conf 10:30 pm Don't seem to have the VboxLinuxAdditions.run in the Installation dvd image file: VboxGuestAddition.iso just windows and os/2. Francisco was using VirtualBox 4.0.2. I am running VirtualBox 4.0.4, skip the Install guest additions step. 11:00 pm Mount Oracle DB and Grid Infrastructure software, by going to Device/Shared Folders. Error: it said it requires installation of Guest Additions before it will show Shared Folders !? 2011-05-14 Saturday Oracle 11gR2 preparation 2:00 PM See if I can install Vbox Linux Guest additions from the oracle linux 6 dvd iso file. Click Devices\Install Guest Additions (from F:\VirtualBox\VboxGuestAdditions.iso dvd ?) Click Places\VBOXADDITIONS_4.0.4_70112 and notice that VBoxLinuxAdditions.run is on the list. start a linux terminal and su - root to install Guest Additions: The following paragraph is my own instructions to create a windows xp share folder to get at the oracle 11gr2 linux download zip files there. ( see the link below) http://www.giannistsakiris.com/index.php/2008/04/09/virtualbox-access-windows-host-shared-folders-from-ubuntu-guest/ Click Devices/shared folders select other folder to find the F:\Oracle 11gR2 download directory and map to a linus new folder Oracle11gR2_download : # sudo mkdir /media/windows-share # sudo mount -t vboxsf Oracle11gR2_download /media/windows-share end of my own instructions to create window xp share in linux. [jcchoy@olinux6 ~]$ su - root Password: ensure the I can cd to VBOXADDITIONS_4.0.4_70112 folder [root@olinux6 VBOXADDITIONS_4.0.4_70112]# df -h Filesystem Size Used Avail Use% Mounted on /dev/mapper/vg_olinux6-lv_root 50G 5.2G 42G 11% / tmpfs 806M 260K 806M 1% /dev/shm /dev/sda1 485M 29M 431M 7% /boot /dev/mapper/vg_olinux6-lv_home 7.2G 3.3G 3.6G 48% /home /dev/sr0 37M 37M 0 100% /media/VBOXADDITIONS_4.0.4_70112 [root@olinux6 ~]# cd /media/VBOXADDITIONS_4.0.4_70112 [root@olinux6 VBOXADDITIONS_4.0.4_70112]# sh ./VBoxLinuxAdditions.run Verifying archive integrity... All good. Uncompressing VirtualBox 4.0.4 Guest Additions for Linux......... VirtualBox Guest Additions installer Removing existing VirtualBox DKMS kernel modules [ OK ] Removing existing VirtualBox non-DKMS kernel modules [ OK ] Building the VirtualBox Guest Additions kernel modules Building the main Guest Additions module [ OK ] Building the shared folder support module [ OK ] Building the OpenGL support module [ OK ] Doing non-kernel setup of the Guest Additions [ OK ] Starting the VirtualBox Guest Additions [ OK ] Installing the Window System drivers Installing X.Org Server 1.7 modules [ OK ] Setting up the Window System to use the Guest Additions [ OK ] You may need to restart the hal service and the Window System (or just restart the guest system) to enable the Guest Additions. Installing graphics libraries and desktop services componen[ OK ] [root@olinux6 VBOXADDITIONS_4.0.4_70112]# df -h Filesystem Size Used Avail Use% Mounted on /dev/mapper/vg_olinux6-lv_root 50G 5.2G 42G 11% / tmpfs 806M 260K 806M 1% /dev/shm /dev/sda1 485M 29M 431M 7% /boot /dev/mapper/vg_olinux6-lv_home 7.2G 3.3G 3.6G 48% /home /dev/sr0 37M 37M 0 100% /media/VBOXADDITIONS_4.0.4_70112 [root@olinux6 VBOXADDITIONS_4.0.4_70112]# cd .. The following the linux output from my own window xp share folder install task: [root@olinux6 media]# sudo mkdir /media/windows-share [root@olinux6 media]# ls -l total 6 dr-xr-xr-x 4 jcchoy jcchoy 2048 Feb 17 09:05 VBOXADDITIONS_4.0.4_70112 drwxr-xr-x 2 root root 4096 May 14 17:24 windows-share [root@olinux6 media]# sudo mount -t vboxsf Oracle11gR2_download /media/windows-share [root@olinux6 media]# cd windows-share [root@olinux6 windows-share]# ls -l total 2227301 -rwxrwxrwx 1 root root 1285396902 Apr 30 21:45 linux_11gR2_database_1of2.zip -rwxrwxrwx 1 root root 995359177 Apr 30 22:54 linux_11gR2_database_2of2.zip Now I can cd to /media/windows-share and access the oracle 11gR2 linux install zip files Copy them to /root/oracle_download directory (actually I had already downloaded them to ~jcchoy/Downloads folder on April 30 with grid zip so no need to install window xp share install on Linux but good exercise to know) [root@olinux6 /]# mkdir oracle_download [root@olinux6 /]# cd oracle_download [root@olinux6 oracle_download]# cp ~jcchoy/Downloads/*.* . [root@olinux6 oracle_download]# ls -l total 3185160 -rw-r--r-- 1 root root 1285396902 May 14 17:32 linux_11gR2_database_1of2.zip -rw-r--r-- 1 root root 995359177 May 14 17:34 linux_11gR2_database_2of2.zip -rw-r--r-- 1 root root 980831749 May 14 17:36 linux_11gR2_grid.zip Francisco said to add the Oracle DB and Grid Infrastructure software from Device/Shared Folders but I don't have these software path to share !? (I think he missed documenting some steps, was accessing the unzipped software on other VM shared folders e.g. another linux vm where he downloaded/unzipped the oracle database/grid folders there. Doesn't apply if I am to unzip the software in linux e.g. /oracle_download folder under root). Continue on with create new groups and users: [root@olinux6 ~]# /usr/sbin/groupadd oinstall [root@olinux6 ~]# /usr/sbin/groupadd -g 502 dba groupadd: GID '502' already exists This is because of the vboxsf the new filesystem for windows xp Oracle11gR2_download folder took up one extra GID ! See below: [root@olinux6 sbin]# tail -10 /etc/group stapdev:x:491: stapusr:x:490: stap-server:x:155: fuse:x:489: hsqldb:x:96: gdm:x:42: tomcat:x:91: jcchoy:x:500: vboxsf:x:501: oinstall:x:502: [root@olinux6 sbin]# Decided to delete file system vboxsf and oinstall group and start over: # groupdel oinstall remove the windows xp Oracle11gR2_download folder (Device/shared folder, click remove) # groupdel vboxsf [root@olinux6 sbin]# groupdel oinstall [root@olinux6 sbin]# tail -5 /etc/group hsqldb:x:96: gdm:x:42: tomcat:x:91: jcchoy:x:500: vboxsf:x:501: [root@olinux6 sbin]# groupdel vboxsf [root@olinux6 sbin]# tail -5 /etc/group fuse:x:489: hsqldb:x:96: gdm:x:42: tomcat:x:91: jcchoy:x:500: [root@olinux6 sbin]# /usr/sbin/groupadd oinstall [root@olinux6 sbin]# /usr/sbin/groupadd -g 502 dba [root@olinux6 sbin]# /usr/sbin/groupadd -g 503 oper [root@olinux6 sbin]# /usr/sbin/groupadd -g 504 asmadmin [root@olinux6 sbin]# /usr/sbin/groupadd -g 506 asmdba [root@olinux6 sbin]# /usr/sbin/groupadd -g 505 asmoper [root@olinux6 sbin]# /usr/sbin/useradd -u 502 -g oinstall -G dba,asmdba,oper oracle [root@olinux6 sbin]# passwd oracle Changing password for user oracle. New password: jcchoy321 Retype new password: jcchoy321 passwd: all authentication tokens updated successfully. [root@olinux6 sbin]# cd .. # cd /root/oracle_download # unzip linux_11gR2_database_1of2.zip (created a /oracle_download/database folder) # unzip linux_11gR2_database_2of2.zip (updated to the above folder) # unzip linux_11gR2_grid.zip (created a /oracle_download/grid folder) successfully install cvuqdisk package: click Places/Computer/Filesystem/oracle_download/grid/rpm double click cvuqdisk-1.0.7-1.rpm to install it. After installed, check with yum command : [root@olinux6 oracle_download]# yum list installed cvuqdisk* Loaded plugins: refresh-packagekit, rhnplugin This system is not registered with ULN. ULN support will be disabled. Installed Packages cvuqdisk.i386 1.0.7-1 @/vuqdisk-1.0.7-1 My own task of making updates to this note file from Linux 6 to windows xp easier : Click Devices/shared folder and created a folder in linux 6 mapping to windows xp F:\Oracle 11gR2 download folder where this note text file is): [root@olinux6 /]# sudo umount -t vboxsf Oracle11gR2_download /media/windows-share umount: /media/windows-share: not mounted [root@olinux6 /]# sudo mount -t vboxsf Oracle_Linux_6_Download /media/windows-share [root@olinux6 /]# df -h Filesystem Size Used Avail Use% Mounted on /dev/mapper/vg_olinux6-lv_root 50G 12G 36G 25% / tmpfs 806M 432K 806M 1% /dev/shm /dev/sda1 485M 29M 431M 7% /boot /dev/mapper/vg_olinux6-lv_home 7.2G 3.3G 3.6G 48% /home /dev/sr0 37M 37M 0 100% /media/VBOXADDITIONS_4.0.4_70112 Oracle_Linux_6_Download 466G 42G 425G 9% /media/windows-share [root@olinux6 /]# cd /media/windows-share [root@olinux6 windows-share]# ls -l total 20 drwxrwxrwx 1 root root 0 Apr 22 13:46 Install DVD zip file -rwxrwxrwx 1 root root 18448 May 14 13:47 oracle_linux_6_installation_notes.txt -rwxrwxrwx 1 root root 695 May 14 13:48 Shortcut to oracle_linux_6_installation_notes.txt.lnk [root@olinux6 windows-share]# cp ~jcchoy/Documents/oracle_linux_6_installation_notes.txt . cp: overwrite `./oracle_linux_6_installation_notes.txt'? yes [root@olinux6 windows-share]# 2011-05-14 Saturday Oracle 11gR2 preparation 1:00 PM Point to windows xp share, this note file: Clicked Devices/Shared Folders add Folder Path: F:\Oracle Linux 6 Download Folder-name: Oracle_linux_6_Download # sudo mount -t vboxsf Oracle_Linux_6_Download /media/windows-share Add the following lines to /etc/security/limits.conf file (bkup file first): oracle soft nproc 2047 oracle hard nproc 16384 oracle soft nofile 1024 oracle hard nofile 65536 oracle soft stack 10240 Add the following line to /etc/pam.d/login file (bkup file first): session required pam_limits.so Create Oracle directories needed for software installation : # mkdir -p /u01/app/oracle # chown -R oracle:oinstall /u01/app/oracle # chmod -R 775 /u01/app/oracle # mkdir /u01/app/oracle/recovery_area # chown oracle:oinstall /u01/app/oracle/recovery_area # chmod 775 /u01/app/oracle/recovery_area [jcchoy@olinux6 ~]$ su - root Password: [root@olinux6 ~]# df -h Filesystem Size Used Avail Use% Mounted on /dev/mapper/vg_olinux6-lv_root 50G 12G 36G 25% / tmpfs 806M 272K 806M 1% /dev/shm /dev/sda1 485M 29M 431M 7% /boot /dev/mapper/vg_olinux6-lv_home 7.2G 3.3G 3.6G 48% /home [root@olinux6 ~]# sudo mount -t vboxsf Oracle_Linux_6_Download /media/windows-share [root@olinux6 ~]# df -h Filesystem Size Used Avail Use% Mounted on /dev/mapper/vg_olinux6-lv_root 50G 12G 36G 25% / tmpfs 806M 272K 806M 1% /dev/shm /dev/sda1 485M 29M 431M 7% /boot /dev/mapper/vg_olinux6-lv_home 7.2G 3.3G 3.6G 48% /home Oracle_Linux_6_Download 466G 42G 425G 9% /media/windows-share [root@olinux6 ~]# cd /etc/security [root@olinux6 security]# cp -p limits.conf limits.conf.20110515 [root@olinux6 security]# gedit limits.conf [root@olinux6 security]# cd .. [root@olinux6 etc]# cd pam.d [root@olinux6 pam.d]# cp -p login login.20110515 [root@olinux6 pam.d]# gedit login [root@olinux6 pam.d]# cd .. [root@olinux6 etc]# cd .. [root@olinux6 /]# mkdir -p /u01/app/oracle [root@olinux6 /]# chown -R oracle:oinstall /u01/app/oracle [root@olinux6 /]# chmod -R 775 /u01/app/oracle [root@olinux6 /]# mkdir /u01/app/oracle/recovery_area [root@olinux6 /]# chown oracle:oinstall /u01/app/oracle/recovery_area [root@olinux6 /]# chmod 775 /u01/app/oracle/recovery_area [root@olinux6 /]# Logon to Oracle and gedit .bash_profile, (bkup first) [jcchoy@olinux6 ~]$ su - oracle Password: [oracle@olinux6 ~]$ pwd /home/oracle [oracle@olinux6 ~]$ ls -la total 40 drwx------ 4 oracle oinstall 4096 May 15 13:24 . drwxr-xr-x. 5 root root 4096 May 14 21:39 .. -rw-r--r-- 1 oracle oinstall 18 Jul 22 2010 .bash_logout -rw-r--r-- 1 oracle oinstall 176 Jul 22 2010 .bash_profile -rw-r--r-- 1 oracle oinstall 124 Jul 22 2010 .bashrc -rw-r--r-- 1 oracle oinstall 500 Aug 10 2010 .emacs drwxr-xr-x 2 oracle oinstall 4096 Nov 20 00:34 .gnome2 -rw-r--r-- 1 oracle oinstall 121 Jul 24 2010 .kshrc drwxr-xr-x 4 oracle oinstall 4096 Apr 22 16:46 .mozilla -rw------- 1 oracle oinstall 64 May 15 13:24 .xauthqma8LV [oracle@olinux6 ~]$ cp -p .bash_profile .bash_profile.20110515 [oracle@olinux6 ~]$ gedit .bash_profile # Oracle Settings for Oracle 11gR2 install 2011-05-15 TMP=/tmp; export TMP TMPDIR=$TMP; export TMPDIR ORACLE_BASE=/u01/app/oracle; export ORACLE_BASE ORACLE_HOME=$ORACLE_BASE/product/11.2.0.2/db_1; export ORACLE_HOME ORACLE_SID=ORCL; export ORACLE_SID ORACLE_TERM=xterm; export ORACLE_TERM PATH=/usr/sbin:$PATH; export PATH PATH=$ORACLE_HOME/bin:$PATH; export PATH LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib; export LD_LIBRARY_PATH CLASSPATH=$ORACLE_HOME/JRE:$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib; export CLASSPATH if [ $USER = "oracle" ]; then if [ $SHELL = "/bin/ksh" ]; then ulimit -p 16384 ulimit -n 65536 else ulimit -u 16384 -n 65536 fi fi 2011-05-16 Sunday Oracle 11gR2 preparation 12:00 PM Now you need to connect as “root” and give to command: xhost + to enable X applications , than connect as “oracle” and run xclock to see if it’s working. xhost - server access control program for X + Access is granted to everyone, even if they aren’t on the list (i.e., access control is turned off). # xhost + (issuse "xhost +" from root to grant X server access to everyone) [root@olinux6 /]# xhost + access control disabled, clients can connect from any host run xclock with a oracle xterm, xclock works but with 2 lines of warnings : [oracle@olinux6 ~]$ xclock Warning: Missing charsets in String to FontSet conversion Warning: Unable to load any usable fontset Seems to need to install some X11 Fonts (missing) Continue with install (part 4) for now and resolve at pre-install stage. [root@olinux6 etc]# cat /proc/partitions major minor #blocks name 8 0 64735232 sda 8 1 512000 sda1 8 2 64222208 sda2 253 0 52428800 dm-0 253 1 4161536 dm-1 253 2 7630848 dm-2 [root@olinux6 etc]# Francisco said add a 4GB disk to your VM to install Grid Infrastructure, which is the sdb so shutdown VM. Added a 8 gb Oracle Linux 6 on F (8GB) vdi new disk under sata controller in VM. Reboot windows xp and Virtual Box vm and come back again : [root@olinux6 dev]# cat /proc/partitions major minor #blocks name 8 0 64735232 sda 8 1 512000 sda1 8 2 64222208 sda2 8 16 8388608 sdb 253 0 52428800 dm-0 253 1 4161536 dm-1 253 2 7630848 dm-2 [root@olinux6 dev]# Determine now I really have a new 8 GB disk name called /dev/sdb by running fdisk -l (list partitions) first : [root@olinux6 dev]# fdisk -l Disk /dev/sda: 66.3 GB, 66288877568 bytes 255 heads, 63 sectors/track, 8059 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: 0x000f19be Device Boot Start End Blocks Id System /dev/sda1 * 1 64 512000 83 Linux Partition 1 does not end on cylinder boundary. /dev/sda2 64 8060 64222208 8e Linux LVM Disk /dev/sdb: 8589 MB, 8589934592 bytes 255 heads, 63 sectors/track, 1044 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/sdb doesn't contain a valid partition table Disk /dev/dm-0: 53.7 GB, 53687091200 bytes 255 heads, 63 sectors/track, 6527 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/dm-0 doesn't contain a valid partition table Disk /dev/dm-1: 4261 MB, 4261412864 bytes 255 heads, 63 sectors/track, 518 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/dm-1 doesn't contain a valid partition table Disk /dev/dm-2: 7813 MB, 7813988352 bytes 255 heads, 63 sectors/track, 949 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/dm-2 doesn't contain a valid partition table The above listing shows /dev/sda is a disk name of my original 60 GB allocation has 1 partition table and 2 devices: /dev/sda1, /dev/sda2, also a boot partition ? The rest of the disks don't have a valid partition table in each disk: /dev/sdb, /dev/dm-0, /dev/dm-1, /dev/dm-2 Now use fdisk to prepare the disk /dev/sdb below : [root@olinux6 dev]# cd .. [root@olinux6 /]# which fdisk /sbin/fdisk [root@olinux6 /]# fdisk /dev/sdb Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel Building a new DOS disklabel with disk identifier 0xe1f8be18. Changes will remain in memory only, until you decide to write them. After that, of course, the previous content won't be recoverable. Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite) WARNING: DOS-compatible mode is deprecated. It's strongly recommended to switch off the mode (command 'c') and change display units to sectors (command 'u'). Command (m for help): n Command action e extended p primary partition (1-4) p Partition number (1-4): 1 First cylinder (1-1044, default 1): 1 Last cylinder, +cylinders or +size{K,M,G} (1-1044, default 1044): 1044 Command (m for help): w The partition table has been altered! Calling ioctl() to re-read partition table. Syncing disks. [root@olinux6 /]# This seems to be successful. Francisco said to reboot the VM to allow the new partition to be used. Then configure the disk(s) to be used by ASM. 2011-05-16 Sunday Oracle 11gR2 preparation 9:00 PM [root@olinux6 ~]# oracleasm configure -i 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 without typing an 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]: y Writing Oracle ASM library driver configuration: done [root@olinux6 ~]# Initialize the asmlib with the oracleasm init command. This command will load the oracleasm module and also mounts the oracleasm filesystem. [root@olinux6 ~]# oracleasm init Creating /dev/oracleasm mount point: /dev/oracleasm Loading module "oracleasm": failed Unable to load module "oracleasm" [root@olinux6 ~]# yum list installed oracleasm* Loaded plugins: refresh-packagekit, rhnplugin This system is not registered with ULN. ULN support will be disabled. Installed Packages oracleasm-support.i686 2.1.5-1.el6 @/oracleasm-support-2.1.5-1.el6.i686 [root@olinux6 ~]# It seems like I am missing the oracleasm module rpm somehow. Tried to installed the oracleasm rpm from dvd host drive E: Clicked devices\cd\dvd\Host drive 'E' Clicked Places\OL6.0 i386 Disc 1 20110203 oracleasm rpm is not there, just oracle-support. Tried to download from otn. Get the system kernel information first. [root@olinux6 init.d]# uname -r (Kernel release) 2.6.32-71.el6.i686 [root@olinux6 init.d]# uname -p (processor) i686 [root@olinux6 init.d]# uname -i (hardware platform i386 [root@olinux6 init.d]# uname -s (system name) Linux Oracleasm driver for Oracle linux 6 doesn't seem to be available free to download on OTN for some reason ? It could be because it presume you registered with ULN network (Unbreakable Linux Network) which allows you to automatically download and install it with a paid account. Since Francisco showed oracleasm driver is available for Oracle Linux 5.6, can start over installing Linux 5.6 in place of Linux 6 with VirtualBox 4.0.4 instead of VirtualBox 4.0.2. 12:00 am - Download Oracle Linux 5.6 dvd iso zip file in unix - unzip it to dvd iso format in to a unix folder - check there is oracleasm driver before installing Linux 5.6 - mount the dvd iso format on a VM dvd drive - follow Francisco's part 2 Linux 5.6 installation on a new VM. I think Francisco is referring to Oracle downloaded files. View (part 4 Oracle 11gR2 Grid Infrastructure, ASM configuration and 11gR2 Install) http://oraclenz.com/2011/04/18/playing-with-oracle-11gr2-oel-56-and-virtualbox-402-4th-part/