1833822 Members
2493 Online
110063 Solutions
New Discussion

tape problem

 
SOLVED
Go to solution
matteo_4
Frequent Advisor

tape problem

Hi all,
i have a dat dds2 model external on my hp b180l it was ok in the past before today.

I try to backup a file into it:
tar -cvf /dev/rmt/0m myjob

but
reply to me
tar cannot open device /dev/rmt/0m

also mt -t /dev/rmt/0mnb rew
reply to me device busy

into the dat there is a new dds2 tape.

and also ioscan show me the tape CLAIMED.

Please help me.
6 REPLIES 6
David Burgess
Esteemed Contributor
Solution

Re: tape problem

Just a thought. Have you cleaned the heads recently? Is the tape write protected? Will another tape work?

Regards,

Dave.
G. Vrijhoeven
Honored Contributor

Re: tape problem

Hi,

I addition to david, could it be that the device is used by an other process?
check with ( man ) fuser.

fuser -cu /dev/rmt/0m

Gideon
Pete Randall
Outstanding Contributor

Re: tape problem

It definitely sounds like another process already owns the drive. Try using fuser to see if you can locate the process. Failing that, lsof is the perfect tool for this sort of situation. Here's a link for the 64 bit 11i version:

http://the-other.wiretapped.net/security/host-security/lsof/binaries/hpux/B.11.11/

and the 11.0 64 bit version:

http://the-other.wiretapped.net/security/host-security/lsof/binaries/hpux/B.11.00/vxfs/64/9000_785/


Pete

Pete
Elmar P. Kolkman
Honored Contributor

Re: tape problem

Sorry to disagree, but fuser -c works on mountpoints only, not on tape devices.
fuser -u /dev/rmt/0mnb
should do the trick.
Every problem has at least one solution. Only some solutions are harder to find.
Mark Grant
Honored Contributor

Re: tape problem

You could always try "mt -f /dev/rmt/0mn rel" or "st -f /dev/rmt/0mn -r" to attempt to release the device. It sounds like a SCSI lock.
Never preceed any demonstration with anything more predictive than "watch this"
matteo_4
Frequent Advisor

Re: tape problem

hi all
thank you very much there was a process that lock my tape.