Usenet comp.unix.osf.misc (1992-2004)
 help / color / mirror / Atom feed
* /sbin/dump doesn't like pipes
@ 1996-12-18  5:00 James Burton
  1996-12-18  5:00 ` Kari Hassinen
  1996-12-20  5:00 ` Matthias Kring
  0 siblings, 2 replies; 4+ messages in thread
From: James Burton @ 1996-12-18  5:00 UTC (permalink / raw)



Has anyone tried

/sbin/dump -9bf 200 - > /tmp/xxx

or more usefully

/sbin/dump -9bf 200 - | ssh ....

You get the wonderful output as follows

---
# dump 9bf 200 - /dev/rrz0a > /tmp/x
dump: Dumping from host valdez.mel.aone.com.au
dump: Date of this level 9 dump: Wed Dec 18 16:07:45 1996 EST
dump: Date of last level 0 dump: the start of the epoch 
dump: Dumping /dev/rrz0a (/) to standard output
dump: Mapping (Pass I) [regular files]
dump: Mapping (Pass II) [directories]
dump: Estimate: 56389 tape blocks on disk
The available blocks(0),is less than the estimated blocks(56389)
Dump is being aborted
dump: SIGTERM received 
dump: The ENTIRE dump is aborted
# uname -a
OSF1 valdez.mel.aone.com.au V4.0 386 alpha
---


So, it can't find out how may blocks are available on a pipe or a redirect.
Who cares? Is there a way to switch off this peculiar behaviour that
anybody has found?

Thanks,
James

--
James Burton (jamesb@aone.com.au)	"Survival of the most easily amused"
System Administration				- Andrew Denton
Access One p/l,	41 Malcolm Rd. 		
Braeside Victoria 3195, Australia.	http://Snark.apana.org.au/James/



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: /sbin/dump doesn't like pipes
  1996-12-18  5:00 /sbin/dump doesn't like pipes James Burton
@ 1996-12-18  5:00 ` Kari Hassinen
  1996-12-20  5:00   ` James Burton
  1996-12-20  5:00 ` Matthias Kring
  1 sibling, 1 reply; 4+ messages in thread
From: Kari Hassinen @ 1996-12-18  5:00 UTC (permalink / raw)



James Burton (jamesb@aone.com.au) wrote:
: Has anyone tried

: # dump 9bf 200 - /dev/rrz0a > /tmp/x
: dump: Dumping from host valdez.mel.aone.com.au
: dump: Date of this level 9 dump: Wed Dec 18 16:07:45 1996 EST
: dump: Date of last level 0 dump: the start of the epoch 
: dump: Dumping /dev/rrz0a (/) to standard output
: dump: Mapping (Pass I) [regular files]
: dump: Mapping (Pass II) [directories]
: dump: Estimate: 56389 tape blocks on disk
: The available blocks(0),is less than the estimated blocks(56389)
: Dump is being aborted
: dump: SIGTERM received 
: dump: The ENTIRE dump is aborted
: # uname -a
: OSF1 valdez.mel.aone.com.au V4.0 386 alpha
: ---

I found this when I tried to move a filesystem with dump ans restore:
dump  -0f  -  /home  |  (cd /mnt;  restore  -xf  -)

This does not work in DU 4.0. My workaround was to use dump from DU 3.2C.
It seems to work also in DU 4.0.

Kari Hassinen
Computing Centre
University of Joensuu
Finland

Email Kari.Hassinen@joensuu.fi




^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: /sbin/dump doesn't like pipes
  1996-12-18  5:00 ` Kari Hassinen
@ 1996-12-20  5:00   ` James Burton
  0 siblings, 0 replies; 4+ messages in thread
From: James Burton @ 1996-12-20  5:00 UTC (permalink / raw)



Kari Hassinen (hassinen@cc.joensuu.fi) wrote:
: James Burton (jamesb@aone.com.au) wrote:

: I found this when I tried to move a filesystem with dump ans restore:
: dump  -0f  -  /home  |  (cd /mnt;  restore  -xf  -)

: This does not work in DU 4.0. My workaround was to use dump from DU 3.2C.
: It seems to work also in DU 4.0.


Thanks to everyone for their replies.
Actually dump(v4.0) only seems to work on tape, disk and /dev/null
/dev/null seems to be a special case.

named pipes fail with a bad ioctl

Thanks,
James

--
James Burton (jamesb@aone.com.au)   "Wake up and smell the cat food in your
System Administration		    bank account, But don't try to stop the
Access One p/l,	41 Malcolm Rd. 	    tail that wags the hound."  T.M.B.G.
Braeside Victoria 3195, Australia.	http://Snark.apana.org.au/James/



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: /sbin/dump doesn't like pipes
  1996-12-18  5:00 /sbin/dump doesn't like pipes James Burton
  1996-12-18  5:00 ` Kari Hassinen
@ 1996-12-20  5:00 ` Matthias Kring
  1 sibling, 0 replies; 4+ messages in thread
From: Matthias Kring @ 1996-12-20  5:00 UTC (permalink / raw)



On 18 Dec 1996 06:31:13 GMT, jamesb@aone.com.au (James Burton) wrote:

>Has anyone tried
>
>/sbin/dump -9bf 200 - > /tmp/xxx
>
>or more usefully
>
>/sbin/dump -9bf 200 - | ssh ....

Maybe it's just a syntax error. The argument following the f option
will be interpreted as output file. 
So you should try 
	dump -9 -b 200 -f - ....

I _did_ successfully use piping with 4.0 during conversion from ufs to
advfs. 
	vdump 0f - / | (cd /root; vrestore -xf -)

Matthias




^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~1996-12-20  5:00 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1996-12-18  5:00 /sbin/dump doesn't like pipes James Burton
1996-12-18  5:00 ` Kari Hassinen
1996-12-20  5:00   ` James Burton
1996-12-20  5:00 ` Matthias Kring

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