Archive

Archive for January, 2009

Adding Route in AIX

January 31st, 2009 sam No comments

The easiest way to change the default route is to do the following:

1. Use smitty route->Remove Static Route or issue the route -f to flush the routing table.

2. You should see output to the screen informing you that routes are being removed.

3. Then issue the netstat -rn command. You should not see the default in the routing table.

4. Issue the smitty mkroute command. This is pretty straight forward and it will it will add

this default route to the ODM database and make it permanent even after a system reboot.

5. Issue another netstat -rn command, you should see your new default route.

Categories: AIX, UNIX Tags:

IP Restriction for Oracle EBS

January 20th, 2009 sam No comments

1. Oracle TNS Listener Security

ENABLE VALID NODE CHECKING

Valid Node Checking allows or denies access from specified IP addresses to Oracle services. To enable Valid Node Checking, set the following parameters in $TNS_ADMIN/sqlnet.ora

tcp.validnode_checking = YES

tcp.invited_nodes = (X.X.X.X, hostname,)

tcp.excluded_nodes = (hostname, X.X.X.X …)

The first parameter turns on Valid Node Checking. The latter two parameters respectively specify the IP

Addresses or hostnames that are permitted to make or are denied from making network connections to Oracle services. Replace X.X.X.X with the middle-tiers’ IP addresses. Middle-tier applications include web servers, forms servers, reports servers, concurrent managers, discoverer, terminal servers, central administrator machines and any remote monitoring tool that uses SQLNet. Note, to use SQLNet clients such as sqlplus, toad, ADI from windows desktop, that desktop cannot use DHCP. Use a static IP address.

Categories: Apps DBA Tags:

Chaning GUEST Password

January 20th, 2009 sam No comments

1.Change the GUEST user statement to the following in $CONFIG_FILE

<oa_user type=”GUEST”>
<username oa_var=”s_guest_user”>GUEST</username>
<password oa_var=”s_guest_pass”>GUEST</password>

Use upper case letters.

3. Run AP Tier Autoconfig.

4. Verify the $FND_TOP/secure/<host>.dbc file the entry for GUEST_USER_PWD is
set in the same letter case.

Categories: Apps DBA Tags:

Patch fails with error ” Error occurred in version checking”

January 20th, 2009 sam No comments

Patch fails with error “Error occurred in version checking”.

I was apply patch on the test instance, before applying on the production instance. While apply the patch I found this error “Error occurred in version checking”, I had searched on the internet I couldnt find the solution. My friend told me redowload the patch and try again. I had redownloaded the patch from the metalink. Then I had copied it to the test server through ftp and extracted the Patch. Then i had started patching through adpatch utility. It was completed successfully.

So, What may be the problem. First time I had downloaded the patch archive which was corrupted and some files where missing. Next time, it was ok. So, if the files are missing the adpatch will give this error “Error occurred in version checking”.

Categories: Apps DBA Tags:

Study Engineering Classes online.

January 19th, 2009 sam No comments

While i was Surfing the internet i had found a good site. I had recalled my Enigneering days where i used to study the subject.

What is NPTEL?

http://nptel.iitm.ac.in/

NPTEL is an acronym for National Programme on Technology Enhanced Learning which is an initiative by seven Indian Institutes of Technology (IIT Bombay, Delhi, Guwahati, Kanpur, Kharagpur, Madras and Roorkee) and Indian Institute of Science (IISc) for creating course contents in engineering and science.

NPTEL as a project originated from many deliberations between IITs, Indian Institutes of Management (IIMs) and Carnegie Mellon University (CMU) during the years 1999-2003. A proposal was jointly put forward by five IITs (Bombay, Delhi, Kanpur, Kharagpur and Madras) and IISc for creating contents for 100 courses as web based supplements and 100 complete video courses, for forty hours of duration per course. Web supplements were expected to cover materials that could be delivered in approximately forty hours. Five engineering branches (Civil, Computer Science, Electrical, Electronics and Communication and Mechanical) and core science programmes that all engineering students are required to take in their undergraduate engineering programme in India were chosen initially. Contents for the above courses were based on the model curriculum suggested by All India Council for Technical Education (AICTE) and the syllabi of major affiliating Universities in India.

Objective

The main objective of NPTEL program is to enhance the quality of engineering education in the country by developing curriculum based video and web courses. This is being carried out by seven IITs and IISc Bangalore as a collaborative project. In the first phase of the project, supplementary content for 129 web courses in engineering/science and humanities have been developed. Each course contains materials that can be covered in depth in 40 or more lecture hours. In addition, 110 courses have been developed in video format, with each course comprising of approximately 40 or more one-hour lectures. In the next phase other premier institutions are also likely to participate in content creation.

http://nptel.iitm.ac.in/

Categories: Uncategorized Tags:

HMC Commands

January 16th, 2009 ather No comments

5 useful HMC commands to help make managing your p5 systems easier.

1.) All slots configuration – identifies the type of adapter in each slot.

#lssyscfg -r sys -F name | while read mngsys; do lshwres -r io -rsubtype slot -F unit_phys_loc:phys_loc:lpar_name:description -header -m $mngsys | sed “s/^/$mngsys:/”; done

2.) CPU usage by LPAR’s:

#lssyscfg -r sys -F name | while read mngsys; do lshwres -r proc -level lpar -F lpar_name:curr_min_procs:curr_procs:curr_max_procs:pend_min_procs:pend_procs:pend_max_procs:run_procs -header -m $mngsys | sed “s/^/$mngsys:/”; done

3.) Memory usage by LPARs:

#lssyscfg -r sys -F name | while read mngsys; do lshwres -r mem -level lpar -F lpar_name:curr_min_mem:curr_mem:curr_max_mem:pend_min_mem:pend_mem:pend_max_mem:run_min_mem:run_mem -header -m $mngsys | sed “s/^/$mngsys:/”; done

4.) Total CPU configuration on managed P5 systems:

#lssyscfg -r sys -F name | while read mngsys; do lshwres -r proc -level sys -F configurable_sys_proc_units:curr_avail_sys_proc_units:pend_avail_sys_proc_units:installed_sys_proc_units:deconfig_sys_proc_units:min_proc_units_per_virtual_proc:max_virtual_procs_per_lpar -header -m $mngsys | sed “s/^/$mngsys:/”; done

5.) Total memory configuration on managed P5 systems:

#lssyscfg -r sys -F name | while read mngsys; do lshwres -r mem -level sys -F configurable_sys_mem:curr_avail_sys_mem:pend_avail_sys_mem:installed_sys_mem:deconfig_sys_mem:sys_firmware_mem:mem_region_size -header -m $mngsys | sed “s/^/$mngsys:/”; done

Categories: Uncategorized Tags:

How-To Configure Gigabit Etherchannel

January 16th, 2009 ather No comments

How-To Configure Gigabit Etherchannel

What is etherchannel?
Etherchannel is the process of grouping several ethernet ports together to increase the amount of bandwidth. Etherchannel configuration must be performed on the host and the switch. This post covers how to configure etherchannel on your AIX system using 2 gigabit ethernet adapters.


Step #1:
Down and detach the two gigabit ethernet adapters you will be using for the etherchannel. For simplicity this How-To assumes your gigabit adapters are en0 & en1, in reality your adapters may be different but the configuration process is still the same.

#ifconfig en0 down detach
#ifconfig en1 down detach

Step #2:
Use “smitty chinet” to remove existing IP address configurations from en0 & en1 and set the state of en0 & en1 to “detach”.

#smitty chinet

Step #3:
Now that your two ethernet adapters have been deconfigured and set to a detached state, you can create the actual etherchannel. Once the etherchannel is created you will see an additional ethernet adapter “en2″.

#smitty etherchannel

Select: Add an Etherchannel/Link Aggregation
Select: en0 and en1 with the F7 key
Set: Enable Gigabit Ethernet Jumbo Frames to YES

Step #4:
Set speed and duplex settings for your etherchannel adapter en2.

#smitty chgenet
Select: en2 and set the speed to 1000 Full_Duplex

Step #5:
Configure IP address and activate your etherchannel adapter en2. To properly complete this step you will need to have the IP address, netmask and gateway information handy. If you are unsure of this information, consult your network administrator before proceeding.

#smitty tcpip

Select: “Minimum Configuration”
Select: ent2
Input:
IP address, Netmask & Gateway information.

Step #6:
Now that your AIX host is properly configure for etherchannel, it is time to give your network administrator a call to have him configure the switch for etherchannel.

Categories: Uncategorized Tags:

Linux lvm – Logical Volume Manager

January 13th, 2009 sam No comments

Note : This article is from http://www.linuxconfig.org/Linux_lvm_-_Logical_Volume_Manager

This article describes a basic logic behind a Linux logical volume manager by showing real examples of configuration and usage. Despite the fact that Debian Linux will be used for this tutorial, you can also apply the same command line syntax with other Linux distributions such as Red Hat, Mandriva, SuSe Linux and others.

Contents

[hide]


This is what we are going to do

Image:lvm.jpg


Create Partitions

For this Linux lvm example you need a unpartitioned hard disk /dev/sdb. First you need to create physical volumes. To do this you need partitions or a whole disk. It is possible to run pvcreate command on /dev/sdb, but I prefer to use partitions and from partitions I later create physical volumes.

fdis -l

Use your preferred partitioning tool to create partitions. In this example I have used cfdisk.

cfdisk

Partitions are ready to use.

fdisk -l


Create physical volumes

Use the pvcreate command to create physical volumes.

# pvcreate /dev/sdb1<br /># pvcreate /dev/sdb2<br /></pre> <p>The pvdisplay command displays all physical volumes on your system. </p> <pre># pvdisplay<br /></pre> <p>Alternatively the following command should be used: </p> <pre># pvdisplay /dev/sdb1<br /></pre> <dl><dd><a href="http://www.linuxconfig.org/Image:Logicalvolumemanager05.jpg" class="image" title="Create physical volumes with pvcreate"><img alt="Create physical volumes with pvcreate" longdesc="/Image:Logicalvolumemanager05.jpg" src="http://www.linuxconfig.org/images/f/fc/Logicalvolumemanager05.jpg" width="508" height="368" /></a> </dd></dl> <a name="Create_Virtual_Group"></a><h2> <span class="mw-headline">Create Virtual Group</span></h2> <p>At this stage you need to create a virtual group which will serve as a container for your physical volumes. To create a virtual group with the name "mynew_vg" which will include /dev/sdb1 partition, you can issue the following command: </p> <pre># vgcreate mynew_vg /dev/sdb1<br /></pre> <p>To include both partitions at once you can use this command: </p> <pre># vgcreate mynew_vg /dev/sdb1 /dev/sdb2<br /></pre> <dl><dd><a href="http://www.linuxconfig.org/Image:Logicalvolumemanager06.jpg" class="image" title="Create Virtual Group"><img alt="Create Virtual Group" longdesc="/Image:Logicalvolumemanager06.jpg" src="http://www.linuxconfig.org/images/0/00/Logicalvolumemanager06.jpg" width="508" height="329" /></a> </dd></dl> <p>Feel free to add new physical volumes to a virtual group by using the vgextend command. </p> <pre># vgextend mynew_vg /dev/sdb2<br /></pre> <dl><dd><a href="http://www.linuxconfig.org/Image:Logicalvolumemanager07.jpg" class="image" title="virtual group extend"><img alt="virtual group extend" longdesc="/Image:Logicalvolumemanager07.jpg" src="http://www.linuxconfig.org/images/6/60/Logicalvolumemanager07.jpg" width="508" height="329" /></a> </dd></dl> <a name="Create_Logical_Volumes"></a><h2> <span class="mw-headline">Create Logical Volumes</span></h2> <p>From your big cake (virtual group) you can cut pieces (logical volumes) which are treated as a partitions for your linux system. To create a logical volume, named "vol01", with a size of 400 MB from the virtual group "mynew_vg" use the following command: </p> <ul><li> create a logical volume of size 400 MB -L 400 </li><li> create a logical volume of size 4 GB -L 4G </li></ul> <pre># lvcreate -L 400 -n vol01 mynew_vg<br /></pre> <dl><dd><a href="http://www.linuxconfig.org/Image:Logicalvolumemanager08.jpg" class="image" title="Create Logical Volumes"><img alt="Create Logical Volumes" longdesc="/Image:Logicalvolumemanager08.jpg" src="http://www.linuxconfig.org/images/e/e9/Logicalvolumemanager08.jpg" width="508" height="238" /></a> </dd></dl> <p>In this case you have created a logical volume with a size of 1GB and the name of vol02 </p> <pre># lvcreate -L 1000 -n vol02 mynew_vg<br /></pre> <dl><dd><a href="http://www.linuxconfig.org/Image:Logicalvolumemanager09.jpg" class="image" title="create logical vol01"><img alt="create logical vol01" longdesc="/Image:Logicalvolumemanager09.jpg" src="http://www.linuxconfig.org/images/a/a0/Logicalvolumemanager09.jpg" width="508" height="420" /></a> </dd></dl> <p>Note the free size in virtual group. </p> <dl><dd><a href="http://www.linuxconfig.org/Image:Logicalvolumemanager10.jpg" class="image" title="display virtual group"><img alt="display virtual group" longdesc="/Image:Logicalvolumemanager10.jpg" src="http://www.linuxconfig.org/images/6/6a/Logicalvolumemanager10.jpg" width="508" height="303" /></a> </dd></dl> <a name="Create_File_system_on_logical_volumes"></a><h2> <span class="mw-headline">Create File system on logical volumes</span></h2> <p>The logical volume is almost ready to use. All you need to do is to create a filesystem.: </p> <pre># mkfs.ext3 -m 0 /dev/mynew_vg/vol01<br /></pre> <p>the -m option specifies the percentage reserved for the super-user, set this to 0 if you wish not to waste any space, the default is 5%. </p> <dl><dd><a href="http://www.linuxconfig.org/Image:Logicalvolumemanager11.jpg" class="image" title="create file system"><img alt="create file system" longdesc="/Image:Logicalvolumemanager11.jpg" src="http://www.linuxconfig.org/images/4/46/Logicalvolumemanager11.jpg" width="508" height="277" /></a> </dd></dl> <a name="Edit_.2Fetc.2Ffstab"></a><h2> <span class="mw-headline">Edit /etc/fstab</span></h2> <p>Add a entry for your newly created logical volume into /etc/fstab </p> <dl><dd><a href="http://www.linuxconfig.org/Image:Logicalvolumemanager12.jpg" class="image" title="edit /etc/fstab"><img alt="edit /etc/fstab" longdesc="/Image:Logicalvolumemanager12.jpg" src="http://www.linuxconfig.org/images/4/45/Logicalvolumemanager12.jpg" width="508" height="277" /></a> </dd></dl> <a name="Mount_logical_volumes"></a><h3> <span class="mw-headline">Mount logical volumes</span></h3> <p>Before you mount do not forget to create a mount point. </p> <pre># mkdir /home/foobar<br /></pre> <dl><dd><a href="http://www.linuxconfig.org/Image:Logicalvolumemanager13.jpg" class="image" title="mount logical volumes"><img alt="mount logical volumes" longdesc="/Image:Logicalvolumemanager13.jpg" src="http://www.linuxconfig.org/images/a/ae/Logicalvolumemanager13.jpg" width="508" height="108" /></a> </dd></dl> <a name="Extend_logical_volume"></a><h2> <span class="mw-headline">Extend logical volume</span></h2> <p>The biggest advantage of logical volume manager is that you can extend your logical volumes any time you are running out of the space. To increase the size of a logical volume by another 800 MB you can run this command: </p> <pre># lvextend -L +800 /dev/mynew_vg/vol01<br /></pre> <dl><dd><a href="http://www.linuxconfig.org/Image:Logicalvolumemanager14.jpg" class="image" title="Image:logicalvolumemanager14.jpg"><img alt="Image:logicalvolumemanager14.jpg" longdesc="/Image:Logicalvolumemanager14.jpg" src="http://www.linuxconfig.org/images/b/b4/Logicalvolumemanager14.jpg" width="616" height="108" /></a> </dd></dl> <p>The command above does not actually increase the physical size of volume, to do that you need to: </p> <pre># resize2fs  /dev/mynew_vg/vol01<br /></pre> <p>Look at the figure below to see what problems you may encounter when extending a volume: </p> <dl><dd><a href="http://www.linuxconfig.org/Image:Logicalvolumemanager15.jpg" class="image" title="extend logical volume"><img alt="extend logical volume" longdesc="/Image:Logicalvolumemanager15.jpg" src="http://www.linuxconfig.org/images/6/67/Logicalvolumemanager15.jpg" width="616" height="537" /></a> </dd></dl> <a name="Remove_logical_volume"></a><h2> <span class="mw-headline">Remove logical volume</span></h2> <p>The command lvremove can be used to remove logical volumes. Make sure that before you attempt to remove logical volumes your logical volume does not have any valuable data stored on it, moreover make sure the volume is unmounted. </p> <pre># lvdisplay<br /></pre> <dl><dd><a href="http://www.linuxconfig.org/Image:Logicalvolumemanager16.jpg" class="image" title="display volume group"><img alt="display volume group" longdesc="/Image:Logicalvolumemanager16.jpg" src="http://www.linuxconfig.org/images/b/ba/Logicalvolumemanager16.jpg" width="616" height="394" /></a> </dd></dl> <pre># lvremove /dev/mynew_vg/vol02<br />
remove logical volume


Other Topics


Discussion

Alexander.Orlov 10:35, 30 August 2007 (CDT) Any scenario ideas how/if/why LVM can be combined with GFS or OCFS? Will LVM become obsolete when the networks are fast enough to carry large amounts of data?

A FAQ list for the tutorial

  • Is it possible/advisable to use LVM volumes as swap?
  • Is it possible and/or advisable to use LVMs for external USB storage devices used for backups?
  • Whether it is a good idea to use encrypted LVM volumes; especially encrypted LVM software containing volumes.

I have no answers to these questions yet. Alexander.Orlov 10:35, 30 August 2007 (CDT)


External Links

Technorati Tags:

Categories: Linux Tags:

Installing software from RPM packages

January 10th, 2009 sam No comments

< What is RPM >

RPM
stands for Red Hat Package Manager. However, these days RPM isn’t only
Red Hat specific because many other Linux distros use RPM for managing
their software. For example, both Mandriva and SuSE use RPM for
software management. With RPM, you can install, upgrade and uninstall
software on Linux, as well as keep track of already installed RPM
packages on your system. This can be done because RPM keeps a database
of all software that was installed with it.

RPM uses software packages that have (surprise) the .rpm
extension. An RPM package contains the actual software that gets
installed, maybe some additional files for the software, information on
where the software and its files get installed, and a list of other
files you need to have on your system in order to run this specific
piece of software.

When you use RPM for installing the
software package, RPM checks if your system is suitable for the
software the RPM package contains, figures out where to install the
files the package provides, installs them on your system, and adds that
piece of software into its database of installed RPM packages.

Note
that different Linux distros may keep their software and the files
related to that software in different directories. That’s why it’s
important to use the RPM package that was made for your distribution.
For example, if you install a SuSE specific software package on a Red
Hat system, RPM may put the files from that package into wrong
directories. In the worst case the result is that the program doesn’t
find all the files it needs and doesn’t work properly.

There
are some good graphical programs for installing RPM packages, but in
this tuXfile I’ll discuss the fool-proof command line method for
installing software. Note that you need to be root when installing
software in Linux. When you’ve got the root privileges, you use the rpm command with appropriate options to manage your RPM software packages.

< Installing and upgrading RPM packages >

For installing a software package, you use the rpm command with -i option (which stands for “install”). For example, to install an RPM package called software-2.3.4.rpm:
# rpm -i software-2.3.4.rpm

If you already have some version installed on your system and want to upgrade it to the new version, you use -U option instead (which stands for “upgrade”). For example, if you have software-2.3.3.rpm installed and want to upgrade it:
# rpm -U software-2.3.4.rpm

If
all goes well, the files in your package will get installed into your
system and you can happily run your new program. But where is your new
program? Note that rpm doesn’t usually create a special
directory for the software package’s files. Instead, the different
files from the package get placed into appropriate existing directories
on your Linux system. Executable programs go usually into /bin,
/usr/bin, /usr/X11/bin, or /usr/X11R6/bin after installing with rpm.

But
how can you run your new program if you don’t know where the executable
is? Sometimes the program gets automatically added into your menu, but
usually you can just run the program by typing its name at the command
prompt. In most cases you don’t have to know where the program was
installed because you don’t have to type the whole path when running
the program, only the program’s name is needed.

< Error: failed dependencies >

Issuing rpm -i or rpm -U
installs the software and you can start using it. RPM is very easy when
it works. However, RPM can be a devil when it doesn’t work. There are
many reasons why installing software goes wrong, but usually it’s
because of failed dependencies.

You see, many Linux
programs need other files or programs in order to work properly. In
other words, a certain piece of software depends on other
software. When you try to install an RPM package, RPM automatically
checks its database for other files that the software being installed
needs. If RPM can’t find those files in its database, it stops
installing the software and complains about failed dependencies.

When
you get a dependency error, RPM spits out a list of files the program
needs. Take a look at the list. The files in the list are probably ones
you don’t have on your system, or files you have but are wrong
versions. When you get the dreaded dependency error, you’ll have to
find the files RPM complains about, install or upgrade those files
first, and then try to install the package you were installing in the
first place.

However, sometimes RPM is just plain stupid. You see, only software that was installed with RPM
gets added into the database of installed software. This means that if
you’ve used some other method for installing a certain program, RPM
doesn’t know the program exists on your system. In this case RPM
complains about failed dependencies even when the needed program does
exist on your system and there are no failed dependencies!

If you know the needed files are there and RPM is just being stupid, you can ignore the dependencies. Use the --nodeps option if you want to tell RPM not to check any dependencies before installing the package:
# rpm -i software-2.3.4.rpm --nodeps

This
forces RPM to ignore dependency errors and install software anyway, but
note that if the needed files are missing anyway, the program won’t
work well or won’t work at all. Use the --nodeps option only when you know what you’re doing or when you’re bone-headed enough ;-)

< Removing software installed with RPM >

To remove software that was installed with RPM, you use the -e option (which stands for “erase”):
# rpm -e software-2.3.4

Note that when installing software, you have to type the name of the RPM package. But when removing software, you don’t have to type the whole name of the package that contained the software. You don’t have to type the .rpm
extension when removing software. Probably you don’t have to type the
version number, either, so this would do exactly the same as the above:
# rpm -e software

This rpm -e
command uses the RPM database to check where all the files related to
this software were installed and then automatically removes all of
those files. After removing the program files, it also removes the
program from the database of installed software.

This is why it’s so important you NEVER remove RPM software manually (for example, deleting single files with rm).
If you just run around your system randomly deleting files that were
installed with RPM, you’ll get rid of the software but RPM doesn’t know
it and doesn’t remove the software package from its database. The
result is that RPM still thinks the program is installed on your
system, and you may run into dependency problems later.

If you used RPM for installing a certain piece of software, use RPM for removing that piece of software, too!

< Querying the RPM database >

As
you already know, the RPM database contains a list of all installed RPM
packages on your system. You can query this database to get info of the
packages on your Linux system. To query a single package, you use the -q option. For example, to query a package whose name is “software”:
# rpm -q software

After issuing this command, rpm either tells you the version of the package, or that the package isn’t installed.

If you want a list of all packages installed on your system, you’ll have to query all with -qa:
# rpm -qa

Most likely this list will be very long, so you’ll need a way to scroll it. The best way is to pipe the list to less:
# rpm -qa | less

If you’re looking for packages whose names contain a specific word, you can use grep
for finding those packages. For example, to get a list of all installed
RPM packages whose names contain the word “kde”, you could do something
like this:
# rpm -qa | grep kde

The above command makes rpm list all packages in its database and pass the list to grep. Then grep checks every line for “kde” and finally shows you all the lines that contain the word “kde”.

Categories: Linux Tags:

Raw Devices on RHEL 5 or OEL 5

January 6th, 2009 sam No comments

Raw Devices on RHEL 5 or OEL 5

Be aware that raw device technology had been deprecated in RedHat Linux 5 (RHEL5) and Oracle Enterprise Linux 5 OEL5). / Linux Kernel 2.6
Does this mean we cannot use Rawdevices in RHEL5 or OEL5? As always there’s a workaround to make this happen by means of UDEV technique and Oracle 11g & 10gR2 has options to configure components to access the block devices directly instead of rawdevices.
Before we jump into the workaround, let see what exactly is missing at the O/S level w.r.to rawdevices in RHEL5 and OEL5,

  1. /etc/sysconfig/rawdevices file doesn’t exist
  2. /dev/raw doesn’t exist.
  3. Service by the name “rawdevices” doesn’t exist.

Trying to run the command “service rawdevices restart” will result in “rawdevices: unrecognized service”.

Now lets see an example of configuring rawdevices in RHEL4 and RHEL5.

RHEL4

To map a rawdevice to a block device /dev/sdf1

Step 1: Make an entry in /etc/sysconfig/rawdevices file

/dev/raw/raw1 /dev/sdf1

Step 2: For the mapping to have immediate effect, restart the rawdevices service.

$>service rawdevices restart

Step 3: Change ownership to oracle user

$>chown oracle:dba /dev/raw/raw1

RHEL5 / OEL5

Step 1: Make an entry in /etc/udev/rules.d/60-raw.rules or create your own file viz., /etc/udev/rules.d/<any_no_above_60>-oracle-raw.rules (eg. 63-oracle-raw.rules)

ACTION==”add”, KERNEL==”sdf1″, RUN+=”/bin/raw /dev/raw/raw1 %N”

Step 2: For the mapping to have immediate effect, run below command

$>/bin/raw /dev/raw/raw1 /dev/sdf1

So if you or your system administrator have plans to upgrade an existing release of RHEL or OEL to RHEL5 / OEL5 or planning to perform a new installation of RAC on RHEL5 / OEL5, wherein rawdevices will be / are used, please do take additional care.

For more information you can refer to following
Metalink notes

RAC FAQ: 220970.1 (look for “What storage option should I use for RAC 10g on Linux? ASM / OCFS / Raw Devices / Block Devices / Ext3 ?”)
How to map raw device on RHEL5 and OEL5 – Note 443996.1
Linux 2.6 Kernel Deprecation Of Raw Devices – Note:357492.1
How to install Oracle Clusterware with shared storage on block devices – Note:401132.1

Blogs / Forums
http://frits.homelinux.com/wordpress/?p=27 – Thanks to Frits Hoogland for sharing this information and also for the article on configuring 11g with ASM on CentOS on VMware.
http://www.webservertalk.com/archive221-2007-5-1884747.html – Thanks to Rupan for the explanation on Rawdevices and Block Devices.

Technorati Tags:

Categories: DBA, Linux Tags: