Subject: Re: newfs can't make filesystems over 1TB in size
To: Brian Buhrow <buhrow@lothlorien.nfbcal.org>
From: Jaromir Dolecek <jdolecek@netbsd.org>
List: current-users
Date: 12/06/2002 11:18:55
This is well-known limit of current FFS. You need to use bigger
block size and/or frag size to get around this. You should be able to
have up to 4TB filesystem.

There appears to be some info regarding this on
	http://www.netbsd.org/Misc/features.html#large-filesystems
perhaps also elsewhere on NetBSD site.

Jaromir

Brian Buhrow wrote:
> 	Hello folks.  In trying to newfs my newly working
> 2TB 3ware escalade system into action, I'm confronted with the message:
> Preposterous size from newfs.  
> A check of the code shows that it checks to see if the fssize variable,
> which reflects the total number of sectors in a filesystem, is negative.
> If it is, it prints this message and exits.  The fssize varible is a signed
> 32-bit integer, meaning newfs won't make filesystems larger than 2^31
> sectors in size.
> 	My questions are these:
> 
> 1.  If I change fssize's type from int to
> long long, I believe newfs will work.  However, does the kernel have the
> same limitation?
> 
> 2.  Is there a different solution I should consider which folks have
> already tried?
> 
> 3.  If #1 is the correct solution, should I send-pr it?
> 
> -thanks
> -Brian
> 


-- 
Jaromir Dolecek <jdolecek@NetBSD.org>            http://www.NetBSD.org/
-=- We should be mindful of the potential goal, but as the tantric    -=-
-=- Buddhist masters say, ``You may notice during meditation that you -=-
-=- sometimes levitate or glow.   Do not let this distract you.''     -=-