tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
* SUMMARY: (PARTIAL) dd close error
@ 2000-06-26 14:16 Wanderley Mendes
  0 siblings, 0 replies; only message in thread
From: Wanderley Mendes @ 2000-06-26 14:16 UTC (permalink / raw)
  To: tru64-unix-managers

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: multipart/mixed; boundary="--Boundary_(ID_ZVdcmsC0E4wZvKW7A2opXg)", Size: 5299 bytes --]


--Boundary_(ID_ZVdcmsC0E4wZvKW7A2opXg)
Content-type: text/plain; charset=iso-8859-1
Content-transfer-encoding: 8BIT

Hi fellows,

Thanks to:
Jim Belonis
h.b.j.ensing@kpn.com
Johannes Markstr�m <jomar@ikp.liu.se>
Oisin McGuinness
alan@nabeth.cxo.dec.com

    First of all, I must say that I was using two dd commands to test
the performance of vdump, but the conclusion was that it's the same with
or without it, and more, the "dd close error" happens on both forms.
    Second, due the size of all filesystems I know that just one tape is
not enough and all that I want is the multivolume functionality of dd
command.
    The problem is that for any unknown reason, the dd fails at the end
of the first tape, giving me no possibility to treat the error via
Expect routines, as I do normally when using just vdump for local
filesystems. But my jukebox is directly attached to one host and it's
the only storage that I have, so I must use dd to do remote vdumps of
other hosts.
    So, I don't know what dd is trying to do when it says "Please wait
for file closing", maybe it finds the end of tape, but there are still
some data in cache to write and this "no more room" causes the error
(?!?).
    Another way maybe is try to monitor the tape used and do something
just before the end of tape through Expect. I can do this, but it's
disappointed.

    Any idea?

Thanks


Wander
-------------------------------
-------------------------------
Original question:


Hi Managers,

I'm facing a weird problem with "dd" when using the following command
inside a shell script:

/usr/bin/rsh host_a "/sbin/vdump -0f - /QuarterBack/clone_users |
/sbin/dd ibs=64k obs=64k " | /sbin/dd ibs=64k obs=64k
of=/dev/nrmt1h

At the end of tape, dd issues the message:

Reached end of medium for /dev/nrmt1h; Please wait for file closing
dd close error: I/O error

... and aborts the script.

I've really failed to find a solution or anything like that on the
archives.
I'm using a TZ87 DLT Drive and OS Version is 4.0F patch kit # 1 (I
know...I know....)

--
    ----------------------=======----------------------
    Wanderley O. Mendes
    Software Specialist         wander@cptec.inpe.br
    Phone: +55-12-560-8432      Fax: +55-12-560-8435
    INPE/CPTEC - Cachoeira Paulista - Sao Paulo - Brazil
    ----------------------=======----------------------



--Boundary_(ID_ZVdcmsC0E4wZvKW7A2opXg)
Content-type: text/html; charset=us-ascii
Content-transfer-encoding: 7BIT

<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
Hi fellows,
<p>Thanks to:
<br>Jim Belonis
<br>h.b.j.ensing@kpn.com
<br>Johannes Markstr&ouml;m &lt;jomar@ikp.liu.se>
<br>Oisin McGuinness
<br>alan@nabeth.cxo.dec.com
<p>&nbsp;&nbsp;&nbsp; First of all, I must say that I was using two dd
commands to test the performance of vdump, but the conclusion was that
it's the same with or without it, and more, the "dd close error"&nbsp;happens
on both forms.
<br>&nbsp;&nbsp;&nbsp; Second, due the size of all filesystems I know that
just one tape is not enough and all that I want is the multivolume functionality
of dd command.
<br>&nbsp;&nbsp;&nbsp; The problem is that for any unknown reason, the
dd fails at the end of the first tape, giving me no possibility to treat
the error via Expect routines, as I&nbsp;do normally when using just vdump
for local filesystems. But my jukebox is directly attached to one host
and it's the only storage that I have, so I&nbsp;must use dd to do remote
vdumps of other hosts.
<br>&nbsp;&nbsp;&nbsp; So, I don't know what dd is trying to do when it
says "Please wait for file closing", maybe it finds the end of tape, but
there are still some data in cache to write and this "no more room"&nbsp;causes
the error (?!?).
<br>&nbsp;&nbsp;&nbsp; Another way maybe is try to monitor the tape used
and do something just before the end of tape through Expect. I&nbsp;can
do this, but it's disappointed.
<p>&nbsp;&nbsp;&nbsp; Any idea?
<p>Thanks
<br>&nbsp;
<p>Wander
<br>-------------------------------
<br>-------------------------------
<br>Original question:
<br>&nbsp;
<p>Hi Managers,
<p>I'm facing a weird problem with "dd" when using the following command
inside a shell script:
<p>/usr/bin/rsh host_a "/sbin/vdump -0f - /QuarterBack/clone_users | /sbin/dd
ibs=64k obs=64k " | /sbin/dd ibs=64k obs=64k
<br>of=/dev/nrmt1h
<p>At the end of tape, dd issues the message:
<p>Reached end of medium for /dev/nrmt1h; Please wait for file closing
<br>dd close error: I/O error
<p>... and aborts the script.
<p>I've really failed to find a solution or anything like that on the archives.
<br>I'm using a TZ87 DLT Drive and OS Version is 4.0F patch kit # 1 (I
know...I know....)
<pre>--&nbsp;
&nbsp;&nbsp;&nbsp; ----------------------=======----------------------
&nbsp;&nbsp;&nbsp; Wanderley O. Mendes&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp; Software Specialist&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; wander@cptec.inpe.br&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp; Phone: +55-12-560-8432&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Fax: +55-12-560-8435
&nbsp;&nbsp;&nbsp; INPE/CPTEC - Cachoeira Paulista - Sao Paulo - Brazil&nbsp;
&nbsp;&nbsp;&nbsp; ----------------------=======----------------------</pre>
&nbsp;</html>

--Boundary_(ID_ZVdcmsC0E4wZvKW7A2opXg)--

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2000-06-26 14:16 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-06-26 14:16 SUMMARY: (PARTIAL) dd close error Wanderley Mendes

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox