* Remote vrestore using pipes - can it be done??
@ 1994-07-14 23:00 Wayne Knowles
1994-07-15 12:26 ` Torbj|rn Lindgren
0 siblings, 1 reply; 2+ messages in thread
From: Wayne Knowles @ 1994-07-14 23:00 UTC (permalink / raw)
To my surprise, OSF/1 2.0 does not have a remote version of vdump and vrestore.
The best solution I could come up with was to use use a remote shell running
a dd, eg.
# vdump -0uf - | rsh sam dd of=/dev/vt0 bs=60k
There has been no problems backing up a file system using this method.
However, I have not been able to find a suitable way of interactively
restoring files using vrestore.
First I tried
# rsh sam dd if=/dev/vt0 bs=60k | vrestore -ivf -
vrestore does not open /dev/tty for its interactive input as restore does.
After a bit of thinking, I decided to try a named pipe :-
# mknod /tmp/PIPE p
# rsh -n sam dd if=/dev/vt0 bs=60k > /tmp/PIPE &
# vrestore -ivf /tmp/PIPE
This does not work. If the file type is a pipe, vrestore will *NOT* use the
specified file, and use *Standard Input* instead.
I verified this by running trace on the command :-
# trace /sbin/vrestore -ivf /tmp/PIPE
Tracing process /proc/26762
getpid () = 26762
sigaction (SIGINT, {{0x12000c6e0,0x0,0}}, {{0x0,0x0,0}}) = 0
sync () = 0
sync () = 0
stat ("/tmp/PIPE", 0x11ffff808) = 0
statfs (".", 0x11ffff900, 5368718024) = 0
chdir (".") = 0
read (0, 0x1ffef860, 1024) = 1 [, "\n", ]
write (2, "vrestore: unable to use save-set; invali"..., 60) =
vrestore: unable to use save-set; invalid or corrupt format
sync () = 0
sync () = 0
close (0) = 0
close (1) = 0
close (2) = 0
exit (0) = (0)
EXIT [status=0]
/sbin/vrestore
Has anybody else experienced similar problems with vrestore, and found a
useful workaround??
Wayne, wdk@frc.maffish.govt.nz
--
_____ Real: Wayne Knowles Title : Systems Manager
/ o \/ Post: Marine Research Centre Usenet: wdk@frc.maffish.govt.nz
\/ v /\ P.O. Box 297, Greta Point Phone : +64 4 386 1029
`---' Wellington, NEW ZEALAND FAX : +64 4 386 0574
^ permalink raw reply [flat|nested] 2+ messages in thread* Re: Remote vrestore using pipes - can it be done??
1994-07-14 23:00 Remote vrestore using pipes - can it be done?? Wayne Knowles
@ 1994-07-15 12:26 ` Torbj|rn Lindgren
0 siblings, 0 replies; 2+ messages in thread
From: Torbj|rn Lindgren @ 1994-07-15 12:26 UTC (permalink / raw)
In article <304g2k$r8m@rda.frc.maf.govt.nz>,
Wayne Knowles <wdk@rda.frc.maf.govt.nz> wrote:
># mknod /tmp/PIPE p
># rsh -n sam dd if=/dev/vt0 bs=60k > /tmp/PIPE &
># vrestore -ivf /tmp/PIPE
>
>This does not work. If the file type is a pipe, vrestore will *NOT* use the
>specified file, and use *Standard Input* instead.
>I verified this by running trace on the command :-
Have you checked that 'mknod filename p' actually *made* a pipe?
Unless you have got (and applied) patch OSFV20-053 'mknod filename p'
creates a character file instead of a pipe!
This would certainly explain why vrestore doesn't use the 'pipe'
In addition to this there is a note in the Release Notes:
The vdump and vrestore commands does not support the use of named
pipes for the input/output devices as an argument to the -f flag
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~1994-07-15 12:26 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1994-07-14 23:00 Remote vrestore using pipes - can it be done?? Wayne Knowles
1994-07-15 12:26 ` Torbj|rn Lindgren
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox