From toasty@dragondata.com  Fri Jan 24 21:37:02 2003
Return-Path: <toasty@dragondata.com>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 2C05937B401
	for <freebsd-gnats-submit@freebsd.org>; Fri, 24 Jan 2003 21:37:02 -0800 (PST)
Received: from shell.dragondata.com (shell.dragondata.com [66.17.132.249])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 3C08C43EB2
	for <freebsd-gnats-submit@freebsd.org>; Fri, 24 Jan 2003 21:37:01 -0800 (PST)
	(envelope-from toasty@dragondata.com)
Received: (from root@localhost)
	by shell.dragondata.com (8.11.4/8.11.3) id h0NHgv965334
	for freebsd-gnats-submit@freebsd.org; Thu, 23 Jan 2003 11:42:57 -0600 (CST)
	(envelope-from toasty@dragondata.com)
Received: from KEVIN-AW.dragondata.com (dsl092-133-143.chi1.dsl.speakeasy.net [66.92.133.143])
	by shell.dragondata.com (8.11.4/8.11.3av) with ESMTP id h0NHgtT65325
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 23 Jan 2003 11:42:55 -0600 (CST)
	(envelope-from toasty@dragondata.com)
Message-Id: <5.1.1.5.2.20030123114403.03157770@127.0.0.1>
Date: Thu, 23 Jan 2003 11:45:15 -0600
From: Kevin Day <toasty@dragondata.com>
To: FreeBSD-gnats-submit@freebsd.org
Subject: df(1) reports filesystem empty when it isn't

>Number:         47452
>Category:       kern
>Synopsis:       [vinum] df(1) reports filesystem empty when it isn't
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    le
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Jan 24 21:40:02 PST 2003
>Closed-Date:    Sat Nov 26 16:45:40 GMT 2005
>Last-Modified:  Sat Nov 26 16:45:40 GMT 2005
>Originator:     Kevin Day
>Release:        FreeBSD 5.0-RELEASE i386
>Organization:
Stile Project, Inc.
>Environment:
 System: FreeBSD server7.stileproject.com 5.0-RELEASE FreeBSD 5.0-RELEASE 
 #0: Tue Jan 21 00:30:58 GMT 2003 
 toasty@server7.stileproject.com:/usr/src/sys/i386/compile/SERVERSEVEN i386
 
>Description:

 After a complete reinstall (actually swapping the boot drive with another
 drive) and installing 5.0-RELEASE on a system that was running 4.4-RELEASE
 before, df(1) is saying that a vinum array is completely empty:
 
 # df /bay0
 Filesystem      1K-blocks Used     Avail Capacity  Mounted on
 /dev/vinum/bay0 233068952   80 214423360     0%    /bay0
 
 server7# ls -l
 -rw-r--r--  1 root  wheel  161009353 Jan 10 21:12 temp
 -rw-r--r--  1 root  wheel  161015454 Jan 10 21:08 temp~
 server7# rm temp*
 server7# df
 Filesystem          1K-blocks     Used     Avail Capacity  Mounted on
 /dev/vinum/bay0     233068952  -314544 214737984    -0%    /bay0
 
 If I fsck it before mounting, nothing changes. If I try to unmount it, I get
 an instant reboot. (no console messages, no panic, just a reboot)
 
 I'll leave this like this for a few days in case anyone wants me to try
 something, but since this is a production system, I'm going to need to fix
 it (newfs) rather soon.
 
 
  >How-To-Repeat:
 
  >Fix:
 
 
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: gnats-admin->freebsd-bugs 
Responsible-Changed-By: tom 
Responsible-Changed-When: Sun Jan 26 13:37:44 PST 2003 
Responsible-Changed-Why:  
Reassign misfiled PR 

http://www.freebsd.org/cgi/query-pr.cgi?pr=47452 

From: Kevin Day <toasty@dragondata.com>
To: freebsd-gnats-submit@freebsd.org, toasty@dragondata.com
Cc:  
Subject: Re: kern/47452: df(1) reports filesystem empty when it isn't
Date: Mon, 27 Jan 2003 03:17:08 -0600

 One further note... On every reboot, I go back to 0%. Any changes after 
 booting are reflected (even if it results in a negative amount of used 
 space), but after a reboot/fsck I go back to 0%.
 
 The inode count in "df -i" also shows 0 after a reboot.
 
 I still haven't newfs'ed this yet in case anyone wants to look at it.
 
 
State-Changed-From-To: open->feedback 
State-Changed-By: kris 
State-Changed-When: Fri Oct 31 18:15:21 PST 2003 
State-Changed-Why:  
Does this problem persist? 

http://www.freebsd.org/cgi/query-pr.cgi?pr=47452 

From: Kevin Day <toasty@dragondata.com>
To: freebsd-gnats-submit@FreeBSD.org, toasty@dragondata.com,
	kris@FreeBSD.org
Cc:  
Subject: Re: kern/47452: df(1) reports filesystem empty when it isn't
Date: Sun, 02 Nov 2003 09:56:54 -0600

 Yes, I have a different system that was previously a 4.8-RELEASE that was 
 somewhat recently upgraded to 5.1-RELEASE.
 
 Here another vinum backed volume now appears negative:
 
 server6# du -xch /bay0 | tail -n 1
 2.5G    total
 server6# df /bay0
 Filesystem      1K-blocks   Used    Avail Capacity  Mounted on
 /dev/vinum/bay0  58379160 -22584 53731416    -0%    /bay0
 
 It seems harmless, but still strange. The last system was "cured" by a 
 newfs, this one I haven't touched.
 
Responsible-Changed-From-To: freebsd-bugs->grog 
Responsible-Changed-By: kris 
Responsible-Changed-When: Sun Nov 2 13:16:17 PST 2003 
Responsible-Changed-Why:  
Assign to vinum author since it appears to be vinum-related 

http://www.freebsd.org/cgi/query-pr.cgi?pr=47452 
Responsible-Changed-From-To: grog->le 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Thu Sep 9 18:59:14 GMT 2004 
Responsible-Changed-Why:  
With permission of both, reassign from grog to le. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=47452 
State-Changed-From-To: feedback->closed 
State-Changed-By: le 
State-Changed-When: Sat Nov 26 16:45:00 GMT 2005 
State-Changed-Why:  
Since 'classic' vinum isn't supported anymore, I'm closing this PR. 

If the described behaviour still exists on newer systems, a new PR 
can be opened. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=47452 
>Unformatted:
