Install and configure the ASM instance in a standalone Environment

Source: Internet
Author: User
ASM is a storage product released by Oracle for rac. Although it is set for the cluster environment, we can also use ASM instances to manage disks in a single-host environment.

ASM is a storage product released by Oracle for rac. Although it is set for the cluster environment, we can also use ASM instances to manage disks in a single-host environment.

ASM is a storage product released by Oracle for rac. Although it is set for the cluster environment, we can also use ASM instances to manage disks in a single-host environment.

(1) installation and configuration

I. Confirm the Linux kernel version

[Root @ sigleNode ~] # Uname-r

2.6.18-53. el5xen

You need to download the specified ASMLib package from the Oracle Official Website Based on the kernel version above. Download it locally:

Download it to the FTP server No. 1 of the Linux community ,:

FTP address: ftp://www.linuxidc.com

User

Password

Install and configure the ASM instance in LinuxIDC.com/July/standalone Environment

For the download method, see

--------------------------------------------------------------------

Ii. Install the asmlib package

[Root @ sigleNodeasm] # rpm-ivh *. rpm

3. Add two hard disks and partition them without formatting.

[Root @ sigleNodedev] # fdisk/dev/hda

Command (m for help): n

Command action

E extended

P primary partition (1-4)

P

Partition number (1-4): 1

First cylinder (1-261, default 1): 1

Last cylinder or + size or + sizeM or + sizeK (1-261, default 261): 261

Command (m for help): w

The partition table has been altered!

Calling ioctl () to re-read partition table.

Syncing disks.

Run the same command to partition/dev/hdb.

The partition result is as follows:

[Root @ sigleNode ~] # Fdisk-l

Disk/dev/hda: 2147 MB, 2147483648 bytes

16 heads, 63 sectors/track, 4161 cylinders

Units = cylinders of 1008*512 = 516096 bytes

Device Boot Start End Blocks Id System

/Dev/hda1 1 4161 2097112 + 83 Linux

Disk/dev/hdb: 2147 MB, 2147483648 bytes

16 heads, 63 sectors/track, 4161 cylinders

Units = cylinders of 1008*512 = 516096 bytes

Device Boot Start End Blocks Id System

/Dev/hdb1 1 4161 2097112 + 83 Linux

Iv. Configure the ASM Environment

[Root @ sigleNode ~] #/Etc/init. d/oracleasm configure

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 []: oracle

Default group to own the driver interface []: dba

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

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

Writing Oracle ASM library driver configuration: done

Initializing the Oracle ASMLib driver: [OK]

Scanning the system for Oracle ASMLib disks: [OK]

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.