INSTALACIÓN y CONFIGURACIÓN ASMLIB EN LINUX
##1. Instalar desde la media original del sistema operativo
[root@racnode01 Packages]# rpm -i kmod-oracleasm-2.0.8-22.el7.x86_64.rpm
warning: kmod-oracleasm-2.0.8-22.el7.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID fd431d51: NOKEY
warning: kmod-oracleasm-2.0.8-22.el7.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID fd431d51: NOKEY
##2. Descargar del Sitio de Oracle e instalar
[root@racnode01 Packages]# cd /SOFTWARE/asmlib/
[root@racnode01 asmlib]# ls
oracleasmlib-2.0.12-1.el7.x86_64.rpm oracleasm-support-2.1.11-2.el7.x86_64.rpm
[root@racnode01 Packages]# cd /SOFTWARE/asmlib/
[root@racnode01 asmlib]# ls
oracleasmlib-2.0.12-1.el7.x86_64.rpm oracleasm-support-2.1.11-2.el7.x86_64.rpm
[root@racnode01 asmlib]# rpm -i oracleasmlib-2.0.12-1.el7.x86_64.rpm
warning: oracleasmlib-2.0.12-1.el7.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID ec551f03: NOKEY
[root@racnode01 asmlib]# rpm -i oracleasm-support-2.1.11-2.el7.x86_64.rpm
warning: oracleasm-support-2.1.11-2.el7.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID ec551f03: NOKEY
Note: Forwarding request to 'systemctl enable oracleasm.service'.
Created symlink from /etc/systemd/system/multi-user.target.wants/oracleasm.service to /usr/lib/systemd/system/oracleasm.service.
warning: oracleasmlib-2.0.12-1.el7.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID ec551f03: NOKEY
[root@racnode01 asmlib]# rpm -i oracleasm-support-2.1.11-2.el7.x86_64.rpm
warning: oracleasm-support-2.1.11-2.el7.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID ec551f03: NOKEY
Note: Forwarding request to 'systemctl enable oracleasm.service'.
Created symlink from /etc/systemd/system/multi-user.target.wants/oracleasm.service to /usr/lib/systemd/system/oracleasm.service.
#3. Configurar Módulos de Kernel
[root@racnode01 asmlib]# /usr/sbin/oracleasm configure -i
[root@racnode01 asmlib]# /usr/sbin/oracleasm configure -i
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 <ENTER> without typing an
answer will keep that current value. Ctrl-C will abort.
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]:
Writing Oracle ASM library driver configuration: done
#4. Iniciar Módulos
[root@racnode01 asmlib]# /usr/sbin/oracleasm init
Creating /dev/oracleasm mount point: /dev/oracleasm
Loading module "oracleasm": oracleasm
Configuring "oracleasm" to use device physical block size
Mounting ASMlib driver filesystem: /dev/oracleasm
[root@racnode01 asmlib]#
[root@racnode01 asmlib]# /usr/sbin/oracleasm init
Creating /dev/oracleasm mount point: /dev/oracleasm
Loading module "oracleasm": oracleasm
Configuring "oracleasm" to use device physical block size
Mounting ASMlib driver filesystem: /dev/oracleasm
[root@racnode01 asmlib]#
#5. Particionar Discos
[root@racnode01 asmlib]# parted /dev/sdc mklabel gpt mkpart primary "1 -1"
[root@racnode01 asmlib]# parted /dev/sde mklabel gpt mkpart primary "1 -1"
[root@racnode01 asmlib]# parted /dev/sdg mklabel gpt mkpart primary "1 -1"
[root@racnode01 asmlib]# parted /dev/sdf mklabel gpt mkpart primary "1 -1"
[root@racnode01 asmlib]# parted /dev/sde mklabel gpt mkpart primary "1 -1"
[root@racnode01 asmlib]# parted /dev/sdg mklabel gpt mkpart primary "1 -1"
[root@racnode01 asmlib]# parted /dev/sdf mklabel gpt mkpart primary "1 -1"
#6. Crear y Marcar Discos para ASM
/usr/sbin/oracleasm createdisk DATA01 /dev/sdc1
/usr/sbin/oracleasm createdisk DATA02 /dev/sde1
/usr/sbin/oracleasm createdisk OCR01 /dev/sdg1
/usr/sbin/oracleasm createdisk FRA01 /dev/sdf1
/usr/sbin/oracleasm createdisk DATA02 /dev/sde1
/usr/sbin/oracleasm createdisk OCR01 /dev/sdg1
/usr/sbin/oracleasm createdisk FRA01 /dev/sdf1
#7 Repetir pasos 1-4 en Nodo 02
#8 Escanear Discos ASM en Nodo 02
[root@racnode02 asmlib]# /usr/sbin/oracleasm scandisks
#9 Listar Discos en Nodo 02
[root@racnode02 asmlib]# oracleasm listdisks
DATA01
DATA02
OCR01
FRA01
No hay comentarios:
Publicar un comentario