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]