Is there the equivalent of a Windows "fast format" for UFS?

Peter Steele psteele at maxiscale.com
Fri Dec 4 22:05:42 UTC 2009


Okay, thanks for the reply. I know where I need to go from here...

-----Original Message-----
From: Maxim Khitrov [mailto:mkhitrov at gmail.com] 
Sent: Friday, December 04, 2009 12:23 PM
To: Peter Steele
Cc: freebsd-questions at freebsd.org
Subject: Re: Is there the equivalent of a Windows "fast format" for UFS?

On Fri, Dec 4, 2009 at 2:23 PM, Peter Steele <psteele at maxiscale.com> wrote:
> I suspect I know the answer to this question but I'll ask it anyway. We're dealing with some very large disks (11TB raid array) and a newfs operation takes a significant time. Is there any way to get a volume formatted faster than the typical newfs does?
>

It's actually the other way around - there is only "fast" format for UFS. As far as I know, full format for FAT or NTFS also checks for bad sectors on the drive, so that's why Windows has that distinction.

What you need to do is properly configure block/frag sizes and inode density. Figure out the average file size that will be stored on the volume and divide the total volume size by that number. That is the minimum number of inodes you should create, since one inode is required per file. Of course, you should aim higher since you will not be able to add more inodes without reformatting the system.

Increasing block and fragment sizes may also help, depending on what type of files you are storing. Read tuning(7) and then newfs(8) for options -b, -f, and -i.

- Max


More information about the freebsd-questions mailing list