分类: Oracle
2006-07-21 18:03:02
oracleasm-support-version.arch.rpm oracleasm-kernel-version.arch.rpm oracleasmlib-version.arch.rpm |
[root@rhel3u5 root]# rpm -Uvh oracleasm-2.4.21-32.EL-1.0.4-1.i686.rpm oracleasm-support-2.0.2-1.i386.rpm oracleasmlib-2.0.2-1.i386.rpm Preparing... ########################################### [100%] 1:oracleasm-support ########################################### [ 33%] 2:oracleasm-2.4.21-32.EL ########################################### [ 67%] 3:oracleasmlib ########################################### [100%] [root@rhel3u5 root]# |
[root@rhel4u2 ~]# rpm -Uvh oracleasm-2.6.9-22.EL-2.0.2-1.i686.rpm oracleasm-support-2.0.2-1.i386.rpm oracleasmlib-2.0.2-1.i386.rpm Preparing... ########################################### [100%] 1:oracleasm-support ########################################### [ 33%] 2:oracleasm-2.6.9-22.EL ########################################### [ 67%] 3:oracleasmlib ########################################### [100%] [root@rhel4u2 ~]# |
[root@rhel3u5 root]# /etc/init.d/oracleasm start Creating /dev/oracleasm mount point: [ OK ] |
[root@rhel3u5 root]# /etc/init.d/oracleasm enable Writing Oracle ASM library driver configuration: [ OK ] Loading module "oracleasm": [ OK ] Mounting ASMlib driver filesystem: [ OK ] Scanning system for ASM disks: [ OK ] |
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 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]: Fix permissions of Oracle ASM disks on boot (y/n) [y]: Writing Oracle ASM library driver configuration: [ OK ] Scanning system for ASM disks: [ OK ] |
[root@rhel3u5 root]# /etc/init.d/oracleasm createdisk DISK1 /dev/sdb1 Marking disk "/dev/sdb1" as an ASM disk: [root@rhel3u5 root]# [root@rhel3u5 root]# /etc/init.d/oracleasm createdisk DISK2 /dev/sdc1 Marking disk "/dev/sdc1" as an ASM disk: [root@rhel3u5 root]# |
[root@rhel4u2 ~]# /etc/init.d/oracleasm createdisk DISK3 /dev/sdd Marking disk "/dev/sdd" as an ASM disk: asmtool: Device "/dev/sdd" is not a partition [FAILED] |
[root@rhel3u5 root]# /etc/init.d/oracleasm listdisks DISK1 DISK2 |
SQL> col label for a7 SQL> col path for a10 SQL> / GROUP_NUMBER DISK_NUMBER NAME LABEL PATH ------------ ----------- ------------------------------ ------- ---------- 1 0 DISK1 DISK1 ORCL:DISK1 1 1 DISK2 DISK2 ORCL:DISK2 |