===== ASM =====
Page non complète, juste notes de mise en place
[[http://www.oracle-base.com/articles/10g/AutomaticStorageManagement10g.php|Page intéressante sur le sujet]]
Package à installer, verifier la version du noyau linux avec uname -r
wget http://oss.oracle.com/projects/oracleasm/dist/files/RPMS/rhel5/amd64/2.0.5/2.6.18-274.7.1.el5/oracleasm-2.6.18-274.7.1.el5-2.0.5-1.el5.x86_64.rpm
wget http://oss.oracle.com/projects/oracleasm-support/dist/files/RPMS/rhel5/amd64/2.1.7/oracleasm-support-2.1.7-1.el5.x86_64.rpm
wget http://download.oracle.com/otn_software/asmlib/oracleasmlib-2.0.4-1.el5.x86_64.rpm
rpm -hiv oracleasmlib-2.0.4-1.el5.x86_64.rpm
rpm -hiv oracleasm-2.6.18-274.7.1.el5-2.0.5-1.el5.x86_64.rpm
rpm -hiv oracleasmlib-2.0.4-1.el5.x86_64.rpm
Création des groupe
groupadd asmadmin
groupadd asmdba
groupadd asmoper
User grid
useradd -g oinstall -G asmadmin,asmdba,asmoper -d /home/grid -s /bin/bash grid
passwd grid
Configuration des disques ASM
/usr/sbin/oracleasm configure -i
Default user to own the driver interface []: grid
Default group to own the driver interface []: asmadmin
Start Oracle ASM library driver on boot (y/n) [n]: y
Scan for Oracle ASM disks on boot (y/n) [y]: y
Writing Oracle ASM library driver configuration: done
Initialisation
/usr/sbin/oracleasm init
Création
/usr/sbin/oracleasm createdisk DATA_DISK1 /dev/sdb1
/usr/sbin/oracleasm createdisk DATA_DISK2 /dev/sdc1
/usr/sbin/oracleasm createdisk DATA_DISK3 /dev/sdd1
Il est possible de supprimer toute définition antérieure par
/usr/sbin/oracleasm deletedisk DATA_DISK1
/usr/sbin/oracleasm deletedisk DATA_DISK2
/usr/sbin/oracleasm deletedisk DATA_DISK3
Visualisation
/usr/sbin/oracleasm listdisks
DATA_DISK1
DATA_DISK2
DATA_DISK3
Démarrer le démon ccs, en étant sous l'identité root
/u01/app/oracle/product/11.2.0/db_home1/bin/localconfig add