My original query:
/
| I have an HP-9000 with a DAT drive, running HP-UX, and I would like to use
| it to back up my Sun using rdump.
|
| As a first attempt, I tried:
|
| /usr/etc/rdump 9ctsf 18 8000 hp:/dev/rmt/0mn /dev/rsd0a
|
| This came back with the following:
|
| DUMP: Date of this level 9 dump: Mon Dec 13 10:49:22 1993
| DUMP: Date of last level 0 dump: the epoch
| DUMP: Dumping /dev/rsd0a to /dev/rmt/0mn on host hp
| DUMP: bad sblock magic number
| DUMP: The ENTIRE dump is aborted.
|
| I'm not very familiar with the rmt protocol, so would appreciate any
| advice, especially from anyone who has successfully achieved this.
|
| I have ensured the .rhosts file is correct on the HP. It is the "bad
| sblock magic number" message that puzzles me.
\
Actually, the problem was nothing to do with the rmt protocol. I had
copied the original script from a Sparc to a Sun-3, and had forgotten to
change /dev/rsd0a to /dev/rsd6a. I *did* have a sd0 drive, but partition
'a' was not used, giving rise to the bad sblock magic number.
Several people pointed me to the local drive instead of the network.
Thanks to:
Hans Berggren <hans@inmic.se>
Martin Achilli <ACHILLM@IMIHSRA.BITNET>
poffen@San-Jose.ate.slb.com
kes@mtb.phil.mop.com (Kes Masalaitis)
Dan Stromberg - OAC-DCS <strombrg@hydra.acs.uci.edu>
Jon Bowman (UITS) <highscc!jb>
David Deaves <David.Deaves@cbr.atr.com.au>
-----------------------------------------------------------------------------
Some asked for details of what I got working. Here is my level 0 backup
script (to be run in single-user).
#!/bin/sh
#
# This is the level 0 backup for the new SunOS 4.1.1_U1 configuration.
# This backup is performed to the DAT drive on the HP.
# It requires two tapes, if they are 60m or one if 90m.
#
# Tape 1: / /dev/sd6a
# /export/root /dev/sd6d
# /export/exec /dev/sd6f
# /usr /dev/sd6g
# /home /dev/sd2c
# Tape 2: /ext /dev/sd0c
# /var /dev/sd6h
#
newtape() {
case x$tapenum in
x) tapenum=1
echo -n "Please insert tape $tapenum (RETURN to continue): "
;;
*) rsh -n hp mt -t /dev/rmt/0m offl
echo -n "Please remove tape $tapenum"
tapenum=`expr $tapenum + 1`
echo -n " and insert tape $tapenum (RETURN to continue): "
;;
esac
read a
echo "Re-tensioning tape $tapenum"
rsh -n hp mt -t /dev/rmt/0m rew
}
PATH=/bin:/usr/bin:/usr/ucb:/etc:/usr/etc ; export PATH
newtape
echo "Backing up / (/dev/sd6a)"
rdump 0uctsf 18 8000 hp:/dev/rmt/0mn /dev/rsd6a
echo "Backing up /export/root (/dev/sd6d)"
rdump 0uctsf 18 8000 hp:/dev/rmt/0mn /dev/rsd6d
echo "Backing up /export/exec (/dev/sd6f)"
rdump 0uctsf 18 8000 hp:/dev/rmt/0mn /dev/rsd6f
echo "Backing up /usr (/dev/sd6g)"
rdump 0uctsf 18 8000 hp:/dev/rmt/0mn /dev/rsd6g
echo "Backing up /home (/dev/sd2c)"
rdump 0uctsf 18 8000 hp:/dev/rmt/0mn /dev/rsd2c
newtape
echo "Backing up /ext (/dev/sd0c)"
rdump 0uctsf 18 8000 hp:/dev/rmt/0mn /dev/rsd0c
echo "Backing up /var (/dev/sd6h)"
rdump 0uctsf 18 8000 hp:/dev/rmt/0mn /dev/rsd6h
rsh -n hp mt -t /dev/rmt/0m offl
echo "All done"
-----------------------------------------------------------------------------
-- Tony Mountifield (G4CJO) | Microware Systems (UK) Ltd. -----------------------------------| Leylands Farm, Nobs Crook, Email: tony@microware.co.uk | Colden Common, WINCHESTER, SO21 1TH. (or: ...!uknet!mwuk!tony) | Tel: 0703 601990 Fax: 0703 601991Status: RO
This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:08:33 CDT