Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

The process of configuring ASM on Linux 6.5s

2025-01-31 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

Shulou(Shulou.com)05/31 Report--

This article introduces the relevant knowledge of "the process of configuring ASM on Linux 6.5. in the operation of actual cases, many people will encounter such a dilemma. Next, let the editor lead you to learn how to deal with these situations." I hope you can read it carefully and be able to achieve something!

1. Environmental introduction

The author uses Red Hat Linux 6.5 as the working operating system.

[root@NCR-Standby-Asm ~] # cat / etc/redhat-release

Red Hat Enterprise Linux Server release 6.5 (Santiago)

Download the ASM driver file from the official Oracle website and the official Red Hat website to configure 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.rh2-2.el6.x86_64.rpm

-rw-r--r-- 1 root root 35176 May 21 11:23 kmod-oracleasm-2.0.6.rh2-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 must be downloaded from the official Red Hat, and only 64-bit versions are available. At the same time, different Linux Kernel packages can be used for different kmod versions.

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

2. Install 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.rh2-3.el6_5.x86_64.rpm

Warning: kmod-oracleasm-2.0.6.rh2-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

(for reasons of space, there are omissions. )

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, please 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

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 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 (yzone) [n]: y

Scan for Oracle ASM disks on boot (yzone) [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

Let's create the 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 using 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

You can then use GUI asmca for ASM Disk Group configuration.

5. Conclusion

From the evolution of recent versions of ASM, ASM will be the main system storage solution of Oracle for quite a long time in the future. And Oracle RAC is mainly based on ASM, so it is important for us to understand the configuration method and policy.

This is the end of the process of configuring ASM on Linux 6.5. thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Database

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report