1832688 Members
2785 Online
110043 Solutions
New Discussion

TAPE BUSY

 
dhanish
Regular Advisor

TAPE BUSY

hi,
i have a dlt tape drive on my hp system )/dev/rmt/1m is the device file , i am not able to eject the tape , it says tape busy..how can i kill that process which is using tape and eject the tape.

thnks
Never Say Die
7 REPLIES 7
Helen French
Honored Contributor

Re: TAPE BUSY

which backup are you using ? for eg: if you are using tar, then:
# ps -aef | grep tar

You can also try this command:

# ps -aef | grep dev

Once you find out the processes, then kill it starting from child process. If you are using any backup tools like OB, legato etc, then use the GUI/command utilities for killing the process. Otherwise use kill command.
Life is a promise, fulfill it!
MANOJ SRIVASTAVA
Honored Contributor

Re: TAPE BUSY

Hi Nitin


In case you are usinf tar , dd , cpio just grep on that process , also you may try to do a fuser on the device file name to get the list of porcesses asccoiated it , go ahead and kill it , unless it is not a controoler ( on the tape drive ) which is hung , you should be good to go , incase it ti shte controller hung status then you wuill hve to reset it ofcourse this is SCSI bus so you will have to recycle the sysem.



Manoj Srivastava
S.K. Chan
Honored Contributor

Re: TAPE BUSY

Find out what processes is hold up the tape drive ..

# fuser /dev/rmt/1m
fuser: 2456c

For example from the above is process 2456. So you would ..

# ps -ef|grep 2456
==> list what is the process for 2456

Kill it appropriately..

# kill 2456
PIYUSH D. PATEL
Honored Contributor

Re: TAPE BUSY

Hi,

You can kill the processes involved with the tar or the cpio command which you gave. Or else you may have to reset the DLT first and still if the problem doesnt get solved then you would have to restart the server also.

Piyush
dhanish
Regular Advisor

Re: TAPE BUSY

Hi,
Thanks to all who replied ..it happened to be tape dribve problem even after rebooting the machine the tape is not coming out ...i believe there is a problem with the tape drive itself.
Never Say Die
Helen French
Honored Contributor

Re: TAPE BUSY

Did you manually try ejecting the tape ? Use the front pannel controls for doing this and then use the 'handle' to take the media out.
Life is a promise, fulfill it!
harry d brown jr
Honored Contributor