Home PC Games Linux Windows Database Network Programming Server Mobile  
           
  Home \ Database \ Configure the ASM process on Red Hat Linux 6.5     - Linux Network Programming - signal blocking and shielding (block, unblock) (Programming)

- C ++ Supplements - References (Lvalue Reference, Rvalue Reference) (Linux)

- Install Java on RHEL6 (Linux)

- Python 2.7 installed on CentOS 6.5 (Linux)

- Intruder tools Knark Analysis and Prevention Linux environment (Linux)

- Upgrading KDE Plasma 5.3 in Ubuntu 15.04 (Linux)

- The difference between free command displays the buffers and cache (Linux)

- Apache POI Excel Document Processing (Linux)

- VirtualBox - Linux system virtual machine shared folders (Linux)

- How to manage the time and date at systemd Linux systems (Linux)

- Install and configure GO 1.2.1 under CentOS 6.5 (Linux)

- Ubuntu 14.04 installed Nvidia CUDA 7.5 and build Python Theano deep learning development environment (Linux)

- Batch kill processes using awk command (Linux)

- Linux productivity tools and tips (Linux)

- Linux cut Command Study Notes (Linux)

- MySQL performance view and configure finishing Daquan (Database)

- Disk storage structure and file recovery experiment (FAT file system) (Linux)

- Spacewalk Linux system configuration and installation (Linux)

- How to Install Puppet in the Ubuntu 15.04 (Server)

- Java proxy mode (Programming)

 
         
  Configure the ASM process on Red Hat Linux 6.5
     
  Add Date : 2017-08-31      
         
         
         
  ASM (Automatic Storage Management) is Oracle's official recommended software storage solutions. Since the 10g version has been officially launched, the software architecture level ASM status is constantly upgrading. The first is 11g ASM from the database level stripped out, and classified as Grid Infrastructure management. Second, ASM Disk becomes the basic component of ACFS (Automatic Cluster File System). The original RAW Device based soft storage mechanism, is gradually being marginalized.

In product policy, ASM also made some changes. The original deployment environment Linux, ASM toolkit to provide three free rpm driver package. However, since the Red Hat 6.x series, Oracle announced that it will not provide a higher version of the ASM driver package. For users of Oracle Linux, ASM driver support is available only by purchasing an official subscription.

In response to this competitive business relationship, Red Hat also made a certain response strategy. Red Hat recommends using the DM-Multipath system level to support the ASM Diskgroup creation, if the user must use ASM, kmod tool can be used to drive the official package, to install the work.

Of course, like Oracle, kmod only allows users to buy Red Hat official subscription to download.

This article describes the kmod mode how to create ASM Disk and some configuration steps, left to be friends need to be investigated.

1, Introduction to the environment

I use Red Hat Linux 6.5 as a working operating system.
 

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

Red Hat Enterprise Linux Server release 6.5 (Santiago)

From the official website of Oracle and Red Hat official website to download to the ASM driver file, used to configure the ASM Disk.
 

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

Total 200

-rw-r - r-- 1 root root 35044 May 21 11:23 kmod-oracleasm-2.0.6.rh1-2.el6.x86_64.rpm

-rw-r - r-- 1 root root 35176 May 21 11:23 kmod-oracleasm-2.0.6.rh1-3.el6_5.x86_64.rpm

-rw-r - r-- 1 root root 36248 May 21 11:23 kmod-oracleasm-2.0.8-4.el6_6.x86_64.rpm

-rw-r - r-- 1 root root 13300 May 21 11:23 oracleasmlib-2.0.4-1.el6.x86_64.rpm

-rw-r - r-- 1 root root 74984 May 21 11:23 oracleasm-support-2.1.8-1.el6.x86_64.rpm


Note: Currently kmod is required to download from the official Red Hat, and only provides a 64-bit version. At the same time, for different versions of Linux Kernel, you can use different kmod package program.

The other two Oracle asm support package is downloaded from the Oracle official website.

2, install the ASM package and partition configuration

Install the driver packages in the order 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) for 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

(Length reasons, there are 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 HA features.

3. Configure ASM

Use oracleasm to configure the relevant information.

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

Configuring 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 < ENTER> without typing an

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 ASM Disk


ASM Disk to create the following.
 

[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
 

Use oracleasm createdisk to create.
 

[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
 

test result:

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

DATA1

DATA2

DATA3

DATA5

DATA6
 

The ASM Disk Group configuration can be done later using the GUI asmca.

5 Conclusion
 

From the recent evolution of several versions of ASM, in the future for a long time, ASM will be Oracle's main system storage solutions. And Oracle RAC is mainly based on ASM, understand the configuration method strategy is very important to us.
     
         
         
         
  More:      
 
- 10 important Linux ps command combat (Linux)
- Mount NFS network file system (Linux)
- MongoDB learning Notes (2) basic connection example of -Nodejs and MongoDB (Database)
- Linux Change ssh port and disable remote root login at (Linux)
- MongoDB uses aggregate, group, match mysql achieve in having (count (1)> 1) features (Database)
- Qt shared memory interprocess communication (Programming)
- Linux --- process tracking (Linux)
- PLSQL Developer synchronization table tools (Database)
- ORA-12537: TNS: connection closed error process (Database)
- Graphical development environment to build Android under Ubuntu 11.04 (Linux)
- Analysis of Java keyword final (Programming)
- Installation of network monitoring ntopng under CentOS 6.4 (Linux)
- JDK comes with tools jinfo (Linux)
- Oracle Automatic Diagnostic Repository (Automatic Diagnostic Repository, ADR) (Database)
- Win8 mount disk partitions under Ubuntu (Linux)
- OpenSSL to generate public and private key (Linux)
- Linux find command to find files (Linux)
- RocketMQ Message Queuing simple deployment (Linux)
- The next key to install Linux bash script PowerShell (Linux)
- Alien Magic: RPM and DEB Mutual Convert (Linux)
     
           
     
  CopyRight 2002-2020 newfreesoft.com, All Rights Reserved.