Operating System - HP-UX
1751865 Members
5876 Online
108782 Solutions
New Discussion юеВ

Re: Disk Layout in HP-UX 11.31 for Oracle 10G ASM

 
SOLVED
Go to solution
Hein van den Heuvel
Honored Contributor

Re: Disk Layout in HP-UX 11.31 for Oracle 10G ASM

Chandan,

There is a lot of infomation on ASM on the web, intro and deep-dive, oracle.com and elsewhere.
Google will quickly identify many such as:
http://www.oracle-base.com/articles/10g/AutomaticStorageManagement10g.php
http://www.youtube.com/watch?v=dxBnKQGTEUM

When going ASM, notably with HP-UX 11.31 as you indicate with native multypath, I would skip LVM. You don't need two cooks in the kitchen. You hand the raw devices/disks to ASM and let it manage the storage.

-Q: How these LUNs will be identified? can it visible through BDF command?

No. BDF is for file system info. When using ASM uou will have to ask ASM (SQL) about current sizes and usages.

-Q: Can it possible to store Oracle Data files (.dbf) in LUNs which is managed by ASM?

There will be no more data files. Instead of datafiles you will create tablespaces pointing to disk-groups in ASM.

Regards,
Hein
Jean-Luc Oudart
Honored Contributor

Re: Disk Layout in HP-UX 11.31 for Oracle 10G ASM

Hi again

please note that the oracle binaries will remain on file system. ASM is for the database.

You will also need to use RMAN for backup (and initial migration to ASM).

I invite you to read the following docs :
http://download.oracle.com/docs/cd/B28359_01/server.111/b31107/asmcon.htm
http://download.oracle.com/docs/cd/B19306_01/backup.102/b14191/rcmasm.htm
http://download.oracle.com/docs/cd/B28359_01/backup.111/b28270/rcmasmmi.htm

Regards
Jean-Luc
fiat lux
Chandan Laskar
Advisor

Re: Disk Layout in HP-UX 11.31 for Oracle 10G ASM

Hi All,

I am summarizing the entire discussion.

According to the attached excel, if I need to configure Oracle ASM then I need to ask following layout from our Server & OS team:

==>/oraclebin --- 68 GB (1 no. of 68 GB LUN) -- For Oracle Binaries.

==>4 No. of 204 GB Physical Volumn for Oracle Tablesspaces.
==>1 No. of 204 GB Physical Volumn for Oracle Archive Log.
==>4 No. of 20 GB Physical Volumn for Oracle Redo Log.

I shall be grateful if you advice me the correctness of my understanding.

Regards,
Chandan Laskar.
Jean-Luc Oudart
Honored Contributor

Re: Disk Layout in HP-UX 11.31 for Oracle 10G ASM

Hi

As you will be using RMAN I would suggest you create and use the FRA (Flash Recovery Area).

The FRA can also be used to host your online and redo log files as well as your backup.

Please review documenation to size the FRA.

http://download.oracle.com/docs/cd/B19306_01/backup.102/b14192/setup005.htm

http://download.oracle.com/docs/cd/B28359_01/backup.111/b28270/rcmarchi.htm

Regards
Jean-Luc
fiat lux
Chandan Laskar
Advisor

Re: Disk Layout in HP-UX 11.31 for Oracle 10G ASM


Hi Jean,

Thanks. In that case my proposed layout will be

==>/oraclebin --- 68 GB (1 no. of 68 GB LUN) -- For Oracle Binaries.

==>4 No. of 204 GB Physical Volumn for Oracle Tablesspaces.
==>2 No. of 204 GB Physical Volumn for Oracle Flash Recovery Area.
==>4 No. of 20 GB Physical Volumn for Oracle Redo Log.

is it OK?

Regards,
Chandan.
Jean-Luc Oudart
Honored Contributor

Re: Disk Layout in HP-UX 11.31 for Oracle 10G ASM

Hi

As I say sizing the FRA is important as you will need to use RMAN (Do you use RMAN currently ?).
Do you backup to tape ?
Do you have RMAN integration with your backup software ?

May be you can outline how you currently backup your database.

Also, do you have a test environment you can test the new solution (even with a smaller database you can extrapolate).

Regards
Jean-Luc
fiat lux
Alzhy
Honored Contributor
Solution

Re: Disk Layout in HP-UX 11.31 for Oracle 10G ASM

Chandan,

First things first - are you a DBA or a SysAdmin? If the latter - do you already know what it entails to have your DB instance on ASM storage?

2nd, Have you or your SysAdmin or StorageAdmin verified that the CX4 is officially supported on HP-UX 11.31 -- if you are using its native multipathing? If you are using Powerpath - then it's a non issue. Give us the powerpath devices of the disks you mentioned and I can walk you through.


Let me know.
Hakuna Matata.
Alzhy
Honored Contributor

Re: Disk Layout in HP-UX 11.31 for Oracle 10G ASM

Well - I can assume you use PowerPath - so here it goes.

ASM needs to be fed easily identifiable/distinguishable "disk device names" so ASM_DISKSTRING can be set to this value. On HP-UX and other UNICES - the easiest would stil be to use a volume manager unless your storage management or multipathing software layer allows you to give them "friendlier names".

On HP-UX, you have 2 choices - LVM and VxVM. But there are strict rules. Each LVOL (LVM) or VOL (VxVM) must reside WHOLLY on each disk. Meaning:

/dev/SAPvg/rASMVOL001 should reside on /dev/rdsk/disk1234 (or the Powerpath device) in the case of LVM.

For VxVM:

/dev/vx/rdsk/SAPdg/ASMVOL001 should be wholly on /dev/rdsk/disk1234 (or the PowerPath device).

So first step is to set up your "ASM" disks on the volume management layer (LVM or VxVM) IF PowerPath does not give you that option to give it custom names. Beleieve me - it is easier to do it this way than just having +ASM be fed with specific disk strings for PowerPath devices.

Then your ASM DiskString can simply be: /dev/SAPvg/rASM* or /dev/vx/rdsk/SAPdg/ASM*

Your SysAdmin should be able to understand what I mean above and should be able to do this.

+ASM will then be able to recognise the "disks" as available for ASM to use.


Hakuna Matata.
Alzhy
Honored Contributor

Re: Disk Layout in HP-UX 11.31 for Oracle 10G ASM

I forgot to mention, ASM will do the "striping" of the disks for you in addition to the striping that the CX4 does on the backend. And depending on your needs.. redo and archive log storage *CAN* be on ASM storage but it may be wise for you to have archive logs on a simple filesystem.

Of course Oracle software tree will need to be on a simple filesystem as well -- but it should be on a dedicated, fast enough disk as it will also house your admin files, ASM, etc.

So - with your spreadsheet - you have 4x20GB disks for redo (ASM), a 68 GB disk for Oracle Software Home and 12x68GB Oracle Data disks (ASM) and 3x68GB for orararch (simple filesystem). This is how I would proceed (LVM recipe):

Set up LVM VG for Oracle software tree - name it say ORAvg with the 68 GB disk and carve an LVOL sized say initially 20GB and make a filesystem and mount as say /opt/oracle or whatever is your standard.

Set up the 4 redolog disks as say REDOvg with 4 wholly contained LVOLS named ASMREDO01 to 04 as I outlined in previous post.

Set up the 12 datafile disks aand name the VG say DATAvg with 12 wholly contained LVOLS named ASMDATA01 to 12 as outlined prior.

Set up the 3 other 68 GB disks as say ARCHvg with one striped filesystem and mount say as /oraarch or whatever your standard is.

Next.. install 10G and ASM, cssd.

Hakuna Matata.
Alzhy
Honored Contributor

Re: Disk Layout in HP-UX 11.31 for Oracle 10G ASM

Now that you have all your disks set up... of course add the oracle id and group (whatever your standard is) and set ownerships of the oracle filesystems AND the LVM raw vols of your ASM diskgroups.

Install 10GR2 (10.2.0.5)... this should be easy 'nuf and straightforward. Install the software only - do nto set up a starter DB!

Next set up ASM and CSSD. This is EASILY done by using "dbca" - so you need X-Windows environment here... You SHOULD know this already...

Launch dbca, and set up ASM. This will also set up the cssd service as well as create the +ASM DB engine for the ASM Layer. You will be asked of course to execute a certain script as root to set up cssd. Towards the end of your dbca ASM configuration session -- it will ask you to create your ASM DiskGroups -- you will now have the option to provide the ASM Disk Strings for your REDO ASM and DATA ASM disks for you to create 2 ASM DIskgroups. Specify EXTERNAL REDUNDANCY so +ASM will not bother mirroring, etc -- it will be only doing striping on the 4 and 12 disks comprising your 2 ASM DIskgroups.

Once that is done.. proceed with enshrining yuor Oracle and +ASM startup scripts and create your Database to peruse of +ASM disk storage.

And that is IT.. welcome to the wonderful world, easy manageabiity and performance of ASM stored Databases.


Caveat! I can't seem to remember if ASYNCIO is enabled by default on HP-UX 11.31 so watch out! and Google.

Hope this helps.
Hakuna Matata.