From owner-freebsd-questions Thu Aug 29 18:10:49 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7C52837B400 for ; Thu, 29 Aug 2002 18:10:46 -0700 (PDT) Received: from wantadilla.lemis.com (wantadilla.lemis.com [192.109.197.80]) by mx1.FreeBSD.org (Postfix) with ESMTP id 18C6443E75 for ; Thu, 29 Aug 2002 18:10:45 -0700 (PDT) (envelope-from grog@lemis.com) Received: by wantadilla.lemis.com (Postfix, from userid 1004) id 1493881434; Fri, 30 Aug 2002 10:40:43 +0930 (CST) Date: Fri, 30 Aug 2002 10:40:43 +0930 From: Greg 'groggy' Lehey To: Lutz Kittler Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Swap-Space Message-ID: <20020830011043.GG49032@wantadilla.lemis.com> References: <15726.4051.211067.109514@master.sse-erfurt.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <15726.4051.211067.109514@master.sse-erfurt.de> User-Agent: Mutt/1.3.99i Organization: The FreeBSD Project Phone: +61-8-8388-8286 Fax: +61-8-8388-8725 Mobile: +61-418-838-708 WWW-Home-Page: http://www.FreeBSD.org/ X-PGP-Fingerprint: 9A1B 8202 BCCE B846 F92F 09AC 22E6 F290 507A 4223 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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