strange dump(8) behavior

From: Michael Reifenberger <mike_at_Reifenberger.com>
Date: Thu, 7 Oct 2004 08:54:15 +0200 (CEST)
Hi,
I have -current as of Sun Sep 26 16:10:32 CEST 2004 and two identical ata disks:
ad0: 58644MB <IC35L060AVV207-0/V22OA63A> [119150/16/63] at ata0-master UDMA100
ad1: 58644MB <IC35L060AVV207-0/V22OA63A> [119150/16/63] at ata0-slave UDMA100

When using 'dump 0ua -f /dev/null -L -C32 /' (mounted from ad0s1a) I get:
...
   DUMP: Date of this level 0 dump: Thu Oct  7 07:50:30 2004
   DUMP: Date of last level 0 dump: the epoch
   DUMP: Dumping snapshot of /dev/ad0s1a (/) to /dev/null
   DUMP: mapping (Pass I) [regular files]
   DUMP: Cache 32 MB, blocksize = 65536
               ^^^^^              ^^^^^
   DUMP: mapping (Pass II) [directories]
...

When using 'dump 0ua -f /dev/null -L -C32 /dev/ad1s1a' I get:
...
   DUMP: WARNING: -L ignored for read-only filesystem.
   ^^  (this is documented and not the problem)  ^^
   DUMP: Date of this level 0 dump: Thu Oct  7 08:30:43 2004
   DUMP: Date of last level 0 dump: the epoch
   DUMP: Dumping /dev/ad1s1a to /dev/null
   DUMP: Cache 0 MB, blocksize = -724252476
               ^^^^              ^^^^^^^^^^
   DUMP: mapping (Pass I) [regular files]
...

Hmm. How comes the bogus Cache and blocksize?

######################################################
fdisk, bsdlabel and dumpfs follows in case it matters:

totum# fdisk ad0
******* Working on device /dev/ad0 *******
parameters extracted from in-core disklabel are:
cylinders=119150 heads=16 sectors/track=63 (1008 blks/cyl)

Figures below won't work with BIOS for partitions not in cyl 1
parameters to be used for BIOS calculations are:
cylinders=119150 heads=16 sectors/track=63 (1008 blks/cyl)

Media sector size is 512
Warning: BIOS sector numbering starts with sector 1
Information from DOS bootblock is:
The data for partition 1 is:
sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD)
     start 63, size 120101877 (58643 Meg), flag 80 (active)
         beg: cyl 0/ head 1/ sector 1;
         end: cyl 364/ head 11/ sector 63
The data for partition 2 is:
<UNUSED>
The data for partition 3 is:
<UNUSED>
The data for partition 4 is:
<UNUSED>

totum# fdisk ad1
******* Working on device /dev/ad1 *******
parameters extracted from in-core disklabel are:
cylinders=119150 heads=16 sectors/track=63 (1008 blks/cyl)

Figures below won't work with BIOS for partitions not in cyl 1
parameters to be used for BIOS calculations are:
cylinders=119150 heads=16 sectors/track=63 (1008 blks/cyl)

Media sector size is 512
Warning: BIOS sector numbering starts with sector 1
Information from DOS bootblock is:
The data for partition 1 is:
sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD)
     start 63, size 120101877 (58643 Meg), flag 80 (active)
         beg: cyl 0/ head 1/ sector 1;
         end: cyl 1023/ head 254/ sector 63
The data for partition 2 is:
<UNUSED>
The data for partition 3 is:
<UNUSED>
The data for partition 4 is:
<UNUSED>

totum# bsdlabel -r ad0s1
# /dev/ad0s1:
8 partitions:
#        size   offset    fstype   [fsize bsize bps/cpg]
   a: 113246192       16    4.2BSD     2048 16384 28552
   b:  6855669 113246208    unused        0     0
   c: 120101877        0    unused        0     0         # "raw" part, don't 
edit

totum# bsdlabel -r ad1s1
# /dev/ad1s1:
8 partitions:
#        size   offset    fstype   [fsize bsize bps/cpg]
   a: 113246208        0    4.2BSD     2048 16384    89
   b:  6855669 113246208      swap
   c: 120101877        0    unused        0     0         # "raw" part, don't 
edit

magic   19540119 (UFS2) time    Thu Oct  7 08:50:32 2004
superblock location     65536   id      [ 4163e356 d9cc8189 ]
ncg     301     size    28311548        blocks  27420545
bsize   16384   shift   14      mask    0xffffc000
fsize   2048    shift   11      mask    0xfffff800
frag    8       shift   3       fsbtodb 2
minfree 8%      optim   time    symlinklen 120
maxbsize 16384  maxbpg  2048    maxcontig 8     contigsumsize 8
nbfree  1774848 ndir    38953   nifree  6651944 nffree  75355
bpg     11761   fpg     94088   ipg     23552
nindir  2048    inopb   64      maxfilesize     140806241583103
sbsize  2048    cgsize  16384   csaddr  3000    cssize  6144
sblkno  40      cblkno  48      iblkno  56      dblkno  3000
cgrotor 206     fmod    0       ronly   0       clean   0
avgfpdir 64     avgfilesize 16384
flags   soft-updates
fsmnt   /
volname         swuid   0

magic   11954 (UFS1)    time    Wed Oct  6 20:58:25 2004
id      [ 3e39983d 5558fe9b ]
ncg     311     size    28311552        blocks  27871165
bsize   16384   shift   14      mask    0xffffc000
fsize   2048    shift   11      mask    0xfffff800
frag    8       shift   3       fsbtodb 2
minfree 8%      optim   time    symlinklen 60
maxbpg  4096    maxcontig 7     contigsumsize 7
nbfree  1809356 ndir    38721   nifree  6551035 nffree  135882
cpg     89      bpg     11392   fpg     91136   ipg     22400
nindir  4096    inopb   128     nspf    4       maxfilesize     1126174852055039
sbsize  2048    cgsize  16384   cgoffset 1024   cgmask  0xffffffff
csaddr  1424    cssize  6144
rotdelay 0ms    rps     60      trackskew 0     interleave 1
nsect   4096    npsect  4096    spc     4096
sblkno  8       cblkno  16      iblkno  24      dblkno  1424
cgrotor 208     fmod    0       ronly   0       clean   1
avgfpdir 64     avgfilesize 16384
flags   soft-updates
fsmnt   /
volname         swuid   0



Bye/2
---
Michael Reifenberger, Business Development Manager SAP-Basis, Plaut Consulting
Comp: Michael.Reifenberger_at_plaut.de | Priv: Michael_at_Reifenberger.com
       http://www.plaut.de           |       http://www.Reifenberger.com
Received on Thu Oct 07 2004 - 04:54:50 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:16 UTC