Detailed management of Oracle10gRAC (Linux) ASM shared storage
Detailed management of Oracle 10g RAC (Linux) ASM shared storage
Management of ASM (Management of Shared disks)
1. Manage the ASM in instance mode. Before starting the database, you must first start the ASM instance. After the ASM instance is started, the ASM disk is mounted.
--------- Install the ASM management software and driver
1. view the operating system Kernel version (OS Kernel version)
[Root @ rac11 ~] # Uname-
Linux rac11 2.6.9-67. ELsmp #1 SMP Wed Nov 7 13:58:04 EST 2007 i686 i686 i386 GNU/Linux
2. Check whether ASM-related software is installed on the OS.
[Root @ rac01 ~] # Rpm-qa | grep asm
Oracleasm-2.6.9-67.EL-2.0.3-1 (same as OS kernel version)
Oracleasmlib-2.0.4-1.el4
Oracleasm-support-2.1.4-1.el4
Install the ASM package
[Root @ rac22 asm] # rpm-Uvh oracleasm-support-2.1.4-1.el4.i386.rpm
[Root @ rac22 asm] # rpm-Uvh oracleasm-2.6.9-67.EL-2.0.3-1.i686.rpm
[Root @ rac22 asm] # rpm-Uvh oracleasmlib-2.0.4-1.el4.i386.rpm
[Root @ rac22 asm] # rpm-Uvh oracleasm-2.6.9-67.ELsmp-2.0.3-1.i686.rpm
[Root @ rac11 ~] # Service oracleasm
Usage:/etc/init. d/oracleasm {start | stop | restart | enable | disable | configure | createdisk | deletedisk | querydisk | listdisks | scandisks | status}
[Root @ rac22 asm] # service oracleasm status
Checking if ASM is loaded: no
Checking if/dev/oracleasm is mounted: no
[Root @ rac22 asm] # service oracleasm enable
Writing Oracle ASM library driver configuration: done
Initializing the Oracle ASMLib driver: [OK]
Scanning the system for Oracle ASMLib disks: [OK]
[Root @ rac22 asm] # service oracleasm status
Checking if ASM is loaded: yes
Checking if/dev/oracleasm is mounted: yes
[Root @ rac11 ~] # Chkconfig oracleasm on
---------- View the ASM instance initialization parameter file
[Oracle @ rac22 dbs] $ cat init + ASM2.ora | grep-v '^ #'
Cluster_database = true
Background_dump_dest =/u01/app/oracle/admin/+ ASM/bdump
Core_dump_dest =/u01/app/oracle/admin/+ ASM/cdump
User_dump_dest =/u01/app/oracle/admin/+ ASM/udump
Instance_type = asm
Large_pool_size = 12 M
Remote_login_passwordfile = exclusive
Asm_diskgroups = 'data1', 'fra'
+ ASM2.instance _ number = 2
+ ASM1.instance _ number = 1