Usenet comp.unix.tru64 (2000-2013)
 help / color / mirror / Atom feed
* Remote vdump
@ 2000-11-02 12:16 nikitins
  2000-11-02 13:36 ` Pedro M. Matias
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: nikitins @ 2000-11-02 12:16 UTC (permalink / raw)


Hello,

Recently in this forum it was recommended to make remote
backups/restorations by vdump (v.4.) as follows:

vdump -0 -f - /filesystem | rsh remotehost dd of=/dev/nrmt0h
rsh remotehost -n dd if=/dev/nrmt0h obs=60k | vrestore -x -f -
targetdirectory

http://x66.deja.com/[ST_rn=ps]/getdoc.xp?AN=650193454&CONTEXT=973160201.
146407437&hitnum=2

1. Is it possible not to use dd when restoring information on the host
which has tape drive directly?

'vrestore -i -f /dev/nrmt0m' produces the following error.

vrestore: Date of the vdump save-set: Wed Nov  1 16:30:53 2000
vrestore: unable to read from device '/dev/nrmt0m'; incomplete read 512
< 65536
Memory fault - core dumped

Conveyers like "dd if=/dev/nrmt0h obs=60k | vrestore -x -f -" works
without errors.

Is it normal behaviour? E.g. in HP-UX, I can write file with "fbackup
|dd" conveyer and then restore with frecover command, without dd.

2. Is it possible to speed up restoration process with dd options?
It seems to me vdump/vrestore works much faster than dd (I used dd
locally, not via network)

Thanks in advance for any comments.

Regards,
Mihails


Sent via Deja.com http://www.deja.com/
Before you buy.


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

* Re: Remote vdump
  2000-11-02 12:16 Remote vdump nikitins
@ 2000-11-02 13:36 ` Pedro M. Matias
  2000-11-03 11:36 ` Tobias Ernst
  2000-11-16  5:00 ` Michael K. Livingston
  2 siblings, 0 replies; 4+ messages in thread
From: Pedro M. Matias @ 2000-11-02 13:36 UTC (permalink / raw)


If you want to vdump a remote filesystem to a tape, you can try and mount
the remote fs
locally via NFS.
Also, you can try to access it using
'user@remotehost:/remote_file_system_mount_point' but I have no idea whether
this will work.

Good luck,

Pedro.


nikitins@latnet.lv wrote:

> Hello,
>
> Recently in this forum it was recommended to make remote
> backups/restorations by vdump (v.4.) as follows:
>
> vdump -0 -f - /filesystem | rsh remotehost dd of=/dev/nrmt0h
> rsh remotehost -n dd if=/dev/nrmt0h obs=60k | vrestore -x -f -
> targetdirectory
>
> ...

> Thanks in advance for any comments.

>
> Regards,
> Mihails
>
> Sent via Deja.com http://www.deja.com/
> Before you buy.



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

* Re: Remote vdump
  2000-11-02 12:16 Remote vdump nikitins
  2000-11-02 13:36 ` Pedro M. Matias
@ 2000-11-03 11:36 ` Tobias Ernst
  2000-11-16  5:00 ` Michael K. Livingston
  2 siblings, 0 replies; 4+ messages in thread
From: Tobias Ernst @ 2000-11-03 11:36 UTC (permalink / raw)


In article <8trluv$stl$1@nnrp1.deja.com>, nikitins@latnet.lv wrote:

>2. Is it possible to speed up restoration process with dd options?
>It seems to me vdump/vrestore works much faster than dd (I used dd
>locally, not via network)

There is a small utility called "buffer" which compiles nicely on Tru64. I
don't know the original homepage, but you should find it on
ftp://ftp.freebsd.org/pub/FreBSD/distfiles.

If you put this utility in the pipe between vdump and dd, or dd and
vrestore, the throughput will be much higher, like in

dd if=/dev/... | buffer | vrestore -x -f -

Buffer allocates a several megabytes shared memory buffer and forks to two
processes, one reading from it and one writing to it. This way, dd can read
from the tape even if vrestore is currently not ready to accept new input,
and vice versa vrestore can continue restoring even if the tape currently
cannot give new data. So the data stream will not be interrupted, or at
least it will be interrupted much less frequently than if you had no buffer.

When you have a rsh in the pipe, you have to experiment what gives best
throughput: putting the buffer in on the remote host or on the local host,
or on both.

Kind Regards,
Tobias.


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

* Re: Remote vdump
  2000-11-02 12:16 Remote vdump nikitins
  2000-11-02 13:36 ` Pedro M. Matias
  2000-11-03 11:36 ` Tobias Ernst
@ 2000-11-16  5:00 ` Michael K. Livingston
  2 siblings, 0 replies; 4+ messages in thread
From: Michael K. Livingston @ 2000-11-16  5:00 UTC (permalink / raw)


<nikitins@latnet.lv> wrote in message
news:8trluv$stl$1@nnrp1.deja.com...
> Hello,
>
> Recently in this forum it was recommended to make remote
> backups/restorations by vdump (v.4.) as follows:
>
> vdump -0 -f - /filesystem | rsh remotehost dd of=/dev/nrmt0h
> rsh remotehost -n dd if=/dev/nrmt0h obs=60k | vrestore -x -f -
> targetdirectory
>
>
http://x66.deja.com/[ST_rn=ps]/getdoc.xp?AN=650193454&CONTEXT=973160201.
> 146407437&hitnum=2
>
> 1. Is it possible not to use dd when restoring information on the host
> which has tape drive directly?
>
> 'vrestore -i -f /dev/nrmt0m' produces the following error.
>
> vrestore: Date of the vdump save-set: Wed Nov  1 16:30:53 2000
> vrestore: unable to read from device '/dev/nrmt0m'; incomplete read
512
> < 65536
> Memory fault - core dumped
>
> Conveyers like "dd if=/dev/nrmt0h obs=60k | vrestore -x -f -" works
> without errors.
>
> Is it normal behaviour? E.g. in HP-UX, I can write file with "fbackup
> |dd" conveyer and then restore with frecover command, without dd.
>
> 2. Is it possible to speed up restoration process with dd options?
> It seems to me vdump/vrestore works much faster than dd (I used dd
> locally, not via network)
>
> Thanks in advance for any comments.
>
> Regards,
> Mihails
>
>
> Sent via Deja.com http://www.deja.com/
> Before you buy.

I've been able to restore vdumps without the dd command when I wrote
them with:
        vdump -0 -b 60 -f - $fs  | rsh $remote dd bs=60k of=/dev/nrmt0h
"-b 60" is the default blocking factor for vdump so the option should
not be necessary, but I put it in anyway just to be sure.  Of course
with
version 5 none of this is necessary.






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

end of thread, other threads:[~2000-11-16  5:00 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-11-02 12:16 Remote vdump nikitins
2000-11-02 13:36 ` Pedro M. Matias
2000-11-03 11:36 ` Tobias Ernst
2000-11-16  5:00 ` Michael K. Livingston

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