Subject: bin/10826: restore does not DTRT at end of volume on DVD-RAM
To: None <gnats-bugs@gnats.netbsd.org>
From: None <smd@ebone.net>
List: netbsd-bugs
Date: 08/13/2000 17:51:16
	Note: There was a bad value `bin' for the field `>Confidential:'.
	It was set to the default value of `yes'.


>Number:         10826
>Category:       bin
>Synopsis:       restore does not DTRT at end of volume on DVD-RAM
>Confidential:   yes
>Severity:       serious
>Priority:       high
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Aug 13 17:52:00 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator:     Sean Doran
>Release:        CVS 2000 08 13
>Organization:
	
>Environment:
	
System: NetBSD crasse.smd.ebone.net 1.5E NetBSD 1.5E (SCREAM) #0: Thu Aug 10 04:03:43 CEST 2000 smd@crasse.smd.ebone.net:/usr/src/sys/arch/i386/compile/SCREAM i386

>Description:

	dump to two dvd ram sides
	then try to restore everything; at the end of the first volume,
	  dump chokes

>How-To-Repeat:

dump -b 2 -B 2430000 -f /dev/rcd0d MD5 *.gz
  DUMP: Dumping sub files/directories from /scratch2
  DUMP: Dumping file/directory MD5
  DUMP: Dumping file/directory crasse.root.0.gz
  DUMP: Dumping file/directory crasse.u.0.gz
  DUMP: Dumping file/directory crasse.usr-X11R6.0.gz
  DUMP: Dumping file/directory crasse.usr-local.0.gz
  DUMP: Dumping file/directory crasse.usr-pkg.0.gz
  DUMP: Dumping file/directory crasse.usr.0.gz
  DUMP: Dumping file/directory crasse.var.0.gz
  DUMP: Date of this level 0 dump: Mon Aug 14 00:12:28 2000
  DUMP: Date of last level 0 dump: the epoch
  DUMP: Dumping a subset of /dev/rsd3a (a subset of /scratch2) to /dev/
  DUMP: Label: none
  DUMP: mapping (Pass I) [regular files]
  DUMP: mapping (Pass II) [directories]
  DUMP: estimated 3685151 tape blocks on 1.52 tape(s).
  DUMP: Volume 1 started at: Mon Aug 14 00:12:28 2000
  DUMP: dumping (Pass III) [directories]
  DUMP: dumping (Pass IV) [regular files]
  DUMP: 5.05% done, finished in 1:34
  DUMP: 10.06% done, finished in 1:29
  DUMP: 15.03% done, finished in 1:24
  DUMP: 20.01% done, finished in 1:19
  DUMP: 25.04% done, finished in 1:14
  DUMP: 30.07% done, finished in 1:09
  DUMP: 35.10% done, finished in 1:04
  DUMP: 40.09% done, finished in 0:59
  DUMP: 45.12% done, finished in 0:54
  DUMP: 50.07% done, finished in 0:49
  DUMP: 55.11% done, finished in 0:44
  DUMP: 60.10% done, finished in 0:39
  DUMP: 65.02% done, finished in 0:34
  DUMP: Closing /dev/rcd0d
  DUMP: Volume 1 completed at: Mon Aug 14 01:18:25 2000
  DUMP: Volume 1 took 1:05:57
  DUMP: Volume 1 transfer rate: 614 KB/s
  DUMP: Change Volumes: Mount volume #2
  DUMP: Is the new volume mounted and ready to go?: ("yes" or "no") yes
  DUMP: Volume 2 started at: Mon Aug 14 01:21:03 2000
  DUMP: Volume 2 begins with blocks from inode 224643
  DUMP: 67.37% done, finished in 0:32
  DUMP: 72.40% done, finished in 0:27
  DUMP: 77.41% done, finished in 0:22
  DUMP: 82.38% done, finished in 0:17
  DUMP: 87.29% done, finished in 0:12
  DUMP: 92.19% done, finished in 0:07
  DUMP: 97.00% done, finished in 0:03
  DUMP: 3684787 tape blocks on 2 volumes
  DUMP: Volume 2 completed at: Mon Aug 14 01:55:33 2000
  DUMP: Volume 2 took 0:34:30
  DUMP: Volume 2 transfer rate: 606 KB/s
  DUMP: Date of this level 0 dump: Mon Aug 14 00:12:28 2000
  DUMP: Date this dump completed:  Mon Aug 14 01:55:33 2000
  DUMP: Average transfer rate: 610 KB/s
  DUMP: Closing /dev/rcd0d
  DUMP: DUMP IS DONE
crasse# restore -x -b 2 -v -f /dev/rcd0d
Verify tape and initialize maps
Dump   date: Mon Aug 14 00:12:28 2000
Dumped from: the epoch
Level 0 dump of a subset of /scratch2 on crasse.smd.ebone.net:/dev/sd3a
Label: none
Extract directories from tape
Initialize symbol table.
Make node ./BACKUPS
Make node ./BACKUPS/20000813
Extract requested files
You have not read any tapes yet.
Unless you know which volume your file(s) are on you should start
with the last volume and work towards the first.
(Use 1 for the first volume/tape, etc.)
Specify next volume #: 1
extract file ./BACKUPS/20000813/crasse.u.0.gz
extract file ./BACKUPS/20000813/crasse.root.0.gz
extract file ./BACKUPS/20000813/crasse.var.0.gz
Tape read error while restoring ./BACKUPS/20000813/crasse.var.0.gz
continue? [yn] y
Tape read error while restoring ./BACKUPS/20000813/crasse.var.0.gz
continue? [yn] 
...

>Fix:
	
>Release-Note:
>Audit-Trail:
>Unformatted: