robert@psych.psy.uq.oz.au (Robert Dal Santo) (01/12/88)
I have recently managed to get an ethernet running between our uVAX II running Ultrix 2.0-1 and a 4.2BSD machine. The uVAX doesnt have any tape units so I hoped to backup across the network using rdump to the tape drive on the 4.2 machine. Firstly rdump on Ultrix 2.0-1 expects to talk to a version of rmt that is different to the 4.2 version and (so it seems) also the 4.3 version. The offending command turned out to be the "T file" comamnd, which according to the manual tells rmt to stat the file and return the stat buf. I finally managed to add this to a hacked version of rmt, and rdump actually decided to talk to me. rdump then did the usual startup stuff, the mapping passes etc, BUT! when it had decided how much it had to dump it said - DUMPING a total of 40112345 bytes to file /dev/rmt0h on host pe. which is not right and doesnt work (it magically gets all 40Mb onto a 600ft tape at 800BPI :-) ). I expect it to say something like - DUMPING a total of 4015 (10240 byte) blocks on 2.87 tape(s). Now, my question is how can I convince rdump that it is dumping to a tape on the remote system. I've tried all sorts of things like invoking rdump with tape type parameters to 'hint' to rdump that I am dumping to a tape (e.g. rdump 0usdf 2300 800 pe:/dev/rmt0h /usr) and still it thinks its dumping to a file. I can make it think it's dumping to multiple disk packs by using the 'B' flag to rdump, but if I do this then I suspect that rrestore will not be able to recover the files off the tapes. What does rdump want to stat the file for ? I suspected it may have been using the st_rdev filed of the stat buf to work out what the device on the other end was, so I may the 4.2 rmt 'lie' and return a st_rdev that was the same as st_rdev for a tape unit on the uVAX (if there was one). That still didnt work. Thanx for any help (my uVAX have never been backed up!) Robert Dal Santo Phone +61 7 377 4285 (International) Department of Psychology, ARPA: robert%psych.psy.uq.oz@uunet.uu.net University of Queensland, UUCP: ..!uunet!munnari!psych.psy.uq.oz!robert St Lucia, Brisbane, 4067 JANET: psych.psy.uq.oz!robert@ukc AUSTRALIA.