Tape device temporarily unavailable


 
Thread Tools Search this Thread
Operating Systems AIX Tape device temporarily unavailable
# 1  
Old 09-14-2011
Tape device temporarily unavailable

Hi All,

After (by accident) closing a session that ran a restore command I can not access the tape drive anymore.

I get the following error:
Code:
# tctl -f /dev/rmt0 rewind
/dev/rmt0: Resource temporarily unavailable

But I cannot find any processes associated with the tape device:
Code:
# ps -ef | egrep "restore|rmt"
    root 4595872 4321502   0 09:59:54 pts/71  0:00 egrep restore|rmt
# fuser /dev/rmt0
/dev/rmt0:

Although AIX says that the device is available:
Code:
# lsdev -Cc tape
rmt0 Available 06-08-01-0,0 LVD SCSI 4mm Tape Drive

I cannot remove the device and then add it:
Code:
# rmdev -dl rmt0
Method error (/etc/methods/ucfgdevice):
        0514-062 Cannot perform the requested function because the
                 specified device is busy.

Still I can access the attributes of the device:
Code:
# lsattr -El rmt0
block_size    1024  BLOCK size (0=variable length)       True
compress      yes   Use data COMPRESSION                 True
density_set_1 71    DENSITY setting #1                   True
density_set_2 38    DENSITY setting #2                   True
extfm         yes   Use EXTENDED file marks              True
mode          yes   Use DEVICE BUFFERS during writes     True
ret           no    RETENSION on tape change or reset    True
ret_error     no    RETURN error on tape change or reset True
size_in_mb    36000 Size in Megabytes                    False

Which procedure should I follow to get access to the tape device again?
# 2  
Old 09-14-2011
There is a reset option for tctl you could try:
Code:
       reset
            Sends a bus device reset (BDR) to the tape device. The BDR will only be sent if the device cannot be opened and
            is not busy.

Even though you wrote it is busy, I'd try it.

If it doesn't help, can you turn it's power off and on or do a "reset" at it's panel?
# 3  
Old 09-14-2011
zaxxons suggestion is sound and i'd go for it. If it still doesn't help you could try to identify the process holding the device (maybe there is one, not named "restore" or "rmt"?) by using the "fuser" command (or "strace").

I hope this helps.

bakunin
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Fork: Resource temporarily unavailable

Hi friends, Working on a linux X86-64 bit system, I suddenly started getting this error (mentioned in subject) from various scripts. I googled, found that there are couple of reason which causes this issue. - less memory I am pretty sure, memory seems to be stable on my system and at the... (15 Replies)
Discussion started by: clx
15 Replies

2. Programming

[ERROR:Resource temporarily unavailable!] Serial writing by termios library

Hello, I am using the termios library to write data that I get from a Bluetooth device to a modem via serial. The data arrive from the Bluetooth device correctly every 50ms and I have to bypass them on the serial ttyUSB3 where it is connected to a modem connected to a socket with static IP. The... (10 Replies)
Discussion started by: enaud
10 Replies

3. UNIX for Dummies Questions & Answers

Fork: Resource Temporarily Unavailable

I wrote a script that works most of the time but gave me fork: resource temporarily unavailable some of the time. I restarted my computer and now it runs fine but googling "fork: resource temporarily unavailable" and looking on the forums has not actually helped me figure out what exactly I... (3 Replies)
Discussion started by: monstrousturtle
3 Replies

4. UNIX for Advanced & Expert Users

fork: Resource temporarily unavailable , server unexpectedly unavailable network connection

Solaris 10 Server refuse to connect :wall: fork: Resource temporarily unavailable , server unexpectedly unavailable network connection , refuse error, disconnect message, fatal error type2, (protocol error type2) Issue has been resolved after taken few steps :b: First of all need to check... (1 Reply)
Discussion started by: taherahmed
1 Replies

5. Red Hat

cannot set user id: Resource temporarily unavailable (not open file/open process related)

First post, sorry to be a bother but this one has been dogging me. I have a process user (java application server) that trips a resource limit every couple weeks and need help finding what limit we're hitting. First, this is what's running: This is the error when jobs are run or the... (0 Replies)
Discussion started by: Katahdin
0 Replies

6. UNIX for Dummies Questions & Answers

Resource temporarily unavailable Error In Socket

Hi, Now I am programming to communicate with some network printer through TCP Socket program.By sending command "\033E 1\r" to printer,causes, check the port for error normally. In my case i used following code bytesSent = send( sockfd, "\033E 1\r",sizeof("\033E 1\r"), 0); ... (1 Reply)
Discussion started by: kavinsivakumar
1 Replies

7. Solaris

Unix file temporarily unavailable

Morning, I logged on to my webserver today and checked /var/adm/messages. I just happen to run across this message: Sep 3 13:15:21 web1 nfs: file temporarily unavailable on the ser ver, retrying... Is there a problem with nfs? Are the files locked? (9 Replies)
Discussion started by: dr. phreeze
9 Replies

8. Solaris

fork: Resource temporarily unavailable - What can I check ?

Hi everybody, I have an Unix box running Solaris and every day for 1 hour or 2 the box is stuck and I can only get this error message when trying to type a command : bash-3.00$ vmstat 5 bash: fork: Resource temporarily unavailable How can I trace what's is going wrong with this box ?... (5 Replies)
Discussion started by: unclefab
5 Replies

9. Solaris

sendto failing "resource temporarily unavailable"

Well, I am not even sure if its failing, cause at the other end I have a select call and it wakes up and reads the data I sent fine. Ok here is the issue, I have a UDP socket(non blocking) through which I push some data to another port. At the other end I have select loop, waiting for this data.... (6 Replies)
Discussion started by: Naanu
6 Replies

10. Solaris

Device PS1 AC UNAVAILABLE

Hi im getting this error on my solaris server. sscprvmds001 picld: Device PS1 AC UNAVAILABLE Does anyone know what this means (1 Reply)
Discussion started by: dennisca
1 Replies
Login or Register to Ask a Question