From genti@brynnsworld.com  Sat Jun 17 12:09:16 2000
Return-Path: <genti@brynnsworld.com>
Received: from ewok.brynnsworld.com (iplsin38-096.dsl.gtei.net [4.3.38.96])
	by hub.freebsd.org (Postfix) with SMTP id 5DCD837B592
	for <FreeBSD-gnats-submit@freebsd.org>; Sat, 17 Jun 2000 12:09:15 -0700 (PDT)
	(envelope-from genti@brynnsworld.com)
Received: (qmail 88439 invoked by uid 1001); 15 Jun 2000 22:42:33 -0000
Message-Id: <20000615224233.88438.qmail@ewok>
Date: 15 Jun 2000 22:42:33 -0000
From: genti@brynnsworld.com
Reply-To: genti@brynnsworld.com
To: FreeBSD-gnats-submit@freebsd.org
Subject: <Synopsis of the problem (one line)> swap info incorrect after using sysinstall's label editor
X-Send-Pr-Version: 3.2

>Number:         19357
>Category:       bin
>Synopsis:       swap info incorrect after using sysinstall's label editor
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Jun 17 12:10:01 PDT 2000
>Closed-Date:    Thu Aug 16 10:19:26 PDT 2001
>Last-Modified:  Thu Aug 16 10:23:02 PDT 2001
>Originator:     Genti Cuni
>Release:        FreeBSD 4.0-RELEASE i386
>Organization:
>Environment:

	
My system is a P166MMX with 32 mb of ram and 2.1 GIG of hard drive, divided in two slices.
FreeBSD resides in the second slice where it was originally installed.

>Description:

	
As I mentioned above my hard drive was separated in two slices. Each about 1 GIG in size.
FreeBSD was on the second one and I had windows on the first one. I wanted to delete the windows
slice and convert it to a FreeBSD one. To achieve that I used /stand/sysinstall. First the Fdisk
to convert the slice to a FreeBSD one and the the Disk Label editor to create the file system in it.
The operation went smooth and as expected. However, when I later issued a top command, I noticed
that my swap size had increased four fold. I looked at the partition information from sysinstall's
label editor, and the swap partition was - as it had always been - 69 mb in size.
I did some more investigations and found the swapinfo command. This is what it outputs:

Device          1K-blocks     Used    Avail Capacity  Type
/dev/ad0s2b         70768     3232    67536     5%    Interleaved
/dev/ad0s2b         70768       20    70748     0%    Interleaved
/dev/ad0s2b         70768        0    70768     0%    Interleaved
/dev/ad0s2b         70768        0    70768     0%    Interleaved
Total              283072     3252   279820     1%

As you can see the same 69 mb swap partition is being counted 4 times. There is even some
usage on the second one?!!?

>How-To-Repeat:

	

/stand/sysinstall
erase and create some slices with fdisk and initialize them with disk label editor.

>Fix:

	


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: gnats-admin->freebsd-bugs 
Responsible-Changed-By: phantom 
Responsible-Changed-When: Sat Jul 8 06:53:33 PDT 2000 
Responsible-Changed-Why:  
Misfiled PR 

http://www.freebsd.org/cgi/query-pr.cgi?pr=19357 
State-Changed-From-To: open->feedback 
State-Changed-By: mike 
State-Changed-When: Sat Jul 21 20:20:05 PDT 2001 
State-Changed-Why:  

Does this problem still occur in newer versions of FreeBSD, 
such as 4.3-RELEASE? 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=19357 
State-Changed-From-To: feedback->closed 
State-Changed-By: mike 
State-Changed-When: Thu Aug 16 10:19:26 PDT 2001 
State-Changed-Why:  

I am unable to reproduce this problem and e-mail sent to the originator 
bounces.  If someone else is able to reproduce this problem this PR 
can be re-opened. 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=19357 
>Unformatted:
