From owner-freebsd-stable@FreeBSD.ORG Mon Jul 6 19:54:51 2009 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0D5711065674 for ; Mon, 6 Jul 2009 19:54:51 +0000 (UTC) (envelope-from marck@rinet.ru) Received: from woozle.rinet.ru (woozle.rinet.ru [195.54.192.68]) by mx1.freebsd.org (Postfix) with ESMTP id 68A308FC0A for ; Mon, 6 Jul 2009 19:54:50 +0000 (UTC) (envelope-from marck@rinet.ru) Received: from localhost (localhost [127.0.0.1]) by woozle.rinet.ru (8.14.3/8.14.3) with ESMTP id n66JsmBx005899; Mon, 6 Jul 2009 23:54:49 +0400 (MSD) (envelope-from marck@rinet.ru) Date: Mon, 6 Jul 2009 23:54:48 +0400 (MSD) From: Dmitry Morozovsky To: Kostik Belousov In-Reply-To: <20090706193653.GU2884@deviant.kiev.zoral.com.ua> Message-ID: References: <4A50E947.9020608@ksu.ru> <4A523518.7050008@gmx.de> <4A523849.1070001@ksu.ru> <20090706193653.GU2884@deviant.kiev.zoral.com.ua> User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) X-NCC-RegID: ru.rinet X-OpenPGP-Key-ID: 6B691B03 MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.2 (woozle.rinet.ru [0.0.0.0]); Mon, 06 Jul 2009 23:54:49 +0400 (MSD) Cc: Ralf Folkerts , "Marat N.Afanasyev" , FreeBSD-STABLE Mailing List Subject: Re: bug in ufs? X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 06 Jul 2009 19:54:51 -0000 On Mon, 6 Jul 2009, Kostik Belousov wrote: KB> > >>i have a strange problem with writing data to my ufs2+su filesystem. KB> > >> KB> > >>1. i made a 1T gpt partition on my storage server, and formatted it: KB> > >>newfs -U -m 0 -o time -i 32768 /dev/da1p3a KB> > >> KB> > >>2. i tried to move data from other servers to this filesystem, total KB> > >>size of files is slightly less than 1T KB> > >> KB> > >>3. i encountered a 'No space left on device' while i still have 11G of KB> > >>free space and about 13 million free inodes on the filesystem: KB> > >> KB> > >>#df -ih KB> > >>Filesystem Size Used Avail Capacity iused ifree %iused KB> > >>Mounted on KB> > >>/dev/da1p3a 1.0T 1.0T 11G 99% 20397465 13363173 60% KB> > >>/mnt/45_114 KB> > >> KB> > >>all i want to know is whether this is a bug or a feature? and if such KB> > >>a behavior is well-known, where can i read about it? KB> > >Hi Marat, KB> > > KB> > >just a guess: Are there sparse Files on the Source System that are not KB> > >being detected by the Tool you used to restore the data? If you used KB> > >(bsd)tar, did you try -S? KB> > > KB> > >A while ago I ran into a similar Problem when copying KB> > >Oracle-Database-Files (on Linux, though) and the -S - Option came to KB> > >rescue. KB> > > KB> > >Cheers, KB> > >_ralf_ KB> > KB> > i have a huge amount of small files on the source systems, as you can KB> > see they have about 20 million files and almost each of them is jpeg or KB> > gif. afaik, there are no sparse files at all. KB> > KB> > i still cannot figure out what is it: a free space leak in ufs2+su or KB> > bug in statfs(3), that is used in df, or something else. KB> KB> My guess that it is due to fragmentation. KB> As an experiment, try to create 1-byte file. Does it work on the filesystem KB> in described state ? Doesn't UFS store one-byte (or several-bytes, like PID file) file entirely in the inode, not consuming any data blocks? -- Sincerely, D.Marck [DM5020, MCK-RIPE, DM3-RIPN] [ FreeBSD committer: marck@FreeBSD.org ] ------------------------------------------------------------------------ *** Dmitry Morozovsky --- D.Marck --- Wild Woozle --- marck@rinet.ru *** ------------------------------------------------------------------------