From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,c0670812db05a94b,start X-Google-Attributes: gidfee84,public X-Google-ArrivalTime: 1994-07-14 17:20:04 PST Path: bga.com!news.sprintlink.net!hookup!swrinde!news.dell.com!tadpole.com!uunet!comp.vuw.ac.nz!frc.maf.govt.nz!not-for-mail From: wdk@rda.frc.maf.govt.nz (Wayne Knowles) Newsgroups: comp.unix.osf.osf1 Subject: Remote vrestore using pipes - can it be done?? Date: 15 Jul 1994 11:00:36 +1200 Organization: Ministry of Agriculture and Fisheries, Marine Reseach, Wellington NZ Message-ID: <304g2k$r8m@rda.frc.maf.govt.nz> NNTP-Posting-Host: rda Summary: Cannot get an interactive vrestore to work with pipes Keywords: vrestore advfs 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