Unix Technical Forum

tape device busy

This is a discussion on tape device busy within the Sun Solaris Administration forums, part of the Solaris Operating System category; --> I backup the disk by the unix command ufsdump. Then I abort the backup process by pressing <Ctrl> <C>. ...


Go Back   Unix Technical Forum > Unix Operating Systems > Solaris Operating System > Sun Solaris Administration

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-12-2008, 06:30 AM
TCMa
 
Posts: n/a
Default tape device busy

I backup the disk by the unix command ufsdump.
Then I abort the backup process by pressing <Ctrl> <C>.
This message appears:
DUMP: NEEDS ATTENTION: Do you want to abort dump?: ("yes" or "no")

I entered "yes".
Then tape drive is busy:

# mt -f /dev/rmt/0cn status
/dev/rmt/0cn: Device busy

Is there a unix command make the tape device not busy?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 01-12-2008, 06:30 AM
Anthony Mandic
 
Posts: n/a
Default Re: tape device busy

In comp.unix.solaris TCMa <ma77777777772000@yahoo.ca> wrote:
> I backup the disk by the unix command ufsdump.


Hi! Excitement!

> Then I abort the backup process by pressing <Ctrl> <C>.


Try kill -15 next time to see if it makes a difference.
What is the output of 'uname -a' on your system?

> This message appears:
> DUMP: NEEDS ATTENTION: Do you want to abort dump?: ("yes" or "no")
>
> I entered "yes".
> Then tape drive is busy:
>
> # mt -f /dev/rmt/0cn status
> /dev/rmt/0cn: Device busy
>
> Is there a unix command make the tape device not busy?


Reboot.

Well, you did ask. ;-)

-am © 2003
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 01-12-2008, 06:30 AM
Beardy
 
Posts: n/a
Default Re: tape device busy

TCMa wrote:
> I backup the disk by the unix command ufsdump.
> Then I abort the backup process by pressing <Ctrl> <C>.
> This message appears:
> DUMP: NEEDS ATTENTION: Do you want to abort dump?: ("yes" or "no")
>
> I entered "yes".
> Then tape drive is busy:
>
> # mt -f /dev/rmt/0cn status
> /dev/rmt/0cn: Device busy
>
> Is there a unix command make the tape device not busy?


Did you wait for a period of time before checking the status? Tape
drives can take minutes to rewind/release their SCSI status...

Failing that, start with the usual ps/fuser/lsof to check for anything
holding the drive open.

--
I have observed that facts cannot be derived from observations - and
that's a fact ;^)

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 01-12-2008, 06:30 AM
Beardy
 
Posts: n/a
Default Re: tape device busy

Anthony Mandic wrote:
> In comp.unix.solaris TCMa <ma77777777772000@yahoo.ca> wrote:
>
>> I backup the disk by the unix command ufsdump.

>
>
> Hi! Excitement!
>
>
>> Then I abort the backup process by pressing <Ctrl> <C>.

>
>
> Try kill -15 next time to see if it makes a difference.
> What is the output of 'uname -a' on your system?
>
>
>> This message appears:
>> DUMP: NEEDS ATTENTION: Do you want to abort dump?: ("yes" or "no")
>>
>> I entered "yes".
>> Then tape drive is busy:
>>
>> # mt -f /dev/rmt/0cn status
>> /dev/rmt/0cn: Device busy
>>
>> Is there a unix command make the tape device not busy?

>
>
> Reboot.
>
> Well, you did ask. ;-)
>
> -am © 2003


Oh come on "AM" - at least you could have suggested "uadmin 2 0": that
way he would have required console-ish access to reboot a system that
might be corrupted. You're slipping ;^)

TCMa: please don't try with/without a SUN support contract...


--
I have observed that facts cannot be derived from observations - and
that's a fact.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 01-12-2008, 06:31 AM
Darren Dunham
 
Posts: n/a
Default Re: tape device busy

In comp.unix.solaris TCMa <ma77777777772000@yahoo.ca> wrote:
> I backup the disk by the unix command ufsdump.
> Then I abort the backup process by pressing <Ctrl> <C>.
> This message appears:
> DUMP: NEEDS ATTENTION: Do you want to abort dump?: ("yes" or "no")


> I entered "yes".
> Then tape drive is busy:


> # mt -f /dev/rmt/0cn status
> /dev/rmt/0cn: Device busy


> Is there a unix command make the tape device not busy?


Run 'fuser /dev/rmt/0cn' and see if it's open by a process.

--
Darren Dunham ddunham@taos.com
Unix System Administrator Taos - The SysAdmin Company
Got some Dr Pepper? San Francisco, CA bay area
< This line left intentionally blank to confuse you. >
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 01-12-2008, 06:39 AM
Anthony Mandic
 
Posts: n/a
Default Re: tape device busy

Beardy wrote:
>
> Cypherplug while sockpuppeting Anthony Mandic wrote:
> > In comp.unix.solaris TCMa <ma77777777772000@yahoo.ca> wrote:
> >
> >> I backup the disk by the unix command ufsdump.

> >
> > Hi! Excitement!
> >
> >> Then I abort the backup process by pressing <Ctrl> <C>.

> >
> > Try kill -15 next time to see if it makes a difference.
> > What is the output of 'uname -a' on your system?
> >
> >> This message appears:
> >> DUMP: NEEDS ATTENTION: Do you want to abort dump?: ("yes" or "no")
> >>
> >> I entered "yes".
> >> Then tape drive is busy:
> >>
> >> # mt -f /dev/rmt/0cn status
> >> /dev/rmt/0cn: Device busy
> >>
> >> Is there a unix command make the tape device not busy?

> >
> > Reboot.
> >
> > Well, you did ask. ;-)
> >
> > -am © 2003

>
> Oh come on "AM" - at least you could have suggested "uadmin 2 0": that
> way he would have required console-ish access to reboot a system that
> might be corrupted. You're slipping ;^)


If you examine the headers closely you'll notice that that post
wasn't one of mine but one by Plugger the putz (AKA Cypherpunk)
doing his usual sock puppetry. Who else but he and Don Kook
would be stupid enough to suggest a reboot? Perhaps Josh What's-
His-Name but Plugger is so dumb he has to log in as root because
the pathetic little script kiddie doesn't know how to create user
accounts yet. He even thinks a ^W is a vi command. How dumb is that?

-am © 2003

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 01-12-2008, 06:39 AM
dek
 
Posts: n/a
Default Re: tape device busy

try typing

mt -f /dev/rmt/? rewoff


"Anthony Mandic" <ace@plugger.com> wrote in message
news:3F797D7A.706260A8@plugger.com...
> Beardy wrote:
> >
> > Cypherplug while sockpuppeting Anthony Mandic wrote:
> > > In comp.unix.solaris TCMa <ma77777777772000@yahoo.ca> wrote:
> > >
> > >> I backup the disk by the unix command ufsdump.
> > >
> > > Hi! Excitement!
> > >
> > >> Then I abort the backup process by pressing <Ctrl> <C>.
> > >
> > > Try kill -15 next time to see if it makes a difference.
> > > What is the output of 'uname -a' on your system?
> > >
> > >> This message appears:
> > >> DUMP: NEEDS ATTENTION: Do you want to abort dump?: ("yes" or "no")
> > >>
> > >> I entered "yes".
> > >> Then tape drive is busy:
> > >>
> > >> # mt -f /dev/rmt/0cn status
> > >> /dev/rmt/0cn: Device busy
> > >>
> > >> Is there a unix command make the tape device not busy?
> > >
> > > Reboot.
> > >
> > > Well, you did ask. ;-)
> > >
> > > -am © 2003

> >
> > Oh come on "AM" - at least you could have suggested "uadmin 2 0": that
> > way he would have required console-ish access to reboot a system that
> > might be corrupted. You're slipping ;^)

>
> If you examine the headers closely you'll notice that that post
> wasn't one of mine but one by Plugger the putz (AKA Cypherpunk)
> doing his usual sock puppetry. Who else but he and Don Kook
> would be stupid enough to suggest a reboot? Perhaps Josh What's-
> His-Name but Plugger is so dumb he has to log in as root because
> the pathetic little script kiddie doesn't know how to create user
> accounts yet. He even thinks a ^W is a vi command. How dumb is that?
>
> -am © 2003
>



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 01-12-2008, 06:44 AM
Jaime Cardoso
 
Posts: n/a
Default Re: tape device busy

dek wrote:

> try typing
>
> mt -f /dev/rmt/? rewoff
>
>
> "Anthony Mandic" <ace@plugger.com> wrote in message
> news:3F797D7A.706260A8@plugger.com...
>
>>Beardy wrote:
>>
>>>Cypherplug while sockpuppeting Anthony Mandic wrote:
>>>
>>>>In comp.unix.solaris TCMa <ma77777777772000@yahoo.ca> wrote:
>>>>
>>>>
>>>>> I backup the disk by the unix command ufsdump.
>>>>
>>>> Hi! Excitement!
>>>>
>>>>
>>>>> Then I abort the backup process by pressing <Ctrl> <C>.
>>>>
>>>> Try kill -15 next time to see if it makes a difference.
>>>> What is the output of 'uname -a' on your system?
>>>>
>>>>
>>>>> This message appears:
>>>>> DUMP: NEEDS ATTENTION: Do you want to abort dump?: ("yes" or "no")
>>>>>
>>>>> I entered "yes".
>>>>> Then tape drive is busy:
>>>>>
>>>>> # mt -f /dev/rmt/0cn status
>>>>> /dev/rmt/0cn: Device busy
>>>>>
>>>>> Is there a unix command make the tape device not busy?
>>>>
>>>> Reboot.


Assuming you are using an external tape (a single tape, not a Robot)
turn off the drive
turn it on again AND press the eject button of the tape, hold the eject
button down until the tape exits the drive.

Mount the tape again and start your backup.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 01-12-2008, 06:45 AM
Joerg Schilling
 
Posts: n/a
Default Re: tape device busy

In article <3f8dd50e$0$5467$a729d347@news.telepac.pt>,
Jaime Cardoso <jaimec@solsuni.pt> wrote:
>dek wrote:


>>>>>> This message appears:
>>>>>> DUMP: NEEDS ATTENTION: Do you want to abort dump?: ("yes" or "no")
>>>>>>
>>>>>> I entered "yes".
>>>>>> Then tape drive is busy:
>>>>>>
>>>>>> # mt -f /dev/rmt/0cn status
>>>>>> /dev/rmt/0cn: Device busy
>>>>>>
>>>>>> Is there a unix command make the tape device not busy?
>>>>>
>>>>> Reboot.

>
>Assuming you are using an external tape (a single tape, not a Robot)
>turn off the drive
>turn it on again AND press the eject button of the tape, hold the eject
>button down until the tape exits the drive.
>
>Mount the tape again and start your backup.


The message comes because there still is a process waiting on the drive
to finish its current operation.

Use
smt -f /dev/rmt/0cn -wready status

Repeat, if it does abort after 120 seconds and the drive is not yet ready.
Note that smt understands the remote tape syntax used by ufsdump and star.

"smt" is part of the "star" package:


ftp://ftp.berlios.de/pub/star/aplha/

--
EMail:joerg@schily.isdn.cs.tu-berlin.de (home) Jörg Schilling D-13353 Berlin
js@cs.tu-berlin.de (uni) If you don't have iso-8859-1
schilling@fokus.fraunhofer.de (work) chars I am J"org Schilling
URL: http://www.fokus.fraunhofer.de/usr/schilling ftp://ftp.berlios.de/pub/schily
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 08:33 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com