bin/111146: fsck fails on 6Tfilesystem

Jan Srzednicki w at wrzask.pl
Mon Apr 9 20:40:12 UTC 2007


The following reply was made to PR bin/111146; it has been noted by GNATS.

From: Jan Srzednicki <w at wrzask.pl>
To: Dan D Niles <dan at more.net>
Cc: bug-followup at FreeBSD.org
Subject: Re: bin/111146: fsck fails on 6Tfilesystem
Date: Mon, 9 Apr 2007 22:39:52 +0200

 On Mon, Apr 09, 2007 at 03:30:23PM -0500, Dan D Niles wrote:
 > On Mon, 2007-04-09 at 22:13 +0200, Jan Srzednicki wrote:
 > > That's kinda strange, dumpfs never did that to me. It appears to me
 > > that
 > > this filesystem has got quite severely corrupted. Did you try newfs on
 > > it?
 > 
 > Not yet.  I'd like to figure out why I can't fsck it first.  Running
 > newfs on your backup disk is not a viable solution.  There is data I
 > cannot pull of the disk.  If my primary storage had crashed also, I'd be
 > hosed.
 
 Well, you need to take into the account that your data may be hosed.
 Backup your primary storage NOW. :)
 
 > > And another thing: try tuning up the -i, -f and -b parameters to
 > > newfs.
 > > I assume that on such a big filesystem average filesize will be much
 > > bigger than the "UNIX default" (10k), so you can safely set these to
 > > their maximums (and allocate inodes more scarcely).
 > 
 > Running df reports 8683374 inodes used and 784218256 free.  This could
 > be wrong since the filesystem is dirty and mounted ro.
 > 
 > FreeBSD's newfs scales things automatically, though perhaps not enough:
 
 It does not scale anything. Last time I checked (a few years ago) even
 the -g option did not make any difference either, so I had to tune
 things up manually with -i, -f and -b.
 
 > tunefs: maximum blocks per file in a cylinder group: (-e)  2048
 > tunefs: average file size: (-f)                            16384
 > tunefs: average number of files in a directory: (-s)       64
 > tunefs: minimum percentage of free space: (-m)             8%
 > tunefs: optimization preference: (-o)                      time
 
 These are the default values for any filesystem, regardles of it's size.
 
 -- 
   Jan Srzednicki  ::  http://wrzask.pl/
   "Remember, remember, the fifth of November"
                                      -- V for Vendetta
 


More information about the freebsd-bugs mailing list