Subject: Re: inodes/data blocks etc
To: None <prlw1@cam.ac.uk>
From: Christoph Badura <bad@oreilly.de>
List: netbsd-help
Date: 09/21/1999 21:40:23
prlw1@newn.cam.ac.uk (Patrick Welche) writes:
>Warning: inode blocks/cyl group (144) >= data blocks (132) in last
>    cylinder group. This implies 2120 sector(s) cannot be allocated.
>/dev/rsd0a:     203520 sectors in 96 cylinders of 10 tracks, 212 sectors
>        99.4MB in 6 cyl groups (16 c/g, 16.56MB/g, 3584 i/g)
>super-block backups (for fsck -b #) at:
> 32, 34176, 68320, 102464, 136608, 170752,

>#        size   offset     fstype   [fsize bsize   cpg]
>  a:   205640        0     4.2BSD     1024  8192     0   # (Cyl.    0 - 96)

>Normally at times like these, I increase fsize/bsize until the warning goes
>away, but I don't understand exactly what I am doing... If I have 132 data
>blocks at 8192 bytes each, I use 2112 sectors, so 8 sectors are left for
>?inodes? ?fragmentation? 8 is less than 1 per track (10 tracks)? What should
>I be doing?

Well, you could increase the byts-per-inode parameter, if you don't
need that many inodes.  It's probably unlikely that you need some 21000
inodes on that file system.  Or you could try to increase the cylinder
group size.  Maybe 17 cpg will work.  Note, that merely doubling the cg
size, won't help.

-- 
Christoph Badura					www.netbsd.org

	Anything that can be done in O(N) can be done in O(N^2).
	-- Ralf Schuettau (after looking at a particular piece of code)