Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 21 Apr 2008 18:28:35 GMT
From:      Paul <onemda@gmail.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   conf/122968: md swapfile multiplication after init 1
Message-ID:  <200804211828.m3LISZui080004@www.freebsd.org>
Resent-Message-ID: <200804211830.m3LIU4Nt035488@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help


>Number:         122968
>Category:       conf
>Synopsis:       md swapfile multiplication after init 1
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Apr 21 18:30:04 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator:     Paul
>Release:        FreeBSD 8.0 Current
>Organization:
>Environment:
FreeBSD i386 8.0 Current
>Description:
Having swapfile defined in rc.conf
will create duplication of memory disk device after executing init 1 as root
swapinfo will report md0 and md1 as swapdevices and top will report duplicated (2x) swap (impossiblie)

I did not look if other problems may arise when this error happen (swap was not used at all)


>How-To-Repeat:
create swapfile with dd (as explained in handbook) and add its full name in /etc/rc.conf

notice swapinfo and top output after executing # init 1
>Fix:
Before adding swapfile check if it already exist with mdconfig -l -u X
where X is mdX number of previous swapfile.

>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200804211828.m3LISZui080004>