Operating System - HP-UX
1753666 Members
6132 Online
108799 Solutions
New Discussion юеВ

Oracle 11g using ASM raw or slvm

 
SOLVED
Go to solution
Michael O'brien_1
Regular Advisor

Oracle 11g using ASM raw or slvm

Hi,

I am planning on installing Oracle 11g on HP-UX 11i v 3.1, using ASM as the storage option. The two options I have is to put the ASM on slvm raw lv's or use ASM on raw device files. Other than the issues of using SNOR for disk reconfiguration. Is there any major benefits of using an ASM raw configuration?

Thanks
Michael
10 REPLIES 10
Carsten Krege
Honored Contributor
Solution

Re: Oracle 11g using ASM raw or slvm

I'm assuming that you plan to use a RAC configuration, because you're talking of SNOR and SLVM. Please note that for single instance Oracle you can only use ASM on LVM, see http://docs.hp.com/en/15416/ASMSupportWhitepaper.pdf

For RAC configs, the paper http://docs.hp.com/en/8988/ASM-SGeRAC-tk.pdf is relevant which states:

Why ASM over SLVM?

- ASM Lacks Multipathing: The ASM-over-SLVM configuration provides multipathing for ASM disk groups (using LVM PV Links or storage based multipathing)

- ASM-over-SLVM enables the HP-UX devices used for disk group members to have the same names on all nodes, easing ASM configuration

- ASM-over-SLVM protects ASM data against inadvertent overwrites from nodes inside/outside the cluster - If the ASM disk group members are raw disks, there is no protection currently preventing these disks from being incorporated into LVM or VxVM volume/disk groups.

Disadvantages

- Additional configuration and management tasks imposed by the extra layer of volume management (administration of volume groups, logical volumes, physical volumes)

- Performance impact of extra layer of volume management.



One other item to be mentioned: If you plan to provide redundancy by doing mirroring, it is unsupported (by Oracle) to use LVM based mirroring with ASM: Mirroring has to be done on the ASM layer although the performance impact doing it this way round is awful.

Carsten
-------------------------------------------------------------------------------------------------
In the beginning the Universe was created. This has made a lot of people very angry and been widely regarded as a bad move. -- HhGttG
Turgay Cavdar
Honored Contributor

Re: Oracle 11g using ASM raw or slvm

Using SLVM gives good managability options to system administrators but need to shutdown oracle instances except one host is the major issue.

If you will do a good documentation about disks there is no bad concern for ASM on raw disk device files. (In real life i see some stories, some admins use ASM disks for LVM and crash the db. But these kind of problems result from lack of documentation or lask of information about the system)

I want to add something on Carsten comments:
1-)"ASM Lacks Multipathing" is not an issue for hp-ux 11.31 which already have native multipathing.
2-)Generally when using raw disk device files new links or device files created under /dev/oracle directory, so device file names can be same on all nodes.
3-)pvcreate command actually recognize the ASM disks and it does not destroy the ASM structures if you dont use -f (force) option. I don't know the vxvm behaviour.

Michael O'brien_1
Regular Advisor

Re: Oracle 11g using ASM raw or slvm

Hi,

Thanks for your reply's all good stuff, one thing which did occur to me was regarding hp-ux v3.1 multipathing. If I use ASM with raw outside of lvm does multipathing provide pv links reduncancy as well as load balancing. Or to put is another way does using SLVM and ASM provide both native multipathing through v3.1 and link redundancy through PV links. Will v3.1 native multipathing remove the need for PV links?

Thanks
Michael
Carsten Krege
Honored Contributor

Re: Oracle 11g using ASM raw or slvm

11iv3 provides native multipathing, therefore LVM pv links are not required. Turgay is correct that the multipathing argument does not play a role on 11iv3 (I just quoted the 11iv2 section from the document; there is a similar section for 11iv3).
Native multipathing for 11iv3 provides both: availability and redundancy.

See http://docs.hp.com/en/native-multi-pathing/native_multipathing_wp_AR0803.pdf

Carsten

-------------------------------------------------------------------------------------------------
In the beginning the Universe was created. This has made a lot of people very angry and been widely regarded as a bad move. -- HhGttG
Carsten Krege
Honored Contributor

Re: Oracle 11g using ASM raw or slvm

> availability and redundancy.

I meant to say: redundancy and load balancing.

Carsten
-------------------------------------------------------------------------------------------------
In the beginning the Universe was created. This has made a lot of people very angry and been widely regarded as a bad move. -- HhGttG
Michael O'brien_1
Regular Advisor

Re: Oracle 11g using ASM raw or slvm

Thank you both for your replies, it was very useful stuff, I guess we will be probably be using ASM with raw and potentially using thin provisioning. I'll make sure I create the sudo devices files in the /dev/oracle directory.

Cheers
Michael
Steven E. Protter
Exalted Contributor

Re: Oracle 11g using ASM raw or slvm

Shalom,

I would avoid ASM at all costs.

ASM gives Oracle direct control of disks.

It takes away the systems administrators ability to tune I/O and assumes Oracle knows better.

This is a bad assumption.

I would go with raw and maintain control of construction and configuration of disks provided to Oracle.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
VK2COT
Honored Contributor

Re: Oracle 11g using ASM raw or slvm

Hello,

Some nice comments were posted here already.

I recently did a presentation on Oracle ASM versus HP-UX LVM. I used collective knowledge I found on the net so I cannot claim full glory for it.
Extracts from my slides:

ASM Pros:
* ASM provides some file system and volume
management capabilities for Oracle database
files only. These include DB control files,
redo logs, archived redo logs, data files,
spfiles and Oracle Recovery Manager (RMAN)
backup files.

* File-level striping/mirroring.

* Ease of manageability. Instead of running
LVM software, run an ASM instance, a new
type of "instance" that largely consists of
processes and memory and stores its
information in the ASM disks it is managing.

* Attempts to identify the configuration
errors.

* Gives Oracle Corporation control over the
storage system, so they promote it heavily.

* No large Unix-level administration needed.

* Provides a single point of support
(Oracle) so there is no ├в finger-pointing├в .

* Provides easy management of block devices
(raw partitions).

* Automatically moves hot blocks to the
outside of the disk.

* Vendor and operating system neutral.

* Included in the Oracle license so no
additional cost for the software or its
support.

* Supports very large disk groups and
datafiles.

* Database File System with performance of
RAW I/O.

* Supports clustering (RAC) and single
instance.

* Automatic data distribution.

* Memory requirements for an ASM instance
are small. 100 MB of RAM is typically all
that is required to run an ASM instance on a
production server.

* On-line add/drop/resize disk with minimum data relocation.

* Automatic file management.

* Flexible mirror protection.

* Inode locks not applicable to ASM.

* Ability to grow diskgroup capacity on the
fly.

* Supports multiple database instances
running on a single host, and does not have
its own data dictionary.

And in Oracle 11g, extra features:

* Fast mirror resynchronization.

* Preferred mirror read in a cluster.

* Support for large ALU.

* Variable size extents.

* Rolling upgrade and patching.

* Table level migration wizard in EM.

* New ASMCMD commands.

* New SYSADM privilege ├в separate from the
SYSDNA privilege.

* More flexible FORCE options to MOUNT or
DROP disk groups.

and so on.


ASM Cons:
* ASM cannot be used for Oracle executables
and non-database files.

* ASM files can only be managed through an
Oracle application such as RMAN. This can be
a weakness if you prefer third-party backup
software or simple backup scripts. Cannot
store CRS files or database software. Cannot
manage ASM through standard Unix tools.

* Potentially disrupts the balance of power
between the Unix Systems Administration
groups, and the Database/DBA groups.
Traditionally the former group manages
disks, hardware, and the operating system
level, leaving the DBAs to coordinate with
them for new resources. This would change
that balance, which could cause some
resistance.

* ASM does not have multi-pathing
capability. It assumes the underlying O/S
will provide this functionality. In HP-UX,
multi-pathing is provided by a Volume
Manager feature such as PVLinks in the HP-UX
Logical Volume Manager (LVM), native
multipathing in HP-UX 11.31, or DMP in
Veritas Volume Manager from Symantec (VxVM),
or by other third-party software such as
Securepath or Powerpath.

* ASM is still in the enterprise computing,
relatively new. There are a number of
vendors whose core business has been in the
logical volume manager/file system space for
years. Often, maturity matters a lot when it
comes to software systems, reliability, and
proven success rates.

* New technology to get familiar with.

* Automatic Storage Management load balances
file activity by uniformly distributing file
extents across all disks in a disk group.
For this technique to be effective it is
important that the disks used in a disk
group be of similar performance
characteristics.

There may be situations where it is
acceptable to temporarily have disks of
different sizes and performance co-existing
in a disk group (for example, when migrating
from an old set of disks to a new set of
disks). The new disks would be added and the
old disks dropped. As the old disks are
dropped, their storage is migrated to the
new disks while the disk group in online.

* There is no shared awareness of LUN use between ASM and LVM or VxVM. It means that the system administrator must be careful not to accidentally allocate a LUN already allocated for LVM or VxVM use to ASM use (or vice-versa). ON the positive side, pvcreate(1M) recognises ASM disk and will not
overwrite them unless force flag is used.

* ASM is not an enterprise-class file system
(not for all type of data).

* ASM is a proprietary solution.

* The customer is dependant on the
reliability of the new ASM code stack.

* Does not offer network monitoring.

* Be careful about ASM hidden parameters.

* Everything is single threaded through one process at a very low level (I found this claim somewhere and am trying to verify it).

* If one uses Oracle ASM and CRS, they will
still require a 3rd party clustering
solution to support the non-Oracle data.
They will then have to manage multiple
clustering solutions.

* DBAs must still watch and then perform the
task of adding and removing disks to an ASM
disk group when needed. This leads back to
the problem of DBAs under allocating, and
worse yet, over allocating disk storage,
just to be safe, which recreates the problem
of wasted space and leads to higher than
needed storage costs.

This is where thin provisioning comes into
play. Thin provisioning will automatically
allocate on a just-enough and just-in-time
basis which relieves the DBA from both
having to watch and then add or remove disk
to a disk group. Oracle's ASM and thin
provisioning could be combined to offer a
complete, end-to-end, storage solution.
Oracle's ASM feature would create, allocate,
place, and rebalance data files for
performance and thin provisioning would
dedicate disk space on the fly and only when
needed.

* Configuration details and performance
metrics are exposed via V$ views. Other
possibilities are the command line
interface, asmcmd and the graphical
interface of OEM.

Metadata are however partially hidden to the
end user. That is the mapping between
physical storage, ASM allocation units, and
database files is not completely exposed via
V$ views. It was found that is possible to
query such information via undocumented X$
tables. For example, it is possible to
determine the exact physical location on
disk of each extent (or mirror copies of
extents) for each file allocated on ASM (and
if needed access the data directly via the
O/S). This can be used by Oracle DBAs
wanting to extend their knowledge of the
inner workings of the ASM or wanting to
diagnose hotspots and ASM rebalancing issues.

and so on.

I hope it helps,

VK2COT
VK2COT - Dusan Baljevic
Michael O'brien_1
Regular Advisor

Re: Oracle 11g using ASM raw or slvm

VK2COT,

Thank you very much for reply, that was the type of information I was looking for. Your response makes the itrc forums such a valuable and great resource.

Cheers
Michael