[comp.sys.sgi] Dump/Restore for Iris

c60244@ccfiris.aedc (Kenny McDonald) (03/11/91)

I have recently retrieved dump/restore from ftp.brl.mil, & I have been trying
to test it out.

When I issue the following command, I get the following results:

% dump 0usdf 2300 6250 /dev/rmt/xmt0d0.6250 /dev/dsk/dks0d1s0
/etc/dumpdates: No such file or directory
  DUMP: Date of this level 0 dump: Mon Mar 11 09:38:46 1991
  DUMP: Date of last level 0 dump: the epoch
  DUMP: Dumping /dev/dsk/dks0d1s0 (/) to /dev/rmt/xmt0d0.6250
/dev/dsk/dks0d1s0: Permission denied
  DUMP: Cannot open/stat /dev/dsk/dks0d1s0


If I run the above command as root I get the following response:

% /usr1/people/c60244/dump-restore # ~/bin/dump 0usdf 2300 6250 /dev/rmt/xmt0d0.6250 /dev/dsk/dks0d1s0
/etc/dumpdates: No such file or directory
  DUMP: Date of this level 0 dump: Mon Mar 11 09:39:48 1991
  DUMP: Date of last level 0 dump: the epoch
  DUMP: Dumping /dev/dsk/dks0d1s0 (/) to /dev/rmt/xmt0d0.6250
  DUMP: Cannot find character device for /dev/dsk/dks0d1s0

Any clues/hints will be appreciated on how to use dump/restore.


  vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
  | Kenneth M. McDonald * OAO Corp * Arnold Engineering Development Center |
  |          MS 120 * Arnold AFS, TN 37389-9998 * (615) 454-3413           |
  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  INTERNET:                                               OO   AA   OO
  @aedc-vax.af.mil:c60244@ccfiris.aedc                   O  O A  A O  O
                                                         O  O AAAA O  O
  LOCAL:                                                 O  O A  A O  O
  c60244@ccfiris                                          OO  A  A  OO
                                                        ________________
                                                                       /

johnson@EULER.JSC.NASA.GOV (Stan Johnson) (03/12/91)

I tried replying directly to Kenneth McDonald:

From johnson Mon Mar 11 11:18:55 1991
Received: by euler.jsc.nasa.gov (5.61/7.0)
	id AA08071; Mon, 11 Mar 91 11:18:54 -0600
Date: Mon, 11 Mar 91 11:18:54 -0600
From: MAILER-DAEMON (Mail Delivery Subsystem)
Subject: Returned mail: Host unknown
To: Postmaster
To: johnson
Status: RO

   ----- Transcript of session follows -----
421 ccfiris.aedc.ether... Deferred: No such file or directory
550 c60244@ccfiris.aedc... Host unknown: No such file or directory

   ----- Unsent message follows -----
Received: by euler.jsc.nasa.gov (5.61/7.0)
	id AA08068; Mon, 11 Mar 91 11:18:54 -0600
Date: Mon, 11 Mar 91 11:18:54 -0600
From: johnson (Stan Johnson)
To: c60244@ccfiris.aedc
Subject: Re:  Dump/Restore for Iris
Cc: johnson

I don't know if this will help, but you might try specifying "/" instead of
the block-special device file for "/"; dump should look up what it needs
in /etc/fstab.  It might also work to specify the character device
(/dev/rdsk/dks0d1s0) instead of the block device (/dev/dsk/dks0d1s0),
though I'm not sure about that..

-Stan

mike@BRL.MIL (Mike Muuss) (03/12/91)

@aedc-vax.af.mil:c60244@ccfiris.aedc

Kenny -

I believe that you are having two separate difficulties with dump/restore.
I have directed my response to the whole list, in case others encounter
similar difficulties.

1)  You need to manually create the file /etc/dumpdates before dump/restore
can use it in processing the "u" option, etc.  This can be done quite
simply by running (as root) this command:

	touch /etc/dumpdates

2)  Your /etc/fstab entries need to include a "raw=" option in them.
For example, here are a few sample entries for one of our machines:

/dev/root		/	efs	rw,raw=/dev/rroot	1 0
/dev/usr		/usr	efs	rw,raw=/dev/rusr	1 0
/dev/dsk/lv0		/vld	efs	rw,raw=/dev/rdsk/lv0,grpid 1 0
/dev/dsk/xyl0d1s7	/a	efs	rw,raw=/dev/rdsk/xyl0d1s7,grpid 1 0

The existance of the "grpid" option is unrelated to dump/restore.
Also note that the penultimate column must contain a "1" in order for
this filesystem to be eligible for dumping.

	Best,
	 -Mike

lapique@siisg1.epfl.ch (Lapique Francis) (03/12/91)

I have recently retrieved dump/restore from ftp.brl.mil, & I have been trying
to test it out.

When I issue the following command, I get the following results:

./dump 0usdf 7000 54000 sicsg2:/dev/mt/tps0d6nr /dev/root
  DUMP: Date of this level 0 dump: Tue Mar 12 10:20:11 1991
  DUMP: Date of last level 0 dump: the epoch
  DUMP: Dumping /dev/rroot (/) to /dev/mt/tps0d6nr on host sicsg2.epfl.ch
  DUMP: mapping (Pass I) [regular files]
  DUMP: mapping (Pass II) [directories]
  DUMP: estimated 13590 tape blocks on 0.00 tape(s).
  DUMP: dumping (Pass III) [directories]
  DUMP: dumping (Pass IV) [regular files]
  DUMP: level 0 dump on Tue Mar 12 10:20:11 1991
  DUMP: Tape rewinding
  DUMP: DUMP: 13614 tape blocks on 1 tape(s)
  DUMP: DUMP IS DONE

./restore -if sicsg2:/dev/mt/tps0d6
Login incorrect  

It seems that have some problems with the remote magtape protocol module /etc/rmt
with restore command.

Any clues/hints will be appreciated on how to use dump/restore.

Francis

-------------------------------------------------------------------------------
Francis Lapique, SIC/SII Ecole Polytechnique Fed. de Lausanne CH-1015 Lausanne
E-mail : lapique@sic.epfl.ch, lapqiue@siisg1.epfl.ch
-------------------------------------------------------------------------------