oracle rac 설치매뉴얼 -...
TRANSCRIPT
1. HACMP 설치(4/5)
cluster.es.cfs , cluster.es.client , cluster.es.cspoc , cluster.es.nfs
cluster.es.server , cluster.license , cluster.man.en_US.es
F7을 이용하여 선택
2. HACMP 설정(2/17)
위와 같이 첫번째 인터페이스는 hosts 파일의 Public 대역을, 두번째 인터페이스는 Private 대역으로 설정한다.
smit mktcpip 이용
2. HACMP 설정(3/17)
ORACLE이 RAWDEVICE 사용 하기 위한 권한을 주기 위해 미리 유저 및 그룹 생성. 생성 후 password 설정
smit mkuser/group/chuser 이용
2. HACMP 설정(4/17)
공유할 VG를 만들기 전에 VG에 사용할 디스크의 속성을 변경
hdisk7은 현재 100G 디스크(스토리지 LUN, 양쪽 노드에서 보이는 상태)
hdisk7은 공유 VG에 사용할 용도, hdisk3은 임시로 ASM으로 사용할 용도로 이번 설치시에 총 2개의 공유디스크 필요
2. HACMP 설정(7/17)
smit hacmp 실행 후 Extended Configuration - Extended Topology Configuration - Configure an HACMP Cluster - Add/Change/Show an HACMP Cluster 선택
cluster5 으로 설정
앞으로 하는 작업은 1번 노드에서만 설정(설정하는 도중 2번노드에 자동으로 Sync 맞추는 부분이 있음)
2. HACMP 설정(8/17)
Extended Configuration - Extended Topology Configuration - Configure an HACMP Nodes - Add a Node to the HACMP Cluster 선택
Node Name은 rac1으로 설정하고 Communication Path to Node는 F4키를 눌러서 rac1-priv를 선택
1번 node를 만든 것과 같이 2번노드도 생성(rac2, rac2-priv)
2. HACMP 설정(9/17)
Extended Configuration - Extended Topology Configuration - Discover HACMP-related Information from Configured Nodes 선택
양 노드간에 HACMP 관련 정보를 gathering 한다.
2. HACMP 설정(10/17)
Extended Configuration - Extended Topology Configuration - Configure HACMP Networks - Add a Network to the HACMP Cluster 선택
ether 선택
Network Name이 자동으로 net_ether_1로 설정
Netmask 255.255.255.0 확인 후 Enter
2. HACMP 설정(11/17)
Extended Configuration - Extended Topology Configuration - Configure HACMP Communication Interfaces/Devices - Add Communication Interfaces/Devices - Add Discovered Communication Interface and Devices - Communication Interfaces - net_ether_01 선택
rac1, rac2 선택
2. HACMP 설정(12/17)
Extended Configuration - Extended Topology Configuration - Extended Resource Configuration - HACMP Extended Resource Group Configuration - Add a Resource Group 선택
Resource Group Name, Participating Nodes, Policy 값 설정
2. HACMP 설정(13/17)
Extended Configuration - Extended Topology Configuration - Extended Resource Configuration - HACMP Extended Resource Group Configuration - Change/Show Resources and Attributes for a Resource Group – con_rg 선택
Concurrent Volume Groups 항목에 oravg 설정
2. HACMP 설정(14/17)
Extended Configuration - Extended Topology Configuration - Extended Verification and Synchronization 선택
Automatically correct errors found during verification? YES로 설정
1번 노드에서 HACMP 설정한 것을 2번 노드와 Sync하는 명령
2. HACMP 설정(15/17)
2번 노드에서 importvg를 이용하여 oravg import
참고 : 1번노드와 2번노드의 디스크 개수가 달라서 2번노드에서는 hdisk8로 인식됨(lspv 결과의 00c9550de25435c0 pv 값 및 disk size 비교)
1번노드는 hdisk7, 2번노드는 hdisk8
2. HACMP 설정(16/17)
smit clstart 실행하여 HACMP 기동
Start Cluster Services on these nodes : rac1, rac2
Startup Cluster Information Daemon? : true
Automatically correct errors found during cluster start? : Yes
3. 사전 준비 사항 (1/5)
# smit chuser 에서 oracle 소유자 입력 후 아래 값 설정
Soft FILE size : -1 | Soft CPU time : -1
Soft DATA segment : -1 | Soft STACK size : -1
3. 사전 준비 사항 (3/5)
# lsattr –El sys0 로 현재 설정 값 확인
chdev –l sys0 –a ncargs=128
ncargs : 128 | maxuprocs : 16384 이상의 값으로 설정
4. Grid 설치 (1/18)
Grid 설치 파일을 unzip 한 경로에 있는 runInstaller 실행
MOS 계정과 연동하여 업데이트 및 정보를 전송하겠다는 뜻인데. DB서버는 대부분 외부와 단절된 폐쇄망에 있기 때문에 쓰지 않는다.
Skip software updates 선택
4. Grid 설치 (8/18)
ASM 으로 설정 후 RAW Device 로 변경 진행 할 예정이기 때문에
Oracle Automatic Storage Management (Oracle ASM) 선택 후 Next
5. DB 엔진 설치 (1/12)
DB 엔진 설치 파일(1,2번) unzip 후에 runInstaller 실행
I wish to receive security updates via My Oracle Support 해제 후에 Next
5. DB 엔진 설치 (4/12)
2개의 Node 모두 나오는것을 확인.
Oracle Real Application Clusters database installation 선택 후 Next
5. DB 엔진 설치 (12/12)
설치 이후 votedisk 를 asm 에서 RAW Device 로 교체 및 확인
./crsctl replace votedisk /dev/rcrs_vote01
./crsctl add css votedisk /dev/rcrs_vote02 , ./crsctl add css votedisk /dev/rcrs_vote03
./crsctl query css votedisk
6. DB 생성 (4/20)
SID 와 Global Database Name 을 입력
양쪽 Node에서 사용하는 Database 를 생성 할 것이므로 Select All 선택 후 Next
6. DB 생성 (14/20)
바로 Database 생성하지 않고 스크립트를 생성해서 수정 후에 생성
Create Database 체크 해제
Generate Database Creation Scripts 체크 및 경로 확인 후 Next