Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 30 Aug 2002 10:40:43 +0930
From:      Greg 'groggy' Lehey <grog@FreeBSD.org>
To:        Lutz Kittler <Lutz.Kittler@sse-erfurt.de>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: Swap-Space
Message-ID:  <20020830011043.GG49032@wantadilla.lemis.com>
In-Reply-To: <15726.4051.211067.109514@master.sse-erfurt.de>
References:  <15726.4051.211067.109514@master.sse-erfurt.de>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thursday, 29 August 2002 at 14:13:07 +0200, Lutz Kittler wrote:
>
> Hi,
>
> when I look at my swapspace I see :
>
> Device            1K-blocks   Used    Avail Capacity  Type
> /dev/da0s1b        524160      116   524044     0%    Interleaved
> /dev/da0s1b        524160       64   524096     0%    Interleaved
> /dev/rda0s2b       524160        0   524160     0%    Interleaved
> Total             1572480      180  1572300     0%

This looks dangerous.

> In fstab there is :
>
> /dev/da0s1b		none		swap	sw		0	0
> /dev/da0s2b		none		swap	sw		0	0
>
> Why do I see /dev/da0s1b twice and why all 2 are used ?

Good question.  Check your other /etc/rc* files and see if you're
inadvertently adding something twice.  The /dev/rda0s2b loos
particularly surprising.

Looking at the summary, it's possible that you could end up with
extreme data corruption here if the VM system thinks that the last two
partitions are distinct and overwrites data on them.  You should
resolve this problem as soon as possible.  Try this:

1.  Boot to single user.
2.  Mount /usr.
3.  Do 'pstat -s'.  You should see no swap.
4.  Do 'swapon -a', then 'pstat -s'.  You should see only two swap
    partitions.
5.  Continue booting to multi-user.  You should still see only two
    swap partitions.

If this doesn't work, please report where it goes wrong.

Greg
--
When replying to this message, please copy the original recipients.
If you don't, I may ignore the reply or reply to the original recipients.
For more information, see http://www.lemis.com/questions.html
See complete headers for address and phone numbers

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




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