From owner-freebsd-questions@FreeBSD.ORG Mon Dec 29 21:11:22 2014 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 51197306 for ; Mon, 29 Dec 2014 21:11:22 +0000 (UTC) Received: from wonkity.com (wonkity.com [67.158.26.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "wonkity.com", Issuer "wonkity.com" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id D57CF22BB for ; Mon, 29 Dec 2014 21:11:21 +0000 (UTC) Received: from wonkity.com (localhost [127.0.0.1]) by wonkity.com (8.14.9/8.14.9) with ESMTP id sBTLBJu6029890 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Mon, 29 Dec 2014 14:11:19 -0700 (MST) (envelope-from wblock@wonkity.com) Received: from localhost (wblock@localhost) by wonkity.com (8.14.9/8.14.9/Submit) with ESMTP id sBTLBJME029887; Mon, 29 Dec 2014 14:11:19 -0700 (MST) (envelope-from wblock@wonkity.com) Date: Mon, 29 Dec 2014 14:11:19 -0700 (MST) From: Warren Block To: Odhiambo Washington Subject: Re: Adding more swap for FreeBSD 10 In-Reply-To: Message-ID: References: User-Agent: Alpine 2.11 (BSF 23 2013-08-11) MIME-Version: 1.0 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.4.3 (wonkity.com [127.0.0.1]); Mon, 29 Dec 2014 14:11:19 -0700 (MST) Content-Type: TEXT/PLAIN; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8BIT X-Content-Filtered-By: Mailman/MimeDel 2.1.18-1 Cc: User Questions X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Dec 2014 21:11:22 -0000 On Mon, 29 Dec 2014, Odhiambo Washington wrote: > > > On 29 December 2014 at 20:45, Warren Block wrote: > On Mon, 29 Dec 2014, Odhiambo Washington wrote: > > My FreeBSD system is crashing so much for lack of swap. > > I used BSD labels instead of GPT and I had it a little rough creating my > slices and this resulted in me not creating the swap partition. > > Now, if I run 'bsdinstall partedit', I see that it is possible to create a > partition of 5.8GB at the end of my disks. However, the gui from bsdinstall > wouldn't let me commit my changes on the already live disks. > > Is there a command line way of achieving the above with bsdinstall without > destroying a disk? > > I am hoping that there is something like 'bsdinstall scriptedpart .....' > > > Use gpart(8) rather than bsdinstall.  With MBR and bsdlabel, everything is more difficult than with GPT, but it still can be done.  Please show the output of 'gpart show'. > > > wash@mail:~$ gpart show ada0 > =>                     0   976773168  ada0  BSD         (466G) >                          0   964689920     1  freebsd-ufs  (460G) >          964689920   12083248        - free -            (5.8G) Oh, just bare bsdlabels... (untested): gpart add -t freebsd-swap -a4k ada0 The device for the swap entry in /etc/fstab will be ada0b. From owner-freebsd-questions@FreeBSD.ORG Mon Dec 29 21:22:54 2014 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 31E81559 for ; Mon, 29 Dec 2014 21:22:54 +0000 (UTC) Received: from mail-lb0-x229.google.com (mail-lb0-x229.google.com [IPv6:2a00:1450:4010:c04::229]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id A3A862574 for ; Mon, 29 Dec 2014 21:22:53 +0000 (UTC) Received: by mail-lb0-f169.google.com with SMTP id p9so11588128lbv.0 for ; Mon, 29 Dec 2014 13:22:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=gw6vUc/LMCux5lQZssIOLgZTrhHqOBKPtXV2G4kOttc=; b=QRYuhmPKCPmhCdu5+/jKeSi6iS254q6/bZ8D8tVfPVNsRvPnezWwN+119wWql20U9q q07vaaAbgzQMQUkTasC4IQENKHoDxX0pPpj8LpOu0UKD5qI9eqZkaza8MB8CGOgTxnws 0FIMXKMmPhIX40DNRwsN8G6gxFRozrVq3vAnie8EzV0S1Dve5FVFsJmrMtcQkf1m0mJc SJ4jJb1Ou5ysBE9Goa09nUdZ4voGYlv3rCO4uhpfue8iPWymzxcrSIRUrZ3vJutRAncK Vl7ljX6YbKaFlWDOOG2kKmCk5sC2WEpVlPEsrVQNp3UgQVH/NdoWuihxklflXg7Q037d Mc/g== X-Received: by 10.152.121.100 with SMTP id lj4mr58160670lab.58.1419888171765; Mon, 29 Dec 2014 13:22:51 -0800 (PST) MIME-Version: 1.0 Received: by 10.112.35.199 with HTTP; Mon, 29 Dec 2014 13:22:11 -0800 (PST) In-Reply-To: References: From: Odhiambo Washington Date: Tue, 30 Dec 2014 00:22:11 +0300 Message-ID: Subject: Re: Adding more swap for FreeBSD 10 To: Warren Block Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.18-1 Cc: User Questions X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Dec 2014 21:22:54 -0000 On 30 December 2014 at 00:11, Warren Block wrote: > On Mon, 29 Dec 2014, Odhiambo Washington wrote: > > >> >> On 29 December 2014 at 20:45, Warren Block wrote: >> On Mon, 29 Dec 2014, Odhiambo Washington wrote: >> >> My FreeBSD system is crashing so much for lack of swap. >> >> I used BSD labels instead of GPT and I had it a little rough >> creating my >> slices and this resulted in me not creating the swap >> partition. >> >> Now, if I run 'bsdinstall partedit', I see that it is >> possible to create a >> partition of 5.8GB at the end of my disks. However, the gui >> from bsdinstall >> wouldn't let me commit my changes on the already live disks. >> >> Is there a command line way of achieving the above with >> bsdinstall without >> destroying a disk? >> >> I am hoping that there is something like 'bsdinstall >> scriptedpart .....' >> >> >> Use gpart(8) rather than bsdinstall. With MBR and bsdlabel, >> everything is more difficult than with GPT, but it still can be done. >> Please show the output of 'gpart show'. >> >> >> wash@mail:~$ gpart show ada0 >> => 0 976773168 ada0 BSD (466G) >> 0 964689920 1 freebsd-ufs (460G) >> 964689920 12083248 - free - (5.8G) >> > > Oh, just bare bsdlabels... (untested): > > gpart add -t freebsd-swap -a4k ada0 > > The device for the swap entry in /etc/fstab will be ada0b. "untested" is rather scary:) This server is over 1800km away from me! And there is nobody there to rescue if I blow it away:) -- Best regards, Odhiambo WASHINGTON, Nairobi,KE +254733744121/+254722743223 "I can't hear you -- I'm using the scrambler."