Virtu DB noeud

De wiki.nexiat.fr
Aller à la navigation Aller à la recherche
Fiche express
Type Procédure d'installation
Contexte Construction d'un nœud de calcul Exadata en environnement de simulation
Voir aussi Virtu cell · Archi exadata · Cellcli

Procédure d'installation d'un nœud de calcul (compute node, serveur de base de données) d'une appliance Exadata en environnement de simulation, en complément de Virtu cell (construction de la cellule de stockage associée). Basée sur la série d'articles how to build an Exadata simulator de dbaleet.org (« step by step 2 : build a DB node »).

Dépôt et paquets

# cd /etc/yum.repos.d
# wget http://public-yum.oracle.com/public-yum-el5.repo
# yum install oracle-validated

Désactivation des services inutiles

La source de cette étape contenait une série de commandes visiblement passées par une traduction automatique successive et devenues incorrectes (verbes et options mélangés en français dans une syntaxe shell). Syntaxe corrigée, identique à celle utilisée côté cellule (voir Virtu cell) :

chkconfig --level 2345 auditd off && service auditd stop
chkconfig --level 2345 autofs off && service autofs stop
chkconfig --level 2345 avahi-daemon off && service avahi-daemon stop
chkconfig --level 2345 bluetooth off && service bluetooth stop
chkconfig --level 2345 cups off && service cups stop
chkconfig --level 2345 ip6tables off && service ip6tables stop
chkconfig --level 2345 iptables off && service iptables stop
chkconfig --level 2345 isdn off && service isdn stop
chkconfig --level 2345 kudzu off && service kudzu stop
chkconfig --level 2345 mcstrans off && service mcstrans stop
chkconfig --level 2345 netfs off && service netfs stop
chkconfig --level 2345 pcscd off && service pcscd stop
chkconfig --level 2345 restorecond off && service restorecond stop
chkconfig --level 2345 rhnsd off && service rhnsd stop
chkconfig --level 2345 sendmail off && service sendmail stop
chkconfig --level 2345 setroubleshoot off && service setroubleshoot stop
chkconfig --level 2345 smartd off && service smartd stop
chkconfig --level 2345 xinetd off && service xinetd stop
chkconfig --level 2345 yum-updatesd off && service yum-updatesd stop

SELinux doit également être désactivé sur ce nœud.

Configuration réseau cellule

Préparation du répertoire de configuration réseau côté grid, utilisé par le nœud de calcul pour dialoguer avec la ou les cellules :

# mkdir -p /etc/oracle/cell/network-config
# chown -R grid:oinstall /etc/oracle/cell/network-config
# chmod -R 775 /etc/oracle/cell/network-config

IP et hostname du nœud lui-même (adresses de laboratoire non routées, à adapter à l'environnement réel) :

# vi /etc/oracle/cell/network-config/cellinit.ora
ipaddress1=192.168.56.102/24

IP de la cellule de stockage à laquelle se connecter :

# vi /etc/oracle/cell/network-config/cellip.ora
cell="192.168.56.101"

Grid Infrastructure et disques ASM

Lors de l'installation de Grid Infrastructure, dans la section de création des disques ASM, les Grid Disks créés côté cellule (voir CELL Create hdd fileformat) doivent apparaître dans la liste des disques candidats. Si l'installation de Grid Infrastructure a été faite en mode sans disque, la découverte des disques peut être relancée après coup avec asmca.

Chemin de découverte à utiliser en cas de disques non détectés automatiquement :

o/192.168.56.101/data*

Vérification via SQL*Plus et ASMCMD

# su - grid
$ export ORACLE_HOME=/u01/app/grid/product/11.2.0/grid
$ export ORACLE_SID=+ASM
$ sqlplus / as sysdba
SQL> select disk_number, name, failgroup, path, header_status from v$asm_disk where path like 'o/%' order by disk_number;

DISK_NUMBER NAME                           FAILGROUP                      PATH                                     HEADER_STATUS
----------- ------------------------------ ------------------------------ ---------------------------------------- ----------
          0 DATA_CD_DISK01_CELL1           DATA_CD_DISK01_CELL1           o/192.168.56.101/data_CD_disk01_cell1    MEMBER
          1 DATA_CD_DISK02_CELL1           DATA_CD_DISK02_CELL1           o/192.168.56.101/data_CD_disk02_cell1    MEMBER
          2 DATA_CD_DISK03_CELL1           DATA_CD_DISK03_CELL1           o/192.168.56.101/data_CD_disk03_cell1    MEMBER
          3 DATA_CD_DISK04_CELL1           DATA_CD_DISK04_CELL1           o/192.168.56.101/data_CD_disk04_cell1    MEMBER
          4 DATA_CD_DISK05_CELL1           DATA_CD_DISK05_CELL1           o/192.168.56.101/data_CD_disk05_cell1    MEMBER
          5 DATA_CD_DISK06_CELL1           DATA_CD_DISK06_CELL1           o/192.168.56.101/data_CD_disk06_cell1    MEMBER
          6 DATA_CD_DISK07_CELL1           DATA_CD_DISK07_CELL1           o/192.168.56.101/data_CD_disk07_cell1    MEMBER
          7 DATA_CD_DISK08_CELL1           DATA_CD_DISK08_CELL1           o/192.168.56.101/data_CD_disk08_cell1    MEMBER
          8 DATA_CD_DISK09_CELL1           DATA_CD_DISK09_CELL1           o/192.168.56.101/data_CD_disk09_cell1    MEMBER
          9 DATA_CD_DISK10_CELL1           DATA_CD_DISK10_CELL1           o/192.168.56.101/data_CD_disk10_cell1    MEMBER
         10 DATA_CD_DISK11_CELL1           DATA_CD_DISK11_CELL1           o/192.168.56.101/data_CD_disk11_cell1    MEMBER
         11 DATA_CD_DISK12_CELL1           DATA_CD_DISK12_CELL1           o/192.168.56.101/data_CD_disk12_cell1    MEMBER

ASMCMD> lsdg
State    Type    Rebal  Sector  Block       AU  Total_MB  Free_MB  Req_mir_free_MB  Usable_file_MB  Offline_disks  Voting_files  Name
MOUNTED  EXTERN  N         512   4096  4194304     11328    11152                0           11152              0             N  DATA/

ASMCMD> lsattr -l -G data
Name                     Value
access_control.enabled   FALSE
access_control.umask     066
au_size                  4194304
cell.smart_scan_capable  TRUE
compatible.asm           11.2.0.0.0
compatible.rdbms         11.1.0.7.0
disk_repair_time         3.6h
sector_size              512

ASMCMD> lsdsk -G data
Path
o/192.168.56.101/data_CD_disk01_cell1
o/192.168.56.101/data_CD_disk02_cell1
o/192.168.56.101/data_CD_disk03_cell1
o/192.168.56.101/data_CD_disk04_cell1
o/192.168.56.101/data_CD_disk05_cell1
o/192.168.56.101/data_CD_disk06_cell1
o/192.168.56.101/data_CD_disk07_cell1
o/192.168.56.101/data_CD_disk08_cell1
o/192.168.56.101/data_CD_disk09_cell1
o/192.168.56.101/data_CD_disk10_cell1
o/192.168.56.101/data_CD_disk11_cell1
o/192.168.56.101/data_CD_disk12_cell1

Voir aussi

  • Virtu cell — construction de la cellule de stockage associée à ce nœud
  • Archi exadata — hiérarchie disque physique → cell disk → grid disk et redondance ASM
  • Cellcli — administration de la cellule vue depuis ce nœud