Bug 244470 - /sbin/dump crashes on larger filesystem
Summary: /sbin/dump crashes on larger filesystem
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: 12.1-RELEASE
Hardware: amd64 Any
: --- Affects Some People
Assignee: freebsd-bugs mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-02-27 13:44 UTC by Stefan Thurner
Modified: 2020-03-02 06:32 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Stefan Thurner 2020-02-27 13:44:33 UTC
When running dump to create a backup it crashes. This happens only on a 4Tb filesystem (/dev/label/home, see below).

dump -0 -aL -f test.0 /dev/label/home
  DUMP: Date of this level 0 dump: Thu Feb 27 11:33:46 2020
  DUMP: Date of last level 0 dump: the epoch
  DUMP: Dumping snapshot of /dev/label/home (/usr/home) to test.0
  DUMP: mapping (Pass I) [regular files]
  DUMP: mapping (Pass II) [directories]
  DUMP: estimated 472120814 tape blocks.
  DUMP: dumping (Pass III) [directories]
  DUMP: dumping (Pass IV) [regular files]
  DUMP: 5.26% done, finished in 1:30 at Thu Feb 27 13:08:56 2020
  DUMP: 10.48% done, finished in 1:25 at Thu Feb 27 13:09:16 2020
  DUMP: 15.44% done, finished in 1:22 at Thu Feb 27 13:11:00 2020
  DUMP: 20.04% done, finished in 1:19 at Thu Feb 27 13:13:36 2020
  DUMP: 26.92% done, finished in 1:07 at Thu Feb 27 13:06:43 2020
  DUMP: 33.80% done, finished in 0:58 at Thu Feb 27 13:02:36 2020
  DUMP: 40.61% done, finished in 0:51 at Thu Feb 27 13:00:00 2020
  DUMP: 47.29% done, finished in 0:44 at Thu Feb 27 12:58:25 2020
  DUMP: 54.04% done, finished in 0:38 at Thu Feb 27 12:57:06 2020
Assertion failed: (spcl.c_count + blks < TP_NINDIR), function appendextdata, file /usr/src/sbin/dump/traverse.c, line 759.
  DUMP: Child 60825 returns LOB status 206

df -h
Filesystem         Size    Used   Avail Capacity  Mounted on
/dev/label/root    1.9G    391M    1.4G    21%    /
devfs              1.0K    1.0K      0B   100%    /dev
/dev/label/var     3.9G    1.2G    2.4G    33%    /var
/dev/label/tmp     3.9G    116K    3.6G     0%    /tmp
/dev/label/usr      40G     13G     24G    35%    /usr
/dev/label/home    3.5T    451G    2.8T    14%    /usr/home
/dev/label/bkup    3.5T    920G    2.3T    28%    /media/bkup

Regards,
Stefan
Comment 1 Stefan Thurner 2020-03-02 06:32:20 UTC
(In reply to Stefan Thurner from comment #0)

In reference to bug #228807 I've compiled dump from base r331095. That's the version prior to changes of tape.c and traverse.c.

Now dump works like intended.

Regards,
Stefan