Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

weird behaviour accessing tape device

0 views
Skip to first unread message

Stuart J. Browne

unread,
Oct 15, 2002, 8:02:11 PM10/15/02
to
I have an OSR5 machine. Tape inserted into the drive, but cannot access the
rewind, or no rewind device nodes, but can use the control node (x)
successfully.

Umm, let's just let the commands talk.

407# tape rewind /dev/xStp0
408# tape rewind /dev/rStp0
tape: can't open '/dev/rStp0': No such device or address
411# tape status /dev/xStp0
status : ready beginning-of-tape
soft errors : 0
hard errors : 0
underruns : 0
412# cd /dev
413# ls -l *Stp*
crw-rw-rw- 5 root root 46, 8 Oct 14 01:01 nrStp0
crw-rw-rw- 5 root root 46, 0 May 3 2000 rStp0
crw-rw-rw- 3 root root 46,128 May 3 2000 xStp0
414# uptime
9:23am up 21 days, 18:35, 9 users, load average: 0.00, 0.00, 0.00
415# tape rewind /dev/xStp0
416# tape rfm /dev/xStp0
417# tape status /dev/xStp0
status : ready at-filemark
soft errors : 0
hard errors : 0
underruns : 0
418# tape rewind /dev/xStp0
420# cd /tmp
421# find . -print | cpio -ocv -O /dev/rStp0
cpio: cannot open </dev/rStp0> for output.
422# find . -print | cpio -ocv -O /dev/nrStp0
cpio: cannot open </dev/nrStp0> for output.
423# find . -print | cpio -ocv -O /dev/xStp0
.
daemonstat.any.620
data.out
cpio: I/O error on write() : Permission denied (error 13)


Now, this is weird. That's all I can say. Has anybody else seen behaviour
like this before?

OS: SCO:Unix::5.0.5Eb rs505a.Unix505.1.0a oss497c.Unix505.1.0a
oss600a.Unix505 OSS621A.505.SCO.Unix.RTS


bkx


Tom Podnar

unread,
Oct 15, 2002, 10:33:16 PM10/15/02
to
The commands don't say much.

1) What is the make and model of tape drive?

2) Is this a new installation, or has the device previously worked and
is now not working?


Tom
---
D. Thomas Podnar - President t...@microlite.com
Microlite Corporation 724-375-6711 Voice
2315 Mill Street 724-375-6908 Fax
Aliquippa PA 15001-2228 888-257-3343 Toll Free Sales
+-----------------------------------------------------------+
| Makers of |
| BackupEDGE SS - Data Archiving Software For UNIX & Linux |
| RecoverEDGE - Network-Enabled Smart Disaster Recovery |
| for Linux, Open UNIX 8, UnixWare 7.1, |
| and OpenServer 5.0.x. |
|http://www.microlite.com ftp://ftp.microlite.com|
|Now Supporting: |
| Tape, Changer, CD-R/RW, DVD-RAM, DVD-R, DVD+R, and DVD+RW |
+-----------------------------------------------------------+

Stuart J. Browne

unread,
Oct 15, 2002, 11:06:15 PM10/15/02
to

Sorry, yes.

Existing/working setup/install of tape/osr.

HP LC2000, HP Dat24i (DDS3 Internal, on it's own SCSI (slha) bus, id 2).

Stopped working properly a day or two ago, and started behaving like this.

bkx


Bela Lubkin

unread,
Oct 16, 2002, 1:17:02 AM10/16/02
to sco...@xenitec.on.ca
Stuart J. Browne wrote:

> > > I have an OSR5 machine. Tape inserted into the drive, but cannot access the
> > > rewind, or no rewind device nodes, but can use the control node (x)
> > > successfully.

> > > 421# find . -print | cpio -ocv -O /dev/rStp0


> > > cpio: cannot open </dev/rStp0> for output.

> > > OS: SCO:Unix::5.0.5Eb rs505a.Unix505.1.0a oss497c.Unix505.1.0a
> > > oss600a.Unix505 OSS621A.505.SCO.Unix.RTS

> Existing/working setup/install of tape/osr.


>
> HP LC2000, HP Dat24i (DDS3 Internal, on it's own SCSI (slha) bus, id 2).
>
> Stopped working properly a day or two ago, and started behaving like this.

Has the machine been rebooted recently (like, say, a day or two ago?)
Put it another way: has the drive worked during the current uptime?

cpio's "cannot open for output" doesn't give us an errno. Neither,
unfortunately, does tar or shell redirection in sh or ksh. But csh will
do. What do you get from:

# csh -c 'echo foo > /dev/rStp0'

?

(You aren't _supposed_ to be able to write data to /dev/xStp0, and the
various actions like rewind aren't necessarily supposed to work on
rStp0, so all that is red herrings -- the important thing is your
inability to write to rStp0.)

Is some other process currently using the tape drive?

# fuser /dev/?Stp0
# lsof /dev/?Stp0 # from ftp://vic.cc.purdue.edu/pub/tools/unix/lsof

>Bela<

Stuart J. Browne

unread,
Oct 16, 2002, 1:52:10 AM10/16/02
to
"Bela Lubkin" <be...@caldera.com> wrote in message
news:2002101522...@mammoth.ca.caldera.com...

Previous restart was 20+ days ago. We arranged a reboot today, and the
device is working as expected again.

I know I'm not supposed to be able to write data to the xStp0 device, but at
the time it was worth a try. As for the other actions, they were working up
until 2 days ago. They are working after the reboot today.

If I see the behaviour again on the machine, I'll check to see what
fuser/lsof returns. I'll also show exit states as well (sorry, didn't think
of posting them *cringe*).

bkx


Tom Podnar

unread,
Oct 16, 2002, 11:03:39 PM10/16/02
to

If the problem returns, and there is no process attached to the devices,
but it just doesn't work, bring it up again and we'll run a
TapeAlert diagnostic and ask the tape drive if it is aware of any
problems.

Tom Podnar
Microlite

Bela Lubkin

unread,
Oct 17, 2002, 3:18:32 AM10/17/02
to sco...@xenitec.on.ca
Stuart J. Browne wrote:

> "Bela Lubkin" <be...@caldera.com> wrote in message
> news:2002101522...@mammoth.ca.caldera.com...

> > cpio's "cannot open for output" doesn't give us an errno. Neither,


> > unfortunately, does tar or shell redirection in sh or ksh. But csh will
> > do. What do you get from:
> >
> > # csh -c 'echo foo > /dev/rStp0'
> >
> > ?

> If I see the behaviour again on the machine, I'll check to see what


> fuser/lsof returns. I'll also show exit states as well (sorry, didn't think
> of posting them *cringe*).

Not exit states. Very few programs exit with a code equal to the system
error number (errno) that causes them to exit. It would be useful to
know what the precise error was that's being masked behind "cannot open
for output".

Probably much more useful to have Tom Podnar diagnose the tape drive, of
course...

>Bela<

0 new messages