본문 바로가기

Oracle/10g. Rac Install

E. ASM 라이브러리 및 DB Engine 설치.

Oracle Enterprise Linux 4 버전에는
ocfs2 나 oracleasm 이 전부들어있어서 설치하기는 편하다.

본인들이 다른OS에서 설치할때는 오라클사이트에서 직접 커널버전에 맞는 RPM을 찾아서 설치를
해야한다.

1. ASM 라이브러리 설치 (두노드에서)
[root@ocm1 RPMS]# rpm -Uvh oracleasm-support-2.1.3-1.el4.i386.rpm
warning: oracleasm-support-2.1.3-1.el4.i386.rpm: V3 DSA signature: NOKEY, key ID b38a8516
Preparing...                ########################################### [100%]
   1:oracleasm-support      ########################################### [100%]
[root@ocm1 RPMS]# rpm -Uvh oracleasm-2.6.9-89.0.0.0.1.ELsmp-2.0.5-1.el4.i686.rpm
warning: oracleasm-2.6.9-89.0.0.0.1.ELsmp-2.0.5-1.el4.i686.rpm: V3 DSA signature: NOKEY, key ID b38a8516
Preparing...                ########################################### [100%]
   1:oracleasm-2.6.9-89.0.0.########################################### [100%]
[root@ocm1 RPMS]#

=============================================================================================
2. ASM에서 사용할 디스크 포멧(둘중한노드에서)
[root@ocm1 rpm]# fdisk -l
Disk /dev/sda: 21.4 GB, 21474836480 bytes
255 heads, 63 sectors/track, 2610 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1        1912    15358108+  83  Linux
/dev/sda2            1913        2294     3068415   83  Linux
/dev/sda3            2295        2610     2538270   82  Linux swap
Disk /dev/sdb: 1073 MB, 1073741824 bytes
255 heads, 63 sectors/track, 130 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1               1         130     1044193+  83  Linux
Disk /dev/sdc: 1073 MB, 1073741824 bytes
255 heads, 63 sectors/track, 130 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk /dev/sdc doesn't contain a valid partition table
Disk /dev/sdd: 1073 MB, 1073741824 bytes
255 heads, 63 sectors/track, 130 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk /dev/sdd doesn't contain a valid partition table
Disk /dev/sde: 1073 MB, 1073741824 bytes
255 heads, 63 sectors/track, 130 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk /dev/sde doesn't contain a valid partition table
Disk /dev/sdf: 1073 MB, 1073741824 bytes
255 heads, 63 sectors/track, 130 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk /dev/sdf doesn't contain a valid partition table
[root@ocm1 rpm]#

아래 처럼 각 디스크들을 format 을 해준다.
[root@ocm1 rpm]# fdisk /dev/sdc
Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel
Building a new DOS disklabel. Changes will remain in memory only,
until you decide to write them. After that, of course, the previous
content won't be recoverable.
Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite)
Command (m for help): n
Command action
   e   extended
   p   primary partition (1-4)
p
Partition number (1-4): 1
First cylinder (1-130, default 1):
Using default value 1
Last cylinder or +size or +sizeM or +sizeK (1-130, default 130):
Using default value 130
Command (m for help): w
The partition table has been altered!
Calling ioctl() to re-read partition table.
Syncing disks.
[root@ocm1 rpm]#

=============================================================================================
3. oracleasm configure(두노드에서)
[root@ocm1 /]#
/etc/init.d/oracleasm configure
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 []: oracle
Default group to own the driver interface []: oinstall
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
Initializing the Oracle ASMLib driver:                     [  OK  ]
Scanning the system for Oracle ASMLib disks:               [  OK  ]
[root@ocm1 /]#

=============================================================================================
4. oracleasm 디스크그룹 생성(둘중 한노드에서)
[root@ocm1 /]# /etc/init.d/oracleasm createdisk data1 /dev/sdc1
Marking disk "data1" as an ASM disk:                       [  OK  ]
[root@ocm1 /]# /etc/init.d/oracleasm createdisk data2 /dev/sdd1
Marking disk "data2" as an ASM disk:                       [  OK  ]
[root@ocm1 /]# /etc/init.d/oracleasm createdisk flash1 /dev/sde1
Marking disk "flash1" as an ASM disk:                      [  OK  ]
[root@ocm1 /]# /etc/init.d/oracleasm createdisk flash2 /dev/sdf1
Marking disk "flash2" as an ASM disk:                      [  OK  ]
[root@ocm1 /]#

data1 , data2 는 오라클데이터로
flash1 , flash2 는 플래시 백 복구영역으로 사용할예정이다.

[root@ocm1 rpm]# /etc/init.d/oracleasm listdisks
DATA1
DATA2
FLASH1
FLASH2
[root@ocm1 rpm]#
ASM으로 인식하는 리스트들을 확인하고 나머지 다른노드에서도 확인해본다.

5. 10201_database_linux32.zip 압축풀고 시작해보자~

'Oracle > 10g. Rac Install' 카테고리의 다른 글

오라클 10g RAC 설치 (Vmware). 문서와 동영상  (5) 2010.09.22
F. Database 설치.  (0) 2010.09.13
D. Cluster ware 설치.  (1) 2010.09.12
C. ClusterWare 설치를 위한 기본세팅  (0) 2010.09.12
B. Host File. SSH.  (0) 2010.09.12