From: wdk@rda.frc.maf.govt.nz (Wayne Knowles)
Subject: Remote vrestore using pipes - can it be done??
Date: 15 Jul 1994 11:00:36 +1200 [thread overview]
Message-ID: <304g2k$r8m@rda.frc.maf.govt.nz> (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
next reply other threads:[~1994-07-14 23:00 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
1994-07-14 23:00 Wayne Knowles [this message]
1994-07-15 12:26 ` Remote vrestore using pipes - can it be done?? Torbj|rn Lindgren
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox