- Community Home
- >
- HPE Community, Korea
- >
- HP-UX
- >
- rc2.d script 가 skipped 되는 현상
HP-UX
1752657
회원
5593
온라인
108788
솔루션
포럼
범주
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 피드 구독
- 강조
- 인쇄
- 부적절한 컨텐트 신고
날짜: 08-23-2004 10:00 PM
날짜: 08-23-2004 10:00 PM
rc2.d script 가 skipped 되는 현상
문제가 발생한 서버는 Itanium 서버이며,
서버를 리부팅 시키면, rc2.d 에 있는 스크립트중 하나가 실행이 안됩니다.
부팅후, rc.log 를 보면 해당 스크립트가 "skipped" 되었다고 나오네요...
그래서 수동으로 해보면 또 잘 되구요...
문제가 되는 스크립트는 DLKM과 관련된 스크립크이며,
수동으로 올릴때는 잘되며, 그때의 상태는 "best" 입니다.
리부팅만 하면, 모듈은 로딩이 되는데, 로딩후 추가 작업은 이루어 지지가 않고, skip되어버리고, 리부팅후에 상태를 보면 "explict"로 나오네요...
모든 Itanium 에서 이런 현상이 일어나는 것은 아니고,
한대의 서버에서만 이 현상이 나오네요...
서버의 문제인지... DLKM 관련 부분의 문제인지...
아시는 분의 조언 바랍니다...
서버를 리부팅 시키면, rc2.d 에 있는 스크립트중 하나가 실행이 안됩니다.
부팅후, rc.log 를 보면 해당 스크립트가 "skipped" 되었다고 나오네요...
그래서 수동으로 해보면 또 잘 되구요...
문제가 되는 스크립트는 DLKM과 관련된 스크립크이며,
수동으로 올릴때는 잘되며, 그때의 상태는 "best" 입니다.
리부팅만 하면, 모듈은 로딩이 되는데, 로딩후 추가 작업은 이루어 지지가 않고, skip되어버리고, 리부팅후에 상태를 보면 "explict"로 나오네요...
모든 Itanium 에서 이런 현상이 일어나는 것은 아니고,
한대의 서버에서만 이 현상이 나오네요...
서버의 문제인지... DLKM 관련 부분의 문제인지...
아시는 분의 조언 바랍니다...
2 응답 2
- 신규로 표시
- 북마크
- 구독
- 소거
- RSS 피드 구독
- 강조
- 인쇄
- 부적절한 컨텐트 신고
날짜: 08-23-2004 10:00 PM
날짜: 08-23-2004 10:00 PM
rc2.d script 가 skipped 되는 현상
HP server에서는 기본적으로 shell script가 제공됩니다.( /sbin/init.d/template file )
이 file을 이용하여 script 를 추가할수 있습니다.
아래의 sample file을 이용하여 check하여 보시기 바랍니다.
# cp /sbin/init.d/template /sbin/init.d/sample_db
# vi /sbin/init.d/sample_db
'start_msg')
- echo "Starting the subsystem"을 찾아서 echo "Starting the SAMPLE_DB subsystem" 등으로 고칩니다.
'stop_msg')
- echo "Stoping the subsystem"을 찾아서echo "Stoping the SAMPLE_DB subsystem" 등으로 고칩니다.
'start')
- if ; 을 if 등으로 고치십시요.
# Execute the commands to start your subsystem을 찾아서 다음 라인의 :(colon)대신에 subsystem을 startup하는 command를 넣어주십시오.
/opt/databas/sample_db_start
'stop')
- if ; 을 if 등으로 고치십시요.
# Execute the commands to stop your subsystem을 찾아서 다음 라인의 :(colon) 대신에 subsystem을 stop하는 command를 넣어주십시오.
pid=`ps -ef | awk '$NF~/sample_db/ {print $2}'`
if ; then
if kill "$pid"; then"$pid"; then
echo "sample_db stopped"
else
set_return
echo "Unable to stop sample_db"
fi
fi
# vi /etc/rc.config.d/sample_db
SAMPLE_DB=1 을 넣으시고, comment 문장을 적당히 넣어주십시오.
*참고 : configuration file은 /sbin/init.d에 대응되는 실행 script와 같은 이름으로 주십시요.variable을 1또는 0으로 변경함으로써 subsystem을 enable 또는 disable로 조정할 수 있습니다.
# ln -s /sbin/init.d/sample_db /sbin/rc2.d/S900sample_db (link시에 다른 실행 script와 conflict되지 않도록 하며, 지금 만든 application 전에 다른 subsystem이 start되어야 한다면, S number를 잘 골라서 sequence를 주어야 합니다 . kill script도 마찬가지입니다)
# ln -s /sbin/init.d/sample_db /sbin/rc1.d/K100sample_db
그럼~~~
이 file을 이용하여 script 를 추가할수 있습니다.
아래의 sample file을 이용하여 check하여 보시기 바랍니다.
# cp /sbin/init.d/template /sbin/init.d/sample_db
# vi /sbin/init.d/sample_db
'start_msg')
- echo "Starting the
'stop_msg')
- echo "Stoping the
'start')
- if ; 을 if 등으로 고치십시요.
# Execute the commands to start your subsystem을 찾아서 다음 라인의 :(colon)대신에 subsystem을 startup하는 command를 넣어주십시오.
/opt/databas/sample_db_start
'stop')
- if ; 을 if 등으로 고치십시요.
# Execute the commands to stop your subsystem을 찾아서 다음 라인의 :(colon) 대신에 subsystem을 stop하는 command를 넣어주십시오.
pid=`ps -ef | awk '$NF~/sample_db/ {print $2}'`
if ; then
if kill "$pid"; then"$pid"; then
echo "sample_db stopped"
else
set_return
echo "Unable to stop sample_db"
fi
fi
# vi /etc/rc.config.d/sample_db
SAMPLE_DB=1 을 넣으시고, comment 문장을 적당히 넣어주십시오.
*참고 : configuration file은 /sbin/init.d에 대응되는 실행 script와 같은 이름으로 주십시요.variable을 1또는 0으로 변경함으로써 subsystem을 enable 또는 disable로 조정할 수 있습니다.
# ln -s /sbin/init.d/sample_db /sbin/rc2.d/S900sample_db (link시에 다른 실행 script와 conflict되지 않도록 하며, 지금 만든 application 전에 다른 subsystem이 start되어야 한다면, S number를 잘 골라서 sequence를 주어야 합니다 . kill script도 마찬가지입니다)
# ln -s /sbin/init.d/sample_db /sbin/rc1.d/K100sample_db
그럼~~~
위에 명시된 의견은 Hewlett Packard Enterprise가 아닌 저자의 개인 의견입니다. 이 사이트를 사용하면 이용 약관에 동의하게되며 참여 규칙 .
뉴스 및 이벤트
© Copyright 2024 Hewlett Packard Enterprise Development LP