Configure ASM process on Red Hat Linux6.5

Source: Internet
Author: User
ASM (AutomaticStorageManagement) is a software storage solution officially recommended by Oracle. Since the 10g version was officially launched, the position of ASM in the software architecture is constantly improving. The first step is to strip ASM from the database layer at 11 GB and manage it in GridInfrastructure. ASMDisk becomes the basic component of ACFS (AutomaticClusterFileSystem. Original RAWD

ASM (Automatic Storage Management) is a software Storage solution officially recommended by Oracle. Since the 10g version was officially launched, the position of ASM in the software architecture is constantly improving. The first step is to strip ASM from the database layer at 11 GB and manage it in Grid Infrastructure. Next, ASM Disk becomes the basic component of ACFS (Automatic Cluster File System. The original RAW Device-Based Soft storage mechanism is gradually being marginalized.

ASM also made some changes in product policies. In the original deployment environment Linux, the ASM toolkit provides three free rpm driver packages. However, since the Red Hat 6.x series, Oracle announced that it would not provide a later version of the ASM driver package. For Oracle Linux users, the ASM driver support can be obtained only by purchasing an official subscription.

In response to this competition, Red Hat also proposed some countermeasures. Red Hat recommends that you use the system level such as DM-Multipath to support the creation of ASM Diskgroup. If you must use ASM, you can use the kmod tool driver package for installation.

Of course, like Oracle, kmod can only be downloaded by users who buy the official Red Hat subscription.

This article describes how to create an ASM Disk and some configuration steps in kmod mode.

1. Environment Introduction

I use Red Hat Linux 6.5 as the operating system.
 

[Root @ NCR-Standby-Asm ~] # Cat/etc/RedHat-release

Red Hat Enterprise Linux Server release 6.5 (Santiago)

Download the ASM driver from the Oracle official website and the Red Hat official website to configure the ASM Disk.
 

[Root @ NCR-Standby-Asm upload] # ls-l

Total 200

-Rw-r -- 1 root 35044 May 21 kmod-oracleasm-2.0.6.rh1-2.el6.x86_64.rpm

-Rw-r -- 1 root 35176 May 21 kmod-oracleasm-2.0.6.rh1-3.el6_5.x86_64.rpm

-Rw-r -- 1 root 36248 May 21 kmod-oracleasm-2.0.8-4.el6_6.x86_64.rpm

-Rw-r -- 1 root 13300 May 21 oracleasmlib-2.0.4-1.el6.x86_64.rpm

-Rw-r -- 1 root 74984 May 21 oracleasm-support-2.1.8-1.el6.x86_64.rpm


Note: currently, kmod must be downloaded from the Red Hat official website, and only the 64-bit version is provided. In addition, different kmod package programs can be used for different Linux Kernel versions.

The other two oracle asm support packages are downloaded from the official Oracle website.

2. Install the ASM package and partition Configuration

Install the driver package in the sequence of kmod, oracleasmlib, and oracleasm-support.
 

[Root @ NCR-Standby-Asm upload] # rpm-ivh kmod-oracleasm-2.0.6.rh1-3.el6_5.x86_64.rpm

Warning: kmod-oracleasm-2.0.6.rh1-3.el6_5.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID fd431d51: NOKEY

Preparing... ######################################## ### [100%]

1: kmod-oracleasm ##################################### ###### [100%]


[Root @ NCR-Standby-Asm upload] # rpm-ivh oracleasmlib-2.0.4-1.el6.x86_64.rpm

Warning: oracleasmlib-2.0.4-1.el6.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID ec551f03: NOKEY

Preparing... ######################################## ### [100%]

1: oracleasmlib ####################################### #### [100%]

[Root @ NCR-Standby-Asm upload] # rpm-ivh oracleasm-support-2.1.8-1.el6.x86_64.rpm

Warning: oracleasm-support-2.1.8-1.el6.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID ec551f03: NOKEY

Preparing... ######################################## ### [100%]

1: oracleasm-support ##################################### ###### [100%]

Determine the physical Disk (or partition) corresponding to the ASM Disk Group ).

[Root @ NCR-Standby-Asm profile. d] # fdisk-l

Disk/dev/sda: 85.9 GB, 85899345920 bytes

255 heads, 63 sectors/track, 10443 cylinders

(Space reasons, omitted ......)

Disk identifier: 0x0da7eb93

 

Device Boot Start End Blocks Id System

/Dev/sdb1 1 2612 20980858 + 83 Linux

/Dev/sdb2 2613 5224 20980890 83 Linux

/Dev/sdb3 5225 7836 20980890 83 Linux

/Dev/sdb4 7837 13054 41913585 5 Extended

/Dev/sdb5 7837 10448 20980858 + 83 Linux

/Dev/sdb6 10449 13054 20932663 + 83 Linux

 

 

Note: In the production environment, use a single Disk as the ASM Disk to enhance the HA feature.

 

3. Configure ASM

 

Use oracleasm to configure relevant information.

 

 

[Root @ NCR-Standby-Asm upload] #/usr/sbin/oracleasm configure-I

Processing the Oracle ASM library driver.

 

This will configure the on-boot properties of the Oracle ASM library

Driver. The following questions will determine whether the driver is

Loaded on boot and what permissions it will have. The current values

Will be shown in brackets ('[]'). Hitting Without typing

Answer will keep that current value. Ctrl-C will abort.

 

Default user to own the driver interface []: grid

Default group to own the driver interface []: asmadmin

Start Oracle ASM library driver on boot (y/n) [n]: y

Scan for Oracle ASM disks on boot (y/n) [y]: y

Writing Oracle ASM library driver configuration: done
 

Start the ASM component.

[Root @ NCR-Standby-Asm upload] #/etc/init. d/oracleasm enable

Writing Oracle ASM library driver configuration: done

Initializing the Oracle ASMLib driver: [OK]

Scanning the system for Oracle ASMLib disks: [OK]
 

4. Create an ASM Disk


Create an ASM Disk.
 

[Root @ NCR-Standby-Asm dev] # fdisk-l | grep sdb

Disk/dev/sdb: 107.4 GB, 107374182400 bytes

/Dev/sdb1 1 2612 20980858 + 83 Linux

/Dev/sdb2 2613 5224 20980890 83 Linux

/Dev/sdb3 5225 7836 20980890 83 Linux

/Dev/sdb4 7837 13054 41913585 5 Extended

/Dev/sdb5 7837 10448 20980858 + 83 Linux

/Dev/sdb6 10449 13054 20932663 + 83 Linux
 

Create with oracleasm createdisk.
 

[Root @ NCR-Standby-Asm upload] #/usr/sbin/oracleasm createdisk DATA1/dev/sdb1

Writing disk header: done

Instantiating disk: done

[Root @ NCR-Standby-Asm dev] #/usr/sbin/oracleasm createdisk DATA2/dev/sdb2

Writing disk header: done

Instantiating disk: done

[Root @ NCR-Standby-Asm dev] #/usr/sbin/oracleasm createdisk DATA3/dev/sdb3

Writing disk header: done

Instantiating disk: done

[Root @ NCR-Standby-Asm dev] #/usr/sbin/oracleasm createdisk DATA5/dev/sdb5

Writing disk header: done

Instantiating disk: done

[Root @ NCR-Standby-Asm dev] #/usr/sbin/oracleasm createdisk DATA6/dev/sdb6

Writing disk header: done

Instantiating disk: done
 

Check Results:

[Root @ NCR-Standby-Asm dev] #/usr/sbin/oracleasm listdisks

DATA1

DATA2

DATA3

DATA5

DATA6
 

Later, you can use the GUI asmca to configure the ASM Disk Group.

5. Conclusion
 

According to the evolution of the recent versions of ASM, ASM will be the main system storage solution of Oracle for a long time. Oracle RAC is mainly based on ASM. It is very important for us to understand the configuration methods and policies.

How to copy data files from ASM to http://www.linuxidc.com/Linux/2013-08/88418.htm in the operating system

Recovery http://www.linuxidc.com/Linux/2013-07/87000.htm after all Oracle 11g rac asm disks are lost

Oracle 11g from entry to proficient in PDF + CD source code http://www.linuxidc.com/Linux/2013-06/85670.htm

Installing Oracle 11g R2 http://www.linuxidc.com/Linux/2013-06/86002.htm in RHEL6 ASM Mode

Oracle 10g manual creation of ASM database http://www.linuxidc.com/Linux/2013-01/78229.htm

Oracle 10g R2 create ASM instance Step By Step http://www.linuxidc.com/Linux/2014-05/101821.htm

For more information about Oracle, see Oracle topics page http://www.linuxidc.com/topicnews.aspx? Tid = 12

This article permanently updates the link address: Http://www.linuxidc.com/Linux/2015-05/118003.htm

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.