From owner-freebsd-fs@FreeBSD.ORG Fri Nov 14 11:52:39 2008 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 284591065672 for ; Fri, 14 Nov 2008 11:52:39 +0000 (UTC) (envelope-from antik@bsd.ee) Received: from sorbesgroup.com (mail.sorbesgroup.com [217.159.241.118]) by mx1.freebsd.org (Postfix) with ESMTP id B2F9C8FC14 for ; Fri, 14 Nov 2008 11:52:38 +0000 (UTC) (envelope-from antik@bsd.ee) Received: from localhost (localhost.localdomain [127.0.0.1]) by sorbesgroup.com (Postfix) with ESMTP id 6F54A3C52992 for ; Fri, 14 Nov 2008 13:48:04 +0200 (EET) Received: from sorbesgroup.com ([127.0.0.1]) by localhost (sorbesgroup.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 31515-04 for ; Fri, 14 Nov 2008 13:48:04 +0200 (EET) Received: from [192.168.0.80] (andrei [192.168.0.80]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by sorbesgroup.com (Postfix) with ESMTP id EBD693C52991 for ; Fri, 14 Nov 2008 13:48:03 +0200 (EET) Message-ID: <491D6689.4090800@bsd.ee> Date: Fri, 14 Nov 2008 13:52:41 +0200 From: Andrei Kolu User-Agent: Thunderbird 2.0.0.17 (Windows/20080914) MIME-Version: 1.0 To: freebsd-fs@freebsd.org References: <491D5296.3000600@bsd.ee> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: amavisd-new at localhost Subject: Re: Filesystem size and free space X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 14 Nov 2008 11:52:39 -0000 Ivan Voras wrote: > Andrei Kolu wrote: > >> Hi, >> >> due to migration from Windows Server 2003 NTFS filesystem to FreeBSD >> 7.1Beta2 UFS+softupdates filesystem I encountered strange problem. NTFS >> formatted filesystem seen in FreeBSD as read-only and exactly 500GB with >> 28GB free space but after format to UFS disk shows up as 484GB and after >> copying back files that was on same disk (from ntfs) UFS filesystem >> shows that I got -33GB (minus?) of free space. What's wrong? Is UFS so >> inefficient filesystem or it is a bug? >> > > UFS reserves a small percentage of the space for the superuser (root) > utilities and also for performance benefits. "-33 GB" is telling you > that you have used 33 GB of this reserved space, which isn't good if the > file system is going to be used in a read-write environment. If the file > system is going to be used read-only, you can safely ignore this; > otherwise try never to use the reserved space. In particular, userland > programs running under non-root user accounts will not see this reserved > space and will get "out of disk space" errors when they try to add data > to files in such a file system. > > You can lower the size of this reserved space with "tunefs -m" which > will allow non-root users to access more space, but this isn't > recommended. Either delete files or buy a bigger drive. > > So, I can say bye-bye to 50GB of space due to UFS filesystem features? IIRC then FreeBSD 4.x got 10% root reservation per filesystem and these days we got 1000 times bigger hard drives, do we need so much reservation (8% now I presume)? This filesystem would be read-only for users but writable to administrator to store large image files from other computers on network. If I understand correctly then this "reserved space" is used to avoid filesystem fragmentation. Can ZFS be more efficient, what if I create volumes per disk? Andrei