Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 9 Jun 2005 23:35:12 -0400
From:      Suleiman Souhlal <ssouhlal@FreeBSD.org>
To:        Jean-Yves Lefort <jylefort@FreeBSD.org>
Cc:        Xin LI <delphij@FreeBSD.org>, freebsd-stable <freebsd-stable@FreeBSD.org>
Subject:   Re: UFS2 partition with negative used space
Message-ID:  <365EB646-B593-4038-9525-D0CC3C00D691@FreeBSD.org>
In-Reply-To: <20050610042211.5d214150.jylefort@FreeBSD.org>
References:  <20050610042211.5d214150.jylefort@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi,

On Jun 9, 2005, at 10:22 PM, Jean-Yves Lefort wrote:

> Hi,
>
> Filesystem                             Size    Used   Avail  
> Capacity  Mounted on
> /dev/ad0s1e                            989M    -46M    956M     
> -5%    /var/tmp
>
> Any hints?

During a private discussion I had with Jean-Yves, we have  determined  
that the problem was due to the cylinder group summary being stale.

It used to be recomputed by the kernel at mount time if the  
filesystem was dirty, but delphij changed it so that background fsck  
recomputes it instead. For some reason, in this case, this wasn't  
enough to synchronize the superblock's cg summary with the actual  
summary stored in the cgs. I'll have to investigate some more.

In the meantime, a fsck -y is enough to fix it.

Bye.
--
Suleiman Souhlal     | ssouhlal@vt.edu
The FreeBSD Project  | ssouhlal@FreeBSD.org




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?365EB646-B593-4038-9525-D0CC3C00D691>