Bonjour,
First thanks to (in no particuliar order):
- Alan Angulo <alan_at_esu.edu>
- Degerness, Mandell ITSD:EX <Mandell.Degerness_at_gems2.gov.bc.ca>
- Serge Munhoven <Serge.Munhoven_at_mema.ucl.ac.be>
- Ernest Gronblom <GROER01_at_fallon-clinic.com>
- Bob Vickers <bobv_at_dcs.rhbnc.ac.uk>
---------- My original post ----------
MyPost> Bonjour,
MyPost>
MyPost> I am newbie with Digital Unix. I want simply to restore a tape from
MyPost> on host2 from host1, where host2 will be on single user mode.
MyPost>
MyPost> - Host1 has a tape drive ==> named alpha;
MyPost> - Host2 did not have a tape drive ==> named calpha;
MyPost> - I can do "rsh" between the two;
MyPost> - The filesystem type is "advfs" for the two;
MyPost> - Host1 run: Digital UNIX V4.0B (OSF1 alpha V4.0 564 alpha);
MyPost> - Host2 run: Digital UNIX V4.0C (OSF1 calpha V4.0 564.32 alpha).
MyPost>
MyPost> The tape was created using the following command:
MyPost> > rsh calpha -n /sbin/vdump -0 -u -b 60 -f - $local_dev |\
MyPost> dd of=$src_tape bs=60k
MyPost> where, for example, local_dev=/dev/nrmt0h and src_tape=/usr
MyPost>
MyPost> So I tried the following command in multi-user mode, but it gave me errors,
MyPost> and I do not want to corrupt my hots1 machine!
MyPost> >------------ output from my vrestore -------
MyPost> > calpha# rsh alpha mt -f $tape rewind
MyPost> > calpha# rsh alpha /sbin/vrestore -x -q -f $tape -D - | dd bs=60k
MyPost> > vrestore: error accessing file system <->; [2] No such file or directory
MyPost> > 0+0 records in
MyPost> > 0+0 records out
MyPost> > calpha# rsh alpha mt -f $tape rewind
MyPost> >----------------- end -----------------------
MyPost>
MyPost> Thanks for your help...
---------- solution ----------
The solution was simply to make an "rsh xxx dd ..." piped on an "vrestore ..."!
Everybody find it...
I was doing just the opposite which can restore on rsh machine (*WARNING*) as
Ernest Gronblom point out to me.
Gronblom> The command to restore needs to have rsh alpha dd... | vrestore ...
Gronblom> otherwise you are restoring the tape to alpha! You may want to check to
Gronblom> make sure that NOTHING was restored onto alpha...
I have test all those commands and they are working well. The interactive
restore (vrestore -i ..) TOO!
---------- WORKING COMMANDS ----------
facts> tape is on host: alpha
facts> dump of host: calpha
facts> command executed on alpha
alpha# mt -f /dev/nrmt0h rewind
alpha# rsh calpha -n /sbin/vdump -0 -u -b 60 -f - /usr | dd of=/dev/nrmt0h bs=60k
facts> tape is on host: alpha
space>
facts> restore of host: calpha
facts> command executed on calpha
calpha# rsh alpha mt -f /dev/nrmt0h rewind
calpha# rsh alpha dd if=/dev/nrmt0h bs=60k | /sbin/vrestore -t -v -f -
calpha# rsh alpha dd if=$tape bs=60k | /sbin/vrestore -i -v -f -
calpha# rsh alpha dd if=/dev/nrmt0h bs=60k | /sbin/vrestore -x -q -f -
I do not have try the restore on single user mode on calpha. But I will try
it this afternoon...
Just an another newbie question:
-------------------------------
I plan to upgrade my calpha from 4.0C to 4.0E (can I go to 4.0F??). IF
all goes wrong, I want to be able to restore old filesystems.
On Solaris I use the "installboot" command after "format","newfs" and "restore".
For now I know how to do an "vrestore" and: disklabel, mkfdmn, mkfset ... BUT
how about the "installboot" ??? OR how did you make an bootable disk?
+---------------------------------------------------------------+
| Centre d'Analyse Numerique de Reseaux |
+---------------------------------------------------------------+
Claude Charest Informatique du domaine Transport
charest_at_CANR.Hydro.qc.ca Hydro-Quebec
Complexe Desjardins, C.P. 10 000
Montreal (Quebec) H5B 1H7 (10e)
Tel: (514) 289-2211#2897
Fax: (514) 289-3644
Received on Thu Jul 08 1999 - 16:45:41 NZST