DragonFly BSD
DragonFly kernel List (threaded) for 2004-08
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Re2: out of inodes... new install


From: Matthew Dillon <dillon@xxxxxxxxxxxxxxxxxxxx>
Date: Fri, 6 Aug 2004 10:28:07 -0700 (PDT)

    Ok, I reproduced the problem on a SCSI disk using the installer.  The
    problem is that the installer is using a fragment size of 4K instead the
    2K it should be using.  e.g. it should be using 1K/8K or 2K/16K, but
    not 4K/16K.

    The default bytes/inode is set (4 * fragment_size), so with 4K fragments
    only *half* the number of inodes are created that would normally be
    created.

    I think this is an installer issue.  newfs does not create 4K/16K
    filesystems by default.

					-Matt
					Matthew Dillon 
					<dillon@xxxxxxxxxxxxx>

::> Filesystem  1K-blocks    Used  Avail Capacity iused  ifree %iused  Mounted on
::> /dev/ad0s2a    254063   63277 170461    27%    1849  61893    3%   /
::> /dev/ad0s2d    254063     556 233182     0%     192  63550    0%   /var
::> /dev/ad0s2e    254063       3 233735     0%       3  63739    0%   /tmp
::> /dev/ad0s2f   3120908 2122892 748344    74%  195809     29  100%   /usr
::> /dev/ad0s2g    952771  443491 433059    51%   39039 200319   16%   /home
::> procfs              4       4      0   100%      22   6142    0%   /proc
::> 
::> ...all out ..for what it's worth...
:
:    I don't know why so few inodes were created for that filesystem.  I
:    tried simulating a disk of that size with VN and what I got was:
: 
:dhcp62# newfs -U /dev/vn0d
:	...
:dhcp62# mount /dev/vn0d /mnt
:dhcp62# df -i /mnt
:Filesystem 1K-blocks Used   Avail Capacity iused  ifree %iused  Mounted on
:/dev/vn0d    3072218    2 2826440     0%       1 384765    0%   /mnt
:
:dhcp62# newfs -U -f 1024 -b 8192 /dev/vn0d
:	...
:dhcp62# mount /dev/vn0d /mnt
:dhcp62# df -i /mnt
:Filesystem 1K-blocks Used   Avail Capacity iused  ifree %iused  Mounted on
:/dev/vn0d    3025130    1 2783119     0%       1 757117    0%   /mnt
:
:    By default newfs uses 2K/16K for the fragment and block size.  I
:    tried both the default and also manually setting it to 1K/8K.
:
:    Maybe there is a geometry issue here that we don't know about.  Could
:    you post the output of 'disklabel ad0s2' ?
:
:						-Matt



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]