Is it impossible to check tape status on AIX without disturbing position ??

jblackmore_at_post.com
Date: 10/11/05


Date: 11 Oct 2005 08:29:49 -0700

We are migrating from a Tru64 to AIX V5.2 platform, and I have a bunch
of small utility scripts which need to move across.

One of which checked the backup tapes were loaded and not write
protected before I go home (system is at another site, and tapes are
changed by the support staff there).

On Tru64 the output from mt status shows media status, so you can tell
if tape is missing (DEV_OFFLINE) or write protected (DEV_WRTLCK).

On AIX mt status just seems to give the device status, so there is no
output difference between tape loaded/unloaded/write protected.

I googled usenet, and found someone suggesting doing a rewind and check
status, but if the tape is in the middle (waiting for an incremental
backup), this is no good - so can anyone suggest a way of checking tape
media status (loaded and not write protected!) without interfering with
the tape position - obviously this won't deliberately run during a
backup or restore, but would be nice to think it wouldn't matter if it
did.

The suggestion from google was to do a rewind and check status as
follows, this would show if tape loaded, but not if its write
protected:

tctl -f /dev/rmtX rewind
echo "Exit code= $?"
0 -> Tape in
2 -> Error

Thanks in advance for any suggestions !

James.



Relevant Pages

  • 7012-370 AIX 3.2.55
    ... Courtsey of Tim and Michael obtained a AIX 3.2.55 install tape. ... Also tried booting off the tape in service mode but it got to c31 and the ... Would really like to install AIX 3.2.55 in GUI mode on this machine as I ...
    (comp.sys.ibm.ps2.hardware)
  • Re: RS/6000 320H
    ... DB25, the DB9, and the special Berg connector that only IBM used on ... How AIX can be reinstalled? ... AIX installation media (tape or CD-ROM), put the key into the Service ...
    (comp.sys.ibm.ps2.hardware)
  • Re: Restoring data backed up with AIX.
    ... that prevent FTP from tape. ... How about FTP from z/OS tape to AIX and then restore? ...
    (bit.listserv.ibm-main)
  • Re: Does Kermit have a data size limit? [was RE: getting data off an OpenVMS Alpha to Microsoft Win
    ... Steve Spires wrote: ... > The problem I have is getting the data OFF the tape on the Tru64 box. ... $ DISMOUNT/UNLOAD ddcu: ...
    (comp.os.vms)
  • Re: AIX 3.2.5 lovers only!
    ... Would appreciate a copy of your AIX 3.2.5 cd. ... Would you like some 8mm install tapes also? ... Will need the 8mm install tape thanks. ... Will have to crank up my IBM 7208-011 8mm tape drive which has an Exabyte ...
    (comp.sys.ibm.ps2.hardware)