| 이전 주제 보기 :: 다음 주제 보기 |
| 글쓴이 |
메시지 |
하수 손님
|
올려짐: 2005.1.18 화, 6:45 pm 주제: mount 에러... |
|
|
백업을 위해서 tape 드라이버를 별 생각없이 돌릴려고..(스크립트 재중) .앗 그런데 DUMP 가 돌다가 아웃되네요..open을 못하네요..ㅡ.ㅡ
[root@ bin]# backup_full (백업스크립트 실행)
/dev/tape: Device or resource busy
DUMP: Date of this level 0 dump: Tue Jan 18 18:41:10 2005
DUMP: Dumping /dev/cciss/c0d0p1 (/) to /dev/nst0
DUMP: Added inode 8 to exclude list (journal inode)
DUMP: Added inode 7 to exclude list (resize inode)
DUMP: Label: /
DUMP: mapping (Pass I) [regular files]
DUMP: mapping (Pass II) [directories]
DUMP: estimated 1673225 tape blocks.
DUMP: Cannot open output "/dev/nst0".
DUMP: Do you want to retry the open?: ("yes" or "no") no
DUMP: The ENTIRE dump is aborted.
DUMP: Date of this level 0 dump: Tue Jan 18 18:41:33 2005
DUMP: Dumping /dev/cciss/c0d0p3 (/data) to /dev/nst0
DUMP: Added inode 8 to exclude list (journal inode)
DUMP: Added inode 7 to exclude list (resize inode)
DUMP: Label: /data
...........................
그래서 nst0 디바이스를 마운트하려 시도했습니다.
[root@ bin]#mount /dev/nsto
mount: can't find /dev/nsto in /etc/fstab or /etc/mtab
당연히 안되었지요...
/etc/fstab 나 /etc/mtab 파일을 열어보면 nst0 디바이스에 관한 내용은 존재하질 않습니다.
도움을 주시면 감흡하겠습니다... |
|
| 위로 |
|
 |
truefeel 카페 관리자
가입: 2003년 7월 24일 올린 글: 1277 위치: 대한민국
|
올려짐: 2005.1.19 수, 5:46 pm 주제: Re: mount 에러... |
|
|
| 하수 씀: | 백업을 위해서 tape 드라이버를 별 생각없이 돌릴려고..(스크립트 재중) .앗 그런데 DUMP 가 돌다가 아웃되네요..open을 못하네요..ㅡ.ㅡ
[root@ bin]# backup_full (백업스크립트 실행)
/dev/tape: Device or resource busy
DUMP: Date of this level 0 dump: Tue Jan 18 18:41:10 2005
DUMP: Dumping /dev/cciss/c0d0p1 (/) to /dev/nst0
DUMP: Added inode 8 to exclude list (journal inode)
DUMP: Added inode 7 to exclude list (resize inode)
DUMP: Label: /
DUMP: mapping (Pass I) [regular files]
DUMP: mapping (Pass II) [directories]
DUMP: estimated 1673225 tape blocks.
DUMP: Cannot open output "/dev/nst0".
DUMP: Do you want to retry the open?: ("yes" or "no") no
DUMP: The ENTIRE dump is aborted.
DUMP: Date of this level 0 dump: Tue Jan 18 18:41:33 2005
DUMP: Dumping /dev/cciss/c0d0p3 (/data) to /dev/nst0
DUMP: Added inode 8 to exclude list (journal inode)
DUMP: Added inode 7 to exclude list (resize inode)
DUMP: Label: /data
...........................
|
/dev/tape: Device or resource busy 메시지 대로라면 이미 사용중인 것 같은데요.
먼저 mt 명령으로 driive 상태를 확인해보세요.
| 코드: |
mt -f /dev/nst0 status
|
|
|
| 위로 |
|
 |
하수 손님
|
올려짐: 2005.1.20 목, 12:35 am 주제: 이어서..질문 |
|
|
운영자님이 알려주신대로 nst0의 상태를 조회본 결과 입니다.
어찌 대처를 해야 할지..
mt -f /dev/nst0 status
/dev/nst0: Device or resource busy
말씀하신 사용 중이라는 말씀은 ....ㅡ.ㅡ 테입도 안 들어가 있는데용... |
|
| 위로 |
|
 |
truefeel 카페 관리자
가입: 2003년 7월 24일 올린 글: 1277 위치: 대한민국
|
올려짐: 2005.1.20 목, 11:12 am 주제: Re: 이어서..질문 (tape) |
|
|
| 하수 씀: | 운영자님이 알려주신대로 nst0의 상태를 조회본 결과 입니다.
어찌 대처를 해야 할지..
mt -f /dev/nst0 status
/dev/nst0: Device or resource busy
말씀하신 사용 중이라는 말씀은 ....ㅡ.ㅡ 테입도 안 들어가 있는데용... |
전에 잘 되던건데, 갑자기 그런건지 궁금하네요.
혹시 다른 프로세스에서 테잎 드라이브를 잡고 있는 것은 아닌지요?
ps -aux 나 lsof ( lsof|grep '/dev/' )로 확인해보실래요 |
|
| 위로 |
|
 |
하수 손님
|
올려짐: 2005.1.20 목, 1:53 pm 주제: 해결..그리고 결과.. |
|
|
늘 느끼는거지만...문제의 해결은 때론 쉬운데 있을 수도 있다는걸 새삼 느껴봅니다.. 머 물론 이게 다 내공이 딸리기 때문이겠지만요
진호님 말씀대로 원인은 이미 다른 프로세스가 nst0를 사용 중이었습니다.
서버가 장기간 별 조치없이 운영되다보니..실행 프로세스가 많아지고 안 죽고 버티고 있는 프로세스들도 많아 지네요...이걸 정리하는 방법이 또 궁금해 집니다. 각설하고...
ps -aux 로 조회결과..
root 6531 0.0 0.0 3064 844 pts/4 T Jan18 0:00 /bin/sh ./backup_full
root 6535 0.0 0.0 916 88 pts/4 T Jan18 0:00 dump -0uf /dev/nst0 /
root 6536 0.0 0.0 924 88 pts/4 T Jan18 0:00 dump -0uf /dev/nst0 /
root 6537 0.0 0.0 916 88 pts/4 T Jan18 0:00 dump -0uf /dev/nst0 /
root 6538 0.0 0.0 916 88 pts/4 T Jan18 0:00 dump -0uf /dev/nst0 /
root 6539 0.0 0.0 916 88 pts/4 T Jan18 0:00 dump -0uf /dev/nst0 /
root 6543 0.0 0.0 3064 844 pts/4 T Jan18 0:00 /bin/sh ./backup_full
root 6549 0.0 0.0 920 88 pts/4 T Jan18 0:00 dump -0uf /dev/nst0 /
root 6550 0.0 0.0 924 88 pts/4 T Jan18 0:00 dump -0uf /dev/nst0 /
root 6697 0.0 0.1 3412 1068 pts/5 S Jan18 0:00 bash
root 7017 0.0 0.0 2284 464 pts/5 S Jan18 0:00 man mt
이와같이 nst0 디바이스는 사용 중이었습니다...몇개씩 겹쳐 있네요..ㅡ.ㅡ
kill로 모두 죽인후..디바이스 상태 입니다.
[root@]# mt -f /dev/nst0 status
SCSI 2 tape drive:
File number=-1, block number=-1, partition=0.
Tape block size 0 bytes. Density code 0x0 (default).
Soft error count since last status=0
General status bits on (50000):
DR_OPEN IM_REP_EN
보시는봐와 같이 정상으로 돌아왔습니다.
진호님의 친절한 지도 편달에 감사드립니다..고수의 실날같은 가르침도 하수에게는 내공으로 쌓입니다..ㅋㅋㅋ |
|
| 위로 |
|
 |
|