« October 2007 | Main | December 2007 »

November 2007 Archives

November 13, 2007

10g database with 11g ASM

I just finished a test install on Oracle Enterprise Linux 5; I wanted to check how well ASM 11g  does work with a 10g database.

I did install Linux 2.6.18-8.el5, Oracle 11.1.0.6, ASMLib 2.0.3-1.el5 and Oracle 10.2.0.1 + patch set 10.2.0.3

All the installs completed smoothly on my laptop virtual machine. Note that you can also download Oracle VM  from November 14. You can see here the
Oracle Unveils Oracle® VM
announcement.


At last my configuration includes 11g ASM + 11g database + 10g database, all living together in harmony.

You can download Oracle Enterprise Linux 5, 11g and 10g from Oracle Edelivery page.

November 15, 2007

Mapping ASM disks to Physical Devices

Sometimes you may need to map ASM Disks to its physical devices.
If they are based on ASMLib you will see their ASM name, ie: ORCL:VOL1 when querying v$asm_disk

When running oracleasm querydisk VOL1 you will get in addition the major - minor numbers, that can be used to match the physical device, ie:

[root@orcldb2 ~]# /etc/init.d/oracleasm querydisk VOL1
Disk "VOL1" is a valid ASM disk on device [8, 97]

[root@orcldb2 ~]# ls -l /dev | grep 8, | grep 97
brw-rw----   1 root disk     8,      81 Nov  4 13:02 sdg1

This script can do the job for a group of ASM Disks:

---------- start  here ------------
#!/bin/ksh
for i in `/etc/init.d/oracleasm listdisks`
do
v_asmdisk=`/etc/init.d/oracleasm querydisk $i | awk  '{print $2}'`
v_minor=`/etc/init.d/oracleasm querydisk $i | awk -F[ '{print $2}'| awk -F] '{print $1}' | awk '{print $1}'`
v_major=`/etc/init.d/oracleasm querydisk $i | awk -F[ '{print $2}'| awk -F] '{print $1}' | awk '{print $2}'`
v_device=`ls -la /dev | grep $v_minor | grep $v_major | awk '{print $10}'`
echo "ASM disk $v_asmdisk based on /dev/$v_device  [$v_minor $v_major]"
done
---------- finish here ------------

The output looks like this:

ASM disk "VOL1" based on /dev/sdg1  [8, 97]
ASM disk "VOL10" based on /dev/sdp1  [8, 241]
ASM disk "VOL2" based on /dev/sdh1  [8, 113]
ASM disk "VOL3" based on /dev/sdk1  [8, 161]
ASM disk "VOL4" based on /dev/sdi1  [8, 129]
ASM disk "VOL5" based on /dev/sdl1  [8, 177]
ASM disk "VOL6" based on /dev/sdj1  [8, 145]
ASM disk "VOL7" based on /dev/sdn1  [8, 209]
ASM disk "VOL8" based on /dev/sdo1  [8, 225]
ASM disk "VOL9" based on /dev/sdm1  [8, 193]


If you are using multi-path, you will need an additional step to map the physical device to the multi-path device, for instance if using EMC Powerpath if you want to map sdf1


[root@orclp ~]# /etc/init.d/oracleasm querydisk vol1
Disk "VOL1" is a valid ASM disk on device [8, 81]

[root@orclp ~]# ls -l /dev | grep 8,| grep 81
brw-rw----   1 root disk     8,      81 Oct 29 20:42 sdf1

[root@orclp ~]# powermt display dev=all
...
...
Pseudo name=emcpowerg
Symmetrix ID=000290101698
Logical device ID=0214
state=alive; policy=SymmOpt; priority=0; queued-IOs=0
==============================================================================
---------------- Host ---------------   - Stor -   -- I/O Path -  -- Stats ---
### HW Path                 I/O Paths    Interf.   Mode    State  Q-IOs Errors
==============================================================================
   1 qla2xxx                   sdf       FA  7bB   active  alive      0      0
   2 qla2xxx                   sdq       FA 10bB   active  alive      0      0
...
...

The last step is to check the partition assigned to the emcpower device, ie:

[root@orclp ~]# ls -l /dev/emcpowerg*
brw-------  1 root root 120, 96 Oct 29 20:41 /dev/emcpowerg
brw-------  1 root root 120, 97 Nov 15 13:08 /dev/emcpowerg1



November 27, 2007

ASM Seminar, December 20, Hotel Daniel Hertzeliya

From December 16 to 20 will take place Oracle Week Israel.

On the 20 we have a full day Seminar about ASM Features and Future, I did choose to be the main body of the Seminar a very good course offered until today to a limited number of people, it will be a unique opportunity to get a deep dive into ASM technology.

So if you are around in Israel, I warmly invite you to come over. Hertzeliya, at the Mediterranean sea side  is a very nice place to spend the day discussing High Technology.

This is the seminar program:

Automatic Storage Management Seminar

Part I     - Introduction and Architecture
Part II    - ASM Internals
Part III   - 11g New Features

Part I     - Introduction and Architecture

1 � Introduction

-      What is ASM?
-      Performance benefits
-      Striping/rebalancing
-      Mirroring
-      ASM Tools

2 - ASM Architecture

3 � Concepts

-     Diskgroup
-     Disk
-     AU
-     ASM Files

4 - Diskgroup Fault Tolerance

-      Failuregroup
-      Partnering
-      Mirroring
-      Striping

5 - ASM Setup

6 - Handling Disks & Diskgroups

7 - ASM Filenames

 
Part II    - ASM Internals

1- ASM STORAGE DEVICES

-     Overview of possible devices
-     block- and raw-devices
-     NAS/SAN/NFS
-     LVM

2 - Raw files at different platforms

-     SUN
-     LINUX
-     AIX, HP
                                           
3 � ASMLib

4 - ASM Metadata

5 - ASM Diagnosis & Troubleshooting

-     disk discovery
-     css (cluster manager)
-     Blockdumps

5.1 - Disk Discovery

-     Basics
-     Disk strings on different platforms
-     Troubleshooting

5.2 - CSS issues

5.3 � blockdumps

-     Dbverify
-     ORACLE blockdump
-     Examine diskheader  (kfed)
-     OS blockdump (dd)

5.4 � Troubleshooting

6 - ASM backup


Part III   - ASM 11g New Features



About November 2007

This page contains all entries posted to Alejandro Vargas' Blog in November 2007. They are listed from oldest to newest.

October 2007 is the previous archive.

December 2007 is the next archive.

Many more can be found on the main index page or by looking through the archives.

Powered by
Movable Type and Oracle