2008년 9월 16일 화요일

리눅스 하드 마운트 하기

1.

/proc/ide 안에서 ls 해보시면 현재 시스템에 걸려있는 하드디스크를 확인한다.

아마두 hdb 일건데요.. hdb1인지 hdb2 인지는 fdisk 로 확인하도록 한다.

fdisk /dev/hdb 요렇게 입력하고 p 를 누르면 파티션 정보를 확인한다.

 

ex)

fdisk /dev/hdb

 

 ~(m or help) : p 치면

hdb1  ...

hdb2  ...

 ...

hdb7  ...

 

라고 나온다.

 

q를 치고 나와서

 

# mkdir /hdd2                              -> 마운트해서 옮겨놓을 디렉토리를 생성
# mount /dev/hdb3 /hdd2             -> hdb1 ~ hdb7중 선택 (내가 원했던 자료는 hdb2에있었음 
# cd /hdd2                                  -> 폴더로 접근해서 확인
# ls -al                                      

 

리눅스에 마운트 된 디렉토리 설명

디렉토리 경로
용 도
/bin일반 사용자들을 위한 명령어
/sbinroot 관리자를 위한 시스템 관리 명령어
(일반 사용자는 실행 불가)
/etc시스템 설정 파일
/rootroot 사용자용 홈 디렉토리
/libroot 파일시스템을 위한 공유 라이브러리
/lib/modules로드 가능한 커널 모듈
/dev디바이스 파일 시스템
/tmp임시 파일 저장 (부팅이후에는 /var/tmp 디렉토리가 임시파일 저장소로 사용)
/boot부트스트랩 로더에 사용되는 부팅 커널 이미지 저장
/mnt시스템 관리자를 위한 임시 파일 마운트 포인트
 
/etc/rc 또는 rc.d시스템 시동에 필요한 필요한 스크립트 파일
/etc/passwd사용자 ID / 이름 / 홈디렉토리 / 암호화된 패스워드 / 기타 정보
/etc/fdprm플로피 디스크 파라미터 테이블
/etc/fstab시동시 자동으로 마운트 되는 파일 시스템 정보
/etc/group사용자 그룹 정보 ( /etc/passwd와 유사)
/etc/inittabinit(시동 프로그램)을 위한 설정 파일
/etc/issue로그인 프롬프트 전 표시해 주는 시스템 메시지 (환영 인사말)
/etc/magic'file' 프로그램을 위한 설정 파일
/etc/motd그날의 메시지 (message of the day)
로그인 성공후 보여주는 메시지 (변경되는 메시지)
/etc/mtab현재 마운트되어 있는 파일 시스템 리스트
/etc/shadow시스템 쉐도우 패스워드 파일
/etc/login.defs'login' 커맨드 설정 파일
/etc/printcap프린트 기능 데이터베이스
/etc/profile
/etc/csh.login
/etc/csh.cshrc
Bourn 쉘 또는 C 쉘을 위한 로그인시 초기 실행 설정 파일
/etc/securetty터미널 보안 설정 파일
(네트워크를 통한 root 계정 로그인은 반드시 비활성화 하십시요)
/etc/shells신뢰되는 shell 리스트
/etc/termcap터미널 기능 데이터베이스
 
/usr/X11R6X 윈도우 시스템 관련 파일
/usr/bin대부분의 사용자 명령어
/usr/sbin시스템 관리 명령어 (대부분 서버 프로그램 관련 파일)
/usr/share/man
/usr/share/info
/usr/share/doc
메뉴얼 페이지 / Info 문서 / 각종 문서 파일
/usr/includeC 프로그래밍을 위한 해더 파일
/usr/lib프로그램과 서브시스템을 위한 변경되지 않는 데이터 파일
/usr/local로컬에 설치되는 각종 프로그램 
(이 디렉토리에 설치되는 프로그램은 배포판에서 사용하지 않는 사용자 설치에 사용됩니다.
 
/var/cache/man메뉴얼 페이지를 위한 캐시
/var/game/usr 디렉토리의 게임을 위한 데이터 저장소
/var/local/usr/local에 설치된 프로그램을 위한 데이터 저장소
/var/lock잠금 파일
/var/log프로그램들의 로그 파일 저장소
/var/mail사용자 메일박스 파일 (FHS 기준)
/var/run시스템에 실행중인 프로세스 ID
/var/spool뉴스 / 프린터큐 / 기타 작업에 대한 큐 저장소
/var/tmp용량이 큰 임시 파일이나 오래 사용되는 임시파일 저장소
 
/proc/1프로세스 1번에 대한 각종 정보
/proc/cpuinfo프로세서에 대한 정보 (종류 / 제조사 / 모델 / 성능)
/proc/devices현재 커널에서 실행중인 디바이스 드라이버 정보
/proc/dma현재 사용중인 DMA 채널 정보
/proc/filesystems커널에서 사용중인 파일 시스템 정보
/proc/interrupts시스템에서 사용중인 인터럽트 정보
/proc/ioports현재 사용중인 I/O 포트 정보
/proc/kcore시스템의 물리적 메모리에 대한 이미지 정보
/proc/kmsg커널 메시지 (syslog)
/proc/ksyms커널의 심볼릭 테이블
/proc/loadavg시스템의 로드 평균 (현재 시스템에 인가되고 있는 작업)
/proc/meminfo시스템의 메모리 사용에 대한 정보 (물리 메모리와 스왑 메모리)
/proc/modules현재 로드된 모듈에 대한 정보
/proc/net네트워크 프로토콜에 대한 정보
/proc/self자신의 프로세스 정보를 담고 있는 심볼릭 링크 
(서로 다른 프로세스에서 링크를 참조하는 경우, 각각 다른값을 가진다)
/proc/stat시스템 상태 정보
/proc/uptime시스템 가동후 시간
/proc/version커널 버전

2008년 6월 4일 수요일

[WINDOWS] agentctl start error

I have 10 computers running Windows XP Pro, 10 computers can't start the Oracle Agent. Why?
agntsrvc.log ========= -------------- [OracleOraHome92Agent] ------------ Sending initial service status.. Commandline is "C:\oracle\ora92\bin\dbsnmpwd.bat" -agent_name OracleOraHome92Agent 2. WAIT_OBJECT_0: Agent exited with retCode 0. Agent failed to startup. Check C:\oracle\ora92\network\log\OracleOraHome92Agent.nohup for details
OracleOraHome92Agent.nohup ======================= Service name is OracleOraHome92Agent nmiumini_initializeUM: Unable to initialize UQFailed while initializing user subsystem Error initializing subsystems Agent exited on with return value 55 Could not start agent. Initialization failure Agent startup failed. Check C:\oracle\ora92\network\log\OracleOraHome92Agent.nohup for details
dbsnmp.log =========
DBSNMP for 32-bit Windows: Version 9.2.0.1.0 - Production on 24-MAY-2006 14:59:09
Copyright (c) 2002 Oracle Corporation. All rights reserved.
System parameter file is C:\oracle\ora92\network\admin\snmp_ro.ora Log messages written to C:\oracle\ora92\network\log\dbsnmp.log Trace information written to C:\oracle\ora92\network\trace\dbsnmp_2420.trc Trace level is currently 0
thank you...

회신 작성자에게 회신 전달


Sybrand Bakker 프로필 보기 추가 옵션 2006년5월25일, 오후2시15분
뉴스그룹: comp.databases.oracle.server보낸 사람: Sybrand Bakker <post...@sybrandb.demon.nl>날짜: Thu, 25 May 2006 07:15:11 +0200지역: 2006년5월25일(목) 오후2시15분제목: Re: Oracle9iHome+Agent+WinXP not start작성자에게 회신 전달 인쇄 개별 메시지 원문 보기 이 메시지 신고 이 작성자의 메시지 찾기 On 24 May 2006 14:41:47 -0700, "Minothauro" <wmagli...@gmail.com> wrote:

- 따온 텍스트 숨기기 -- 따온 텍스트 보기 -
>Hi.
>I have 10 computers running Windows XP Pro, 10 computers can't start >the Oracle Agent. Why?
>agntsrvc.log >========= >-------------- [OracleOraHome92Agent] ------------ >Sending initial service status.. >Commandline is "C:\oracle\ora92\bin\dbsnmpwd.bat" -agent_name >OracleOraHome92Agent >2. WAIT_OBJECT_0: Agent exited with retCode 0. >Agent failed to startup. >Check C:\oracle\ora92\network\log\OracleOraHome92Agent.nohup for >details
>OracleOraHome92Agent.nohup >======================= >Service name is OracleOraHome92Agent >nmiumini_initializeUM: Unable to initialize UQFailed while initializing >user subsystem >Error initializing subsystems >Agent exited on with return value 55 >Could not start agent. Initialization failure >Agent startup failed. Check >C:\oracle\ora92\network\log\OracleOraHome92Agent.nohup for details
>dbsnmp.log >=========
>DBSNMP for 32-bit Windows: Version 9.2.0.1.0 - Production on >24-MAY-2006 14:59:09
>Copyright (c) 2002 Oracle Corporation. All rights reserved.
>System parameter file is C:\oracle\ora92\network\admin\snmp_ro.ora >Log messages written to C:\oracle\ora92\network\log\dbsnmp.log >Trace information written to >C:\oracle\ora92\network\trace\dbsnmp_2420.trc >Trace level is currently 0
>thank you...

return value 55 is a known case, and definitely has articles on Metalink. Also as far as I remember nmiconf.log still exists (in $ORACLE_HOME/network/log) and has details about the initialization process/discovery process
The traditional fix is to delete all *.q, *.jou, *.inp, tcl*, dbsnmp.ver, services.ora in $ORACLE_HOME/network/agent
do NOT delete *vpp* files (this may be your case, you need to place dummies there, details on Metalink)
delete snmp_r[ow].ora in $ORACLE_HOME/network/admin
create a dummy snmp_ro.ora with only one line snmp.visible_services = ()
[출처] agentctl start error....작성자 늘 봄