- Community Home
- >
- HPE Community, Korea
- >
- HP-UX
- >
- 서비스가드 패키지 구성과 관련하여
HP-UX
1753719
회원
4609
온라인
108799
솔루션
포럼
범주
Company
Local Language
뒤로
포럼
토론 게시판
포럼
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
토론 게시판
토론 게시판
포럼
토론 게시판
뒤로
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
블로그
정보
커뮤니티 언어
언어
포럼
블로그
- 신규로 표시
- 북마크
- 구독
- 소거
- RSS 피드 구독
- 강조
- 인쇄
- 부적절한 컨텐트 신고
날짜: 05-16-2007 10:00 PM
날짜: 05-16-2007 10:00 PM
서비스가드 패키지 구성과 관련하여
Active-Active 방식으로 동작하는 DB를 service guard로 구성
하려고 합니다.(Oracle 아님)
DB Process를 모니터링하고 있다가, 만약 DB Process가 죽으면 현재 Active node에서 실행되고 있는 Package를 Standby로 넘기려고 합니다.
Script파일에 다음과 같이 써주기만 하면 될까요?
ps -ef |grep -v grep | grep -q "db process"
조언 주시면 감사하겠습니다.
하려고 합니다.(Oracle 아님)
DB Process를 모니터링하고 있다가, 만약 DB Process가 죽으면 현재 Active node에서 실행되고 있는 Package를 Standby로 넘기려고 합니다.
Script파일에 다음과 같이 써주기만 하면 될까요?
ps -ef |grep -v grep | grep -q "db process"
조언 주시면 감사하겠습니다.
1 응답 1
- 신규로 표시
- 북마크
- 구독
- 소거
- RSS 피드 구독
- 강조
- 인쇄
- 부적절한 컨텐트 신고
날짜: 05-16-2007 10:00 PM
날짜: 05-16-2007 10:00 PM
서비스가드 패키지 구성과 관련하여
DB가 oracle 인 경우의 예입니다.
1. Package Configuration에 서비스 추가
# vi /etc/cmcluster/pkg1/pkg1.conf
# To configure a service, uncomment the following lines and
# fill in the values for all of the keywords.
#
#SERVICE_NAME
#SERVICE_FAIL_FAST_ENABLED
#SERVICE_HALT_TIMEOUT
SERVICE_NAME oramon1
SERVICE_FAIL_FAST_ENABLED NO
SERVICE_HALT_TIMEOUT 300
2. Package control script에 서비스 추가 => Oracle Daemon Fail시에 2회 재시도
# vi /etc/cmcluster/pkg1/pkg1.cntl
#SERVICE_NAME=""
#SERVICE_CMD=""
#SERVICE_RESTART=""
SERVICE_NAME=oramon1
SERVICE_CMD="/etc/cmcluster/pkg1/pkg1.mon"
SERVICE_RESTART="-r 2"
3. Oracle monitor Shell script작성
# vi /etc/cmcluster/pkg1/pkg1.mon
#!/usr/bin/sh
while true
do
ORA1=`ps -ef | grep ora | grep -v grep | grep pmon_SID1 | wc -l`
ORA2=`ps -ef | grep ora | grep -v grep | grep smon_SID1 | wc -l`
ORA3=`ps -ef | grep ora | grep -v grep | grep reco_SID1 | wc -l`
ORA4=`ps -ef | grep ora | grep -v grep | grep lgwr_SID1 | wc -l`
ORA5=`ps -ef | grep ora | grep -v grep | grep ckpt_SID1 | wc -l`
let ORANO=ORA1+ORA2+ORA3+ORA4+ORA5
if
then
echo "########################################"
echo " Oracle Daemon Failed "
echo "########################################"
exit
fi
sleep 30
done
그럼~~~
1. Package Configuration에 서비스 추가
# vi /etc/cmcluster/pkg1/pkg1.conf
# To configure a service, uncomment the following lines and
# fill in the values for all of the keywords.
#
#SERVICE_NAME
#SERVICE_FAIL_FAST_ENABLED
#SERVICE_HALT_TIMEOUT
SERVICE_NAME oramon1
SERVICE_FAIL_FAST_ENABLED NO
SERVICE_HALT_TIMEOUT 300
2. Package control script에 서비스 추가 => Oracle Daemon Fail시에 2회 재시도
# vi /etc/cmcluster/pkg1/pkg1.cntl
#SERVICE_NAME=""
#SERVICE_CMD=""
#SERVICE_RESTART=""
SERVICE_NAME=oramon1
SERVICE_CMD="/etc/cmcluster/pkg1/pkg1.mon"
SERVICE_RESTART="-r 2"
3. Oracle monitor Shell script작성
# vi /etc/cmcluster/pkg1/pkg1.mon
#!/usr/bin/sh
while true
do
ORA1=`ps -ef | grep ora | grep -v grep | grep pmon_SID1 | wc -l`
ORA2=`ps -ef | grep ora | grep -v grep | grep smon_SID1 | wc -l`
ORA3=`ps -ef | grep ora | grep -v grep | grep reco_SID1 | wc -l`
ORA4=`ps -ef | grep ora | grep -v grep | grep lgwr_SID1 | wc -l`
ORA5=`ps -ef | grep ora | grep -v grep | grep ckpt_SID1 | wc -l`
let ORANO=ORA1+ORA2+ORA3+ORA4+ORA5
if
then
echo "########################################"
echo " Oracle Daemon Failed "
echo "########################################"
exit
fi
sleep 30
done
그럼~~~
위에 명시된 의견은 Hewlett Packard Enterprise가 아닌 저자의 개인 의견입니다. 이 사이트를 사용하면 이용 약관에 동의하게되며 참여 규칙 .
뉴스 및 이벤트
© Copyright 2024 Hewlett Packard Enterprise Development LP