From owner-freebsd-stable@freebsd.org Fri Aug 14 16:29:30 2015 Return-Path: Delivered-To: freebsd-stable@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 73C3B9BA8CC for ; Fri, 14 Aug 2015 16:29:30 +0000 (UTC) (envelope-from tundra@tundraware.com) Received: from oceanview.tundraware.com (oceanview.tundraware.com [104.236.38.227]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "oceanview.tundraware.com", Issuer "oceanview.tundraware.com" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 1E0701250 for ; Fri, 14 Aug 2015 16:29:29 +0000 (UTC) (envelope-from tundra@tundraware.com) Received: from [192.168.0.2] (ozzie.tundraware.com [75.145.138.73]) (authenticated bits=0) by oceanview.tundraware.com (8.15.2/8.15.2) with ESMTPSA id t7EGOv7l004209 (version=TLSv1.2 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO) for ; Fri, 14 Aug 2015 11:24:58 -0500 (CDT) (envelope-from tundra@tundraware.com) Message-ID: <55CE1654.8030304@tundraware.com> Date: Fri, 14 Aug 2015 11:24:52 -0500 From: Tim Daneliuk User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.8.0 MIME-Version: 1.0 To: freebsd-stable@freebsd.org Subject: Re: Swap Questions References: <55CDE9EE.5090603@tundraware.com> <280266DF-AD94-4DC2-A5E1-AD0603B33BFE@punkt.de> <55CDFF32.3020809@tundraware.com> <874mk1g9b6.fsf@elk.localnet> In-Reply-To: <874mk1g9b6.fsf@elk.localnet> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.4.3 (oceanview.tundraware.com [104.236.38.227]); Fri, 14 Aug 2015 11:24:58 -0500 (CDT) X-TundraWare-MailScanner-Information: Please contact the ISP for more information X-TundraWare-MailScanner-ID: t7EGOv7l004209 X-TundraWare-MailScanner: Found to be clean X-TundraWare-MailScanner-From: tundra@tundraware.com X-Spam-Status: No X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 14 Aug 2015 16:29:30 -0000 On 08/14/2015 10:48 AM, Carl Johnson wrote: > Tim Daneliuk writes: > >> On 08/14/2015 08:53 AM, Patrick M. Hausen wrote: >>> HI! >>> >>>> Am 14.08.2015 um 15:15 schrieb Tim Daneliuk : >>>> >>>> I just built a 10.2 machine on a cloud-based VPS (Digital Ocean) that has >>>> 512M of memory and 1G of swap partition. I am seeing a ton of errors like >>>> this: >>>> >>>> [...] >>>> So, I added this to fstab (after creating /usr/swap0): >>> >>> Did you create it with dd or just with touch? You need to create a >>> file that actually occupies the disk blocks with dd. >>> >>> HTH >>> Patrick >>> >> >> The file was actually created, and space reserved. > > Try removing the md99 device with mdconfig and then run the swapon again. > Now we're getting somewhere. The problem I discovered is that if I do this: 1) Remove fstab entry for swap file and reboot 2) Reinstall fstab entry for swap and swapon Voila' - it works. BUT ... if I then swapoff that disk *the md device does not go away and cannot be removed with mdcoswapon -a swapon: md99 on /usr/swap0: Device already in use nfig: mdconfig -d md99 mdconfig: file can only be used with -a I also cannot reenable it as swap again (which is why this appeared to not be working: swapon -a swapon: md99 on /usr/swap0: Device already in use IOW, the system thinks the /dev/md99 is still in use even though I have swapped it off and will neither automatically remove the device nor allow me to do so manually. Ideas anyone? (And that for all the help from you folks...) ---------------------------------------------------------------------------- Tim Daneliuk tundra@tundraware.com PGP Key: http://www.tundraware.com/PGP/