From nobody@FreeBSD.org  Thu Sep 27 06:24:53 2001
Return-Path: <nobody@FreeBSD.org>
Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21])
	by hub.freebsd.org (Postfix) with ESMTP id 8A2DB37B53A
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 27 Sep 2001 06:24:53 -0700 (PDT)
Received: (from nobody@localhost)
	by freefall.freebsd.org (8.11.4/8.11.4) id f8RDOrl14549;
	Thu, 27 Sep 2001 06:24:53 -0700 (PDT)
	(envelope-from nobody)
Message-Id: <200109271324.f8RDOrl14549@freefall.freebsd.org>
Date: Thu, 27 Sep 2001 06:24:53 -0700 (PDT)
From: Heinrich Rebehn <rebehn@comm.uni-bremen.de>
To: freebsd-gnats-submit@FreeBSD.org
Subject: dump does not dump all files of a filesystem
X-Send-Pr-Version: www-1.0

>Number:         30869
>Category:       bin
>Synopsis:       dump(8) does not dump all files of a filesystem
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Sep 27 06:30:00 PDT 2001
>Closed-Date:    Thu Mar 29 05:51:36 GMT 2007
>Last-Modified:  Thu Mar 29 05:51:36 GMT 2007
>Originator:     Heinrich Rebehn
>Release:        4.3-RELEASE
>Organization:
University of Bremen
>Environment:
FreeBSD antsrv1.comm.uni-bremen.de 4.3-RELEASE FreeBSD 4.3-RELEASE #2: Tue Sep 25 16:11:20 CEST 2001     root@antsrv1.comm.uni-bremen.de:/usr/src/sys/compile/ANTSRV1  i386
>Description:
dump does not dump all files of a fliesystem when b=1000 is used. No problem if 'b' is not specified. I use b=1000 because of significant speed improvement w/ DLT tape.
>How-To-Repeat:
dump any large (~3G) filesystem to tape or file:

# dump 0cafb /dev/nrsa0 1000 /export/solaris
  DUMP: Date of this level 0 dump: Thu Sep 27 11:14:06 2001
  DUMP: Date of last level 0 dump: the epoch
  DUMP: Dumping /dev/twed0s1d (/export/solaris) to /dev/nrsa0
  DUMP: mapping (Pass I) [regular files]
  DUMP: mapping (Pass II) [directories]
  DUMP: estimated 3416548 tape blocks.
  DUMP: dumping (Pass III) [directories]
  DUMP: 0.03% done, finished in 0:56
  DUMP: dumping (Pass IV) [regular files]
  DUMP: 38.99% done, finished in 0:07
  DUMP: 75.28% done, finished in 0:03
  DUMP: DUMP: 3407516 tape blocks on 1 volume
  DUMP: finished in 783 seconds, throughput 4351 KBytes/sec
  DUMP: Closing /dev/nrsa0
  DUMP: DUMP IS DONE

If the problem occurs you get an error like the following when using restore:

# restore xfb /dev/nrsa0 1000
bad name to addentry ./openwin/lib/X11/locale/C/help

restore -i shows that the directory 'locale' is empty!


>Fix:

>Release-Note:
>Audit-Trail:

From: "Giorgos Keramidas" <keramida@FreeBSD.org>
To: <bug-followup@FreeBSD.org>
Cc: <rebehn@comm.uni-bremen.de>
Subject: Re: bin/30869: dump does not dump all files of a filesystem
Date: Fri, 27 Sep 2002 05:08:52 +0300

 : dump does not dump all files of a fliesystem
 : when b=1000 is used. No problem if 'b' is not
 : specified. I use b=1000 because of significant
 : speed improvement w/ DLT tape.
 
 Hello Heinrich,
 
 Does this problem appear with dump/restore
 of newer FreeBSD releases too?
 
 

From: Heinrich Rebehn <rebehn@ant.uni-bremen.de>
To: Giorgos Keramidas <keramida@FreeBSD.org>
Cc: bug-followup@FreeBSD.org
Subject: Re: bin/30869: dump does not dump all files of a filesystem
Date: Fri, 27 Sep 2002 12:35:41 +0200

 Giorgos Keramidas wrote:
 > : dump does not dump all files of a fliesystem
 > : when b=1000 is used. No problem if 'b' is not
 > : specified. I use b=1000 because of significant
 > : speed improvement w/ DLT tape.
 > 
 > Hello Heinrich,
 > 
 > Does this problem appear with dump/restore
 > of newer FreeBSD releases too?
 > 
 > 
 
 Hi Giorgos,
 
 thanks for inquiring about this bug.
 The situation is as follows:
 
 - I don't use b=1000 anymore but use 64 instead, which gives best performance
 - A small test with b=1000 yielded :
 root@antsrv1 [/export/stuff/backup/test] # dump 0afb usr.dmp 1000 /usr
    DUMP: Date of this level 0 dump: Fri Sep 27 09:18:00 2002
    DUMP: Date of last level 0 dump: the epoch
    DUMP: Dumping /dev/ad0s2f (/usr) to usr.dmp
    DUMP: mapping (Pass I) [regular files]
    DUMP: mapping (Pass II) [directories]
    DUMP: estimated 1086729 tape blocks.
    DUMP: dumping (Pass III) [directories]
    DUMP: 0.09% done, finished in 0:18
    DUMP: dumping (Pass IV) [regular files]
    DUMP: 65.43% done, finished in 0:02
    DUMP: master/slave protocol botched.
    DUMP: The ENTIRE dump is aborted.
 
 - A test with b=64 yielded:
 root@antsrv1 [/export/stuff/backup/test] # dump 0afb usr.dmp 64 /usr
    DUMP: Date of this level 0 dump: Fri Sep 27 10:14:02 2002
    DUMP: Date of last level 0 dump: the epoch
    DUMP: Dumping /dev/ad0s2f (/usr) to usr.dmp
    DUMP: mapping (Pass I) [regular files]
    DUMP: mapping (Pass II) [directories]
    DUMP: estimated 1086729 tape blocks.
    DUMP: dumping (Pass III) [directories]
    DUMP: dumping (Pass IV) [regular files]
    DUMP: 56.93% done, finished in 0:03
    DUMP: DUMP: 1179590 tape blocks on 1 volume
    DUMP: finished in 573 seconds, throughput 2058 KBytes/sec
    DUMP: Closing usr.dmp
    DUMP: DUMP IS DONE
 root@antsrv1 [/export/stuff/backup/test] # ls
 usr.dmp
 root@antsrv1 [/export/stuff/backup/test] # restore rf usr.dmp
 cannot find directory inode 462338
 abort? [yn] n
 
 However a diff -r "/usr ." was ok (Only "no such file or dir" errors because of 
 dead symlinks)
 
 root@antsrv1 [/export/stuff/backup/test] # uname -a
 FreeBSD antsrv1.ant.uni-bremen.de 4.6.2-RELEASE FreeBSD 4.6.2-RELEASE #0: Wed 
 Aug 14 21:23:26 GMT 2002 
 murray@builder.freebsdmall.com:/usr/src/sys/compile/GENERIC  i386
 
 Conclusion: I can live with dump as is, but it still seems to have some issues. 
 I leave it up to you to decide if the bug should be closed.
 
 Kind regards,
 
 
 Heinrich Rebehn
 
 University of Bremen
 Physics / Electrical and Electronics Engineering
 - Department of Telecommunications -
 
 E-mail: mailto:rebehn@ant.uni-bremen.de
 Phone : +49/421/218-4664
 Fax   :            -3341
 
State-Changed-From-To: open->feedback 
State-Changed-By: dougb 
State-Changed-When: Thu Jan 23 02:28:04 PST 2003 
State-Changed-Why:  

Does this still happen on a more recent system? 

http://www.freebsd.org/cgi/query-pr.cgi?pr=30869 
State-Changed-From-To: feedback->open 
State-Changed-By: dougb 
State-Changed-When: Mon Feb 17 11:21:31 PST 2003 
State-Changed-Why:  

Originator states that the problem still exists with 4.6.2. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=30869 

From: Harrison Grundy <astrodog@gmail.com>
To: bug-followup@FreeBSD.org,  rebehn@comm.uni-bremen.de
Cc:  
Subject: Re: bin/30869: dump(8) does not dump all files of a filesystem
Date: Wed, 21 Mar 2007 23:20:44 -0500

 Does this occur on FreeBSD 5.x or 6.x?
State-Changed-From-To: open->closed 
State-Changed-By: remko 
State-Changed-When: Thu Mar 29 05:51:34 UTC 2007 
State-Changed-Why:  
feedback timeout 

http://www.freebsd.org/cgi/query-pr.cgi?pr=30869 
>Unformatted:
