growfs filesystem size limits ?

Henry Vogt hv at tuebingen.mpg.de
Fri May 18 15:52:11 UTC 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Am 18.05.2007 um 11:21 schrieb Arne Wörner:

> ...
> Better is this:
>       sblock.fs_size = ((int64_t)sblock.fs_ncg) * sblock.fs_fpg;
>
> Or u could shape ur partition, so that this computation will not  
> happen...
>
> Maybe there r further such mistakes...
> Integer arithmetric can be quite nasty (2+3=1 with 2bit unsigned  
> integers)...
> But fast... :)
>

Now it worked! Many Thanks, the fs is now 6.6 TB (see below).
The output is still somewhat strange, superblock numbers changing   
from positive to negative and back.. but everything else looks ok.

Many thanks for your tips. Here is my diff , build from you  
suggestions, against:
growfs.c,v 1.25 2006/07/17 20:48:36

- -------  C U T   ---------

159c159
< static void   get_dev_size(int, u_int64_t *);
- ---
 > static void   get_dev_size(int, int *);
1927c1927
< get_dev_size(int fd, u_int64_t *size)
- ---
 > get_dev_size(int fd, int *size)
1980c1980
<     u_int64_t p_size;
- ---
 >     u_int32_t p_size;
2131c2131
<                       errx(1, "there is not enough space (%lX < %d)",
- ---
 >                       errx(1, "there is not enough space (%d < %d)",
2219c2219
<               sblock.fs_size = ((int64_t)sblock.fs_ncg) *  
sblock.fs_fpg;
- ---
 >               sblock.fs_size = sblock.fs_ncg * sblock.fs_fpg;
2230,2231c2230
<        errx(1, "not enough new space (II) (%jd->%jd)",
<           (intmax_t)osblock.fs_size, (intmax_t)sblock.fs_size);
- ---
 >               errx(1, "not enough new space");

- -------  C U T   ---------

Perhaps it would be worth to find out how to correct the output ?  
(see below)
In the menatime i'm happy:-) Thanks again.

# growfs da1p1
...
new file systemsize is: 3662108143 frags
Warning: 60028 sector(s) cannot be allocated.
growfs: 7152525.5MB (14648372544 sectors) block size 16384, fragment  
size 2048
         using 38922 cylinder groups of 183.77MB, 11761 blks, 23552  
inodes.
         with soft updates
super-block backups (for fsck -b #) at:
199390176, 199766528, 200142880, 200519232, 200895584, 201271936,  
201648288, 202024640, 202400992,
202777344, 203153696, 203530048, 203906400, 204282752, 204659104,  
205035456, 205411808, 205788160,
206164512, 206540864, 206917216, 207293568, 207669920, 208046272,  
208422624, 208798976, 209175328,

...

2140237440, 2140613792, 2140990144, 2141366496, 2141742848,  
2142119200, 2142495552, 2142871904, 2143248256,
2143624608, 2144000960, 2144377312, 2144753664, 2145130016,  
2145506368, 2145882720, 2146259072, 2146635424,
2147011776, 2147388128, -2147202816, -2146826464, -2146450112,  
- -2146073760, -2145697408, -2145321056,
- -2144944704, -2144568352, -2144192000, -2143815648, -2143439296,  
- -2143062944, -2142686592, -2142310240,
- -2141933888, -2141557536, -2141181184, -2140804832, -2140428480,  
- -2140052128, -2139675776, -2139299424,

...

- -8394400, -8018048, -7641696, -72653442, -6512640, -6136288,  
- -5759936, -5383584, -5007232,
- -4630880, -4254528, -3878176, -3501824, -3125472, -2749120, -2372768,  
- -1996416, -1620064, -1243712, -867360,
- -491008, -114656, 261696, 638048, 1014400, 1390752, 1767104, 2143456,  
2519808, 2896160, 3272, 3648864,
4025216, 4401568, 4777920, 5154272, 5530624, 5906976, 6283328,  
6659680, 7036032, 7412384, 7788736, 8165088,
8541440, 8917792, 9294144, 9670496, 10046848, 10423200, 10799552,  
11175904, 11552256, 11928608, 12304960,
12681312, 13057664, 13434016, 13810368, 14186720, 14563072, 14939424,  
15315776, 15692128, 16068480,
16444832, 16821184, 17197536, 17573888, 17950240, 18326592, 18702944,  
19079296, 19455648, 19832000,

...

# df -h shows and it looks like everything is still there..

/dev/da1p1     6.6T    3.5T    2.5T    58%    /mnt

Regards
Henry
- --
Netzwerk- und System Administration am MPI Campus Tübingen.
Email: hv at tuebingen.mpg.de
Tel. 07071/601-511



-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (Darwin)

iD8DBQFGTculiF3PvXvQ0FARAiZ/AKCTamdDae+53LofsFH5wX1grFrT0ACfYvw9
W/N9mb4JtlrW5I3rRp5BKr4=
=C/Os
-----END PGP SIGNATURE-----


More information about the freebsd-fs mailing list