* Why does "rsh node vdump ... | dd ..." fail?
@ 1996-10-03 4:00 Chris Lishka
1996-10-03 4:00 ` Marek Pola
1996-10-04 4:00 ` Chris Lishka
0 siblings, 2 replies; 5+ messages in thread
From: Chris Lishka @ 1996-10-03 4:00 UTC (permalink / raw)
Forgive me if this is a simple question. I've been out of the Unix game for a
few years, and what used to work doesn't seem to anymore.
I am trying to vdump an advanced filesystem (advfs) on a remote node to a tape
drive on a local node using a command like:
rsh foo.bar.edu '/sbin/vdump -0 -v -f - /usr' \
| dd of=/dev/nrmt0h obs=65536
Trying to vrestore this doesn't work.
The following command DOES work:
vdump -v -0 -f - /usr | dd of=/dev/nrmt0h obs=65536
When I vrestore this, I am able to read the file on tape. Hence, I know the
obs=65536 is correct in dd (at least for this incarnation).
I have distilled the problem down to the following:
This works:
/sbin/vdump -0 -f - /usr | vrestore -t -f -
This does NOT work:
rsh foo.bar.edu '/sbin/vdump -0 -f - /usr' | vrestore -t -f -
It would seem that rsh is doing something to the output of vdump. Does
anybody know what is going on here, and how I should fix it?
--
Chris Lishka
A mind untangled is a mind set free. lishka@wisconsin.cern.ch
-- The Connells
http://www-wisconsin.cern.ch/~lishka/
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: Why does "rsh node vdump ... | dd ..." fail?
1996-10-03 4:00 Why does "rsh node vdump ... | dd ..." fail? Chris Lishka
@ 1996-10-03 4:00 ` Marek Pola
1996-10-04 4:00 ` Chris Lishka
1 sibling, 0 replies; 5+ messages in thread
From: Marek Pola @ 1996-10-03 4:00 UTC (permalink / raw)
Chris Lishka wrote:
> I am trying to vdump an advanced filesystem (advfs) on a remote node to a tape
> drive on a local node using a command like:
>
> rsh foo.bar.edu '/sbin/vdump -0 -v -f - /usr' \
> | dd of=/dev/nrmt0h obs=65536
>
> Trying to vrestore this doesn't work.
I have encountered this problem also a few years ago. Try using smaller
block size, and it will work. I recon the piping machanism causes the
problem. Set the block size to 1 kB in the vdump command (I don't
remember the options exactly; see man pages), and also in the dd
command, using the bs option. Then it will hopefully work better.
Regards
Marek Pola
Earth
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Why does "rsh node vdump ... | dd ..." fail?
1996-10-03 4:00 Why does "rsh node vdump ... | dd ..." fail? Chris Lishka
1996-10-03 4:00 ` Marek Pola
@ 1996-10-04 4:00 ` Chris Lishka
1996-10-04 4:00 ` Mark Sirota
1 sibling, 1 reply; 5+ messages in thread
From: Chris Lishka @ 1996-10-04 4:00 UTC (permalink / raw)
Chris Lishka (c'est moi) wrote:
> I have distilled the problem down to the following:
>
> This works:
> /sbin/vdump -0 -f - /usr | vrestore -t -f -
>
> This does NOT work:
> rsh foo.bar.edu '/sbin/vdump -0 -f - /usr' | vrestore -t -f -
>
Here is some more interesting information. I am now comparing dump and vdump's
performance backing up a UFS filesystem (represented below as /ufs).
The following works:
dump -0 -f - /ufs | restore -f - -t
vdump -0 -f - /ufs | vrestore -f - -t
rsh foo.bar.edu '/sbin/dump -0 -f - /ufs' | restore -f - -t
The following does NOT work:
rsh foo.bar.edu '/sbin/vdump -0 -f - /ufs' | vrestore -f - -t
Question: why does dump work with rsh, yet vdump fails with rsh (for the same
UFS filesystem)?
--
Chris Lishka
A mind untangled is a mind set free. lishka@wisconsin.cern.ch
-- The Connells http://www-wisconsin.cern.ch/~lishka/
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: Why does "rsh node vdump ... | dd ..." fail?
1996-10-04 4:00 ` Chris Lishka
@ 1996-10-04 4:00 ` Mark Sirota
1996-10-09 4:00 ` Chia-Yun Chang
0 siblings, 1 reply; 5+ messages in thread
From: Mark Sirota @ 1996-10-04 4:00 UTC (permalink / raw)
To: Chris Lishka
Chris Lishka wrote:
> rsh foo.bar.edu '/sbin/vdump -0 -f - /ufs' | vrestore -f - -t
>
> Question: why does dump work with rsh, yet vdump fails with rsh (for
> the same UFS filesystem)?
Try piping the output of vdump through cat. For some reason, vdump
doesn't like having its output doing to rsh, but it's fine if it's cat.
Something like
rsh foo.bar.edu '/sbin/vdump -o -f - /ufs | cat' | whatever...
--
Mark Sirota, Network Systems Engineer
University of Pennsylvania, Information Systems and Computing
msirota@isc.upenn.edu, 215/573-7214
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Why does "rsh node vdump ... | dd ..." fail?
1996-10-04 4:00 ` Mark Sirota
@ 1996-10-09 4:00 ` Chia-Yun Chang
0 siblings, 0 replies; 5+ messages in thread
From: Chia-Yun Chang @ 1996-10-09 4:00 UTC (permalink / raw)
Mark Sirota wrote:
>
> Chris Lishka wrote:
> > rsh foo.bar.edu '/sbin/vdump -0 -f - /ufs' | vrestore -f - -t
> >
> > Question: why does dump work with rsh, yet vdump fails with rsh (for
> > the same UFS filesystem)?
>
> Try piping the output of vdump through cat. For some reason, vdump
> doesn't like having its output doing to rsh, but it's fine if it's cat.
>
> Something like
>
> rsh foo.bar.edu '/sbin/vdump -o -f - /ufs | cat' | whatever...
> --
> Mark Sirota, Network Systems Engineer
> University of Pennsylvania, Information Systems and Computing
> msirota@isc.upenn.edu, 215/573-7214
Which DEC UNIX version do you have? I was told that vdump will not work
cross the network on version 3.x, but will work under version 4. I have
3.2d on my systems and don't have any lucks on vdump yet.
By the way, does anyone know why Advfs should not use on the root
filesystem when you have the ASE? DEC's documentation mentioned it but
did not explain why.
Thanks,
Chia-Yun Chang
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~1996-10-09 4:00 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1996-10-03 4:00 Why does "rsh node vdump ... | dd ..." fail? Chris Lishka
1996-10-03 4:00 ` Marek Pola
1996-10-04 4:00 ` Chris Lishka
1996-10-04 4:00 ` Mark Sirota
1996-10-09 4:00 ` Chia-Yun Chang
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox