Link to home
Start Free TrialLog in
Avatar of ratnaprasad123
ratnaprasad123

asked on

Not able to kill my Tape Backup Session

Hi ,
  I have a problem . I used tar -rvf /dev/st0 /BACKUP/export for my backup on to DLT Tape but it throwing an error which is pasted below.

[root dev]# tar -tvf /dev/st0
tar: /dev/st0: Cannot open: Device or resource busy
tar: Error is not recoverable: exiting now

I tried to kill the session but its not getting killed . Is there any command to make this process killed other than reboot the server . I did the following Process .

[root dev]# ps -ef|grep tar
oracle    1526     1  0 May20 ?        00:00:00 oidmon start
oracle   26341     1  0 16:56 ?        00:00:00 tar -rvf /dev/st0 /BACKUP/export
root     32408 31870  0 20:53 pts/2    00:00:00 grep tar
[root dev]# kill -9 26341
[root dev]# ps -ef|grep tar
oracle    1526     1  0 May20 ?        00:00:00 oidmon start
oracle   26341     1  0 16:56 ?        00:00:00 tar -rvf /dev/st0 /BACKUP/export
root     32412 31870  0 20:53 pts/2    00:00:00 grep tar


Your Inputs are highly appreciated .

Regards ,
ASKER CERTIFIED SOLUTION
Avatar of cjl7
cjl7
Flag of Sweden image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
please provide output of
ps auxw| grep tar

need to know in what state this process is
Avatar of DonConsolio
probably process is in "waiting for I/O" status

try manually ejecting the tape, this often aborts the I/O and your process can terminate