Karl Arao's Blog

Just another weblog about Oracle,Linux,Troubleshooting,etc..etc..

Posts Tagged ‘Installation’

Single Instance and RAC Kernel/OS upgrade

Posted by karlarao on April 4, 2009

This document will serve as a guide for the Kernel and OS upgrade activities for

  1. Single Instance on ASM using raw devices
  2. RAC with ASM (using ASMlib) and OCFS2

Upgrading the Kernel and OS is easy and will just need some few commands. The critical part is the dependencies once the Kernel gets updated, so if you’re using ASMlib and OCFS2 you’ll notice that after the upgrade they’re not working anymore… you can’t startup the ASM, then if your OCR and Voting Disk are on OCFS2 the CRS stack wont start all because the RPMs of ASMlib and OCFS2 are kernel dependent, also there are similar components/softwares that are kernel dependent so you have to check them out and do a risk analysis before doing the upgrade.

… If that’s the case, why do you upgrade your Kernel or OS? … Normally you don’t do this often on your production environment considering that you have 24/7 operations but if the business permits it’s ideal to make an upgrade policy on your OS/systems. Below are some of the “drivers why you need to upgrade”:

  • You need to upgrade the firmware of your SAN environment that requires you to be in a specific OS version
  • You need to upgrade the firmware of your HBA that needs a specific kernel version
  • You need to upgrade your RAID controller’s firmware that requires you to be in a specific kernel or OS version
  • Because the hardware/software vendor’s certification matrix is stating that you need to be in a specific kernel or OS version to be on a certified configuration
  • And many more…

So after reading this document, you know what to do/check once your boss/client/vendor tell you to upgrade the kernel or OS with an Oracle Database Single Instance or RAC running.

To view the document, click here

Posted in Installation, Linux, RAC, Upgrade | Tagged: , , , | Leave a Comment »

Migrate from Windows XP 64bit to Ubuntu Intrepid Ibex 8.10 64bit

Posted by karlarao on January 3, 2009

I’ve been using the newest and the greatest version of Ubuntu (Intrepid 8.10) for almost a month now and I’m happy with it :) Finally I’m using a Linux OS, and not even dual booting.. I’m an RHCT who’s aiming to be an RHCE by this first quarter of 2009.. So why not CentOS 5? Or other Linux distros?

Below are some of my opinions about it:

  • Ubuntu has a vast hardware support which does not need any kernel recompilation, building package from scratch, or any hardcore geek tweaks that you have to do in order to be happy with your machine. One example, if you’re in a meeting and you ask your co-worker, “that’s cool, can you project that slide for us?”.. he replies..”I can’t I’m running on CentOS 5, I haven’t worked on the module yet”.. Another is when you’re on a client and the only way to connect to their network is through Wireless and because your Wireless card is not supported you can’t get your job done..ouch!
  • I just want a user-friendly Linux desktop environment (not the server type) which will allow me to do similar things that I do on a Windows environment, also it must be backed by a very dynamic user community.. that makes the distribution keeps on evolving, and makes it very cool and exciting..
  • I have a 120GB external drive that has NTFS partitions, If I were to migrate to CentOS I would be needing NTFS-3g (NTFS driver) in order to use my external drive in read-write mode, apparently it’s not native on the CentOS distribution and there are just too many steps in order to make it work which is same case with the wireless card issue. When you install Ubuntu, you could just plug your external drive and immediately use it
  • Lastly, I also want to learn and be familiar with a Debian based distro..and I kinda like the Synaptic Package Manager, very easy to use with tons of packages available.. but Yum is still cool and powerful..

This is my laptop specs (NEO Elan L2110):

Technology Intel® Centrino® processor technology

Processor Intel® CoreTM2 Duo Processor T8100

Processor details 3 MB L2 cache, 2.10 Ghz, 800 Mhz FSB

Chipset Intel® GM965 + ICH8-M

Memory 4 GB DDR2

Graphics Intel® Graphics Media Accelerator X3100

Display 13.3″ WXGA LCD

Speakers 2 x High Fidelity Internal Speakers (1.5W)

Hard Disk Drive 160 GB SATA

Optical Disc Drive DVDRW SuperMulti Slot-in Type

Networking 10/100/1000 Mbps LAN

Wireless Intel® Wireless WiFi Link 4965AGN

Card Reader 4-in-1 Card Reader

Webcam 1.3 MegaPixels

Connectivity IEEE 1394, Bluetooth®

Battery 6-cell Lithium-ion Battery

Weight ~ 2.1 k

And here’s the step by step on how I did my migration:

On Windows:

1) Backup Calendar and Email (Thunderbird)

2) Backup all the files

3) Have an inventory of all the softwares installed

4) Backup bookmarks on Firefox

On Ubuntu:

5) Installation

  • Used the “alternate CD” then custom partition using LVM (if you are not using the “alternate CD” you can’t do LVM upon install), LVM is very flexible.. if ever I ran out of space on a certain file system I could just execute lvextend and resize2fs.. So I allotted the following:

120MB – BOOT,

2GB – SWAP,

1.5GB – ROOT,

138GB – HOME,

1GB – TMP,

4GB – USR,

1GB – VAR

  • For the keyboard layout I chose “USA” because I’m having problems with special characters when I chose the “USA International”
  • If you encounter the error “ESCOM” when you are hitting ENTER key when searching for a word on a man page, it is a keyboard bug.. just hit CTRL+M or CTRL+J for the workaround (https://bugs.launchpad.net/ubuntu/+source/xkeyboard-config/+bug/40905)
  • I used the 64bit Desktop Kernel of Ubuntu (although I can install the 64bit Server Kernel), why? Because I’m just running on a laptop, and I only have one SATA disk. If I install the server kernel it will have little or no difference on the performance. See the link (http://www.serverwatch.com/tutorials/article.php/3715071) for discussions on I/O scheduler, pre-emption, memory, ticks and HZ

6) After the installation, I just want to try if my VMs will run without problems on Ubuntu, my productivity depends on my VMs.. without them I can’t do all of my test cases for my clients, just follow the bullets below

  • Download VMware 1.08 – latest as of Jan 3, 2009, get the tar.gz version (http://www.vmware.com/download/server/)
  • Read the article (http://ubuntu-tutorials.com/2008/11/01/vmware-server-107-on-ubuntu-810-intrepid-2627-7-generic/) which you will be asked to download the http://www.insecure.ws/warehouse/vmware-update-2.6.27-5.5.7-2.tar.gz which is a patch that will update the vmware modules for the 2.6.27 kernel
  • Also read the (http://ubuntuforums.org/showthread.php?t=337040) for common problems that you may encounter when installing VMware on Ubuntu
  • If you’re having problems on the ENTER key inside your VMs, then read the link (http://communities.vmware.com/message/1091425), you have to append the xkeymap.nokeycodeMap = “true” on /etc/vmware/config file

7) Update Ubuntu (kernel and all packages)

  • Update your OS using the Synaptic Package Manager

8 ) Re-run the perl script vmware setup

  • Updating your OS will also update the kernel, VMware is kernel dependent so you have to rerun the “runme.pl” to recompile it to the new kernel

9) Install other softwares/packages

- Thunderbird and Lightning (for Email and Calendar)

- Filezilla (for easy file transfer)

- CHM viewer (for viewing my CHM ebooks)

- Kate (a powerful text editor with block selection, gedit has a column mode selection plugin but doesn’t really work)

- CrossOver (for using Windows Office 2k3, Visio, Project on a Linux environment.. I don’t have to worry about my Windows documents, got it free at http://www.codeweavers.com)

- K3B (a powerful burning tool)

- VLC player and other codecs

- VNC viewer and server

- cups-pdf (a PDF printer, solution to make it work: create PDF directory on the home directory, http://linux.derkeiler.com/Mailing-Lists/Ubuntu/2008-11/msg00745.html)

- Brasero (for creating ISO images, http://andieko.info/lang/en/how-to-create-iso-files-in-ubuntu/)

- KSnapshot (replacement for SnagIt, allows region selection)

- sysstat (system performance tools for linux) and ksh (korn shell).. I’ll be needing these to run OS watcher (by Oracle Support) on my machine..

- smbclient, samba-common, samba, libpam-smbpass (so you could share directories)

- sysv-rc-conf (SysV init runlevel config tool for the terminal, so you could have a “chkconfig” just like in RedHat)

- gpaint just like the paint program on Windows

- gwget a download manager which is a front-end for wget

10) Lastly, customize your desktop.. :)

This is the screenshot of my Desktop Environment..

You can see that I’m using my NTFS external drive and the following VMs:

  • 2 node 10gR2 RAC on OEL4.4 x86 with OCFS2 and ASMlib
  • 10gR2 on OEL4.5 x86 with ASM raw devices
  • 10gR2 Data Guard on OEL 4.7 x86-64 both on ASMlib
  • Enterprise Manager Grid Control 10.2.0.4 on OEL 4.4 x86
  • 10gR2 and 11g Database Vault and 10gR2 Audit Vault on OEL 4.4 x86

Screenshot Ubuntu Desktop Environment

Posted in Installation, Linux | Tagged: , , , | 2 Comments »

Oracle-Validated RPM on OEL 4.5

Posted by karlarao on November 7, 2008

This is officially my first post on this blog.. finally after weeks of procrastination ..So here it goes..

Last August 29, 2008 on one of the RSS feeds of OTN TechBlog Sergio Leunissen posted a blog about Oracle Validated being available outside ULN which is very nice to hear.. then after 2 months (October), Alejandro Vargas posted a blog on how to do the Oracle-Validated installation on OEL5..

which then made me want to try it on OEL4, and is just in time because I want to shift to 64bit RAC on Linux (test environment on VMware)..

The whole installation is documented here: Oracle-Validated installation on OEL 4.5

Below are some Metalink Notes about Oracle Validated:

Linux OS Installation with Reduced Set of Packages for Running Oracle Database Server
Doc ID: Note:728346.1

Linux OS Installation with Reduced Set of Packages for Running Oracle Database Server without ULN/RHN
Doc ID: Note:579101.1

Defining a “default RPMs” installation of the Oracle Enterprise Linux (OEL) OS
Doc ID: Note:401167.1

Defining a “default RPMs” installation of the RHEL OS
Doc ID: Note:376183.1

Defining a “default RPMs” installation of the SLES OS
Doc ID: Note:386391.1

The ‘oracle-validated’ RPM Package for Installation Prerequisities
Doc ID: Note:437743.1

Below is the summary of the document:

  • The environment is a virtual machine with 1GB of RAM and two CPUs; the total time for the installation which includes media check, setting up networking, and additional RPMs was 30 minutes :) The good thing about this is the installation only consumed 1.5GB on the /usr filesystem and has a total of 583 RPMs, compared to my other installation (w/o using oracle-validated) which consumed around 2.5GB and has a total of 788 packages. Lesser packages will give you lesser services running on your system that makes the server easier to harden, manage, and maintain.
  • Although all the required RPMs are already installed on the server, you still have to create the needed directories and edit bash_profile, /etc/profile, and set the appropriate shmmax (/etc/sysctl.conf) value for your environment.

Posted in Installation, Linux, Oracle | Tagged: , , , | Leave a Comment »