Date: Mon, 29 Dec 2014 14:11:19 -0700 (MST) From: Warren Block <wblock@wonkity.com> To: Odhiambo Washington <odhiambo@gmail.com> Cc: User Questions <freebsd-questions@freebsd.org> Subject: Re: Adding more swap for FreeBSD 10 Message-ID: <alpine.BSF.2.11.1412291405300.28382@wonkity.com> In-Reply-To: <CAAdA2WP4f%2BR%2BKm0yr0_mncPE3h0YZO2CRnYfjFp%2BDsoH=JrTqg@mail.gmail.com> References: <CAAdA2WP__b2z8v3PiUDVSCY69d3QaHSmy7LvnZhbeQFuPeGNkg@mail.gmail.com> <alpine.BSF.2.11.1412291042580.77379@wonkity.com> <CAAdA2WP4f%2BR%2BKm0yr0_mncPE3h0YZO2CRnYfjFp%2BDsoH=JrTqg@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 29 Dec 2014, Odhiambo Washington wrote: > > > On 29 December 2014 at 20:45, Warren Block <wblock@wonkity.com> 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: <owner-freebsd-questions@FreeBSD.ORG> 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 <freebsd-questions@freebsd.org>; 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 <freebsd-questions@freebsd.org>; Mon, 29 Dec 2014 21:22:53 +0000 (UTC) Received: by mail-lb0-f169.google.com with SMTP id p9so11588128lbv.0 for <freebsd-questions@freebsd.org>; 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: <alpine.BSF.2.11.1412291405300.28382@wonkity.com> References: <CAAdA2WP__b2z8v3PiUDVSCY69d3QaHSmy7LvnZhbeQFuPeGNkg@mail.gmail.com> <alpine.BSF.2.11.1412291042580.77379@wonkity.com> <CAAdA2WP4f+R+Km0yr0_mncPE3h0YZO2CRnYfjFp+DsoH=JrTqg@mail.gmail.com> <alpine.BSF.2.11.1412291405300.28382@wonkity.com> From: Odhiambo Washington <odhiambo@gmail.com> Date: Tue, 30 Dec 2014 00:22:11 +0300 Message-ID: <CAAdA2WNZnV5JquwQ-mrCqyVVE3NAK-Q0cpGq=Pk+-dxZ+hfgsA@mail.gmail.com> Subject: Re: Adding more swap for FreeBSD 10 To: Warren Block <wblock@wonkity.com> Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.18-1 Cc: User Questions <freebsd-questions@freebsd.org> X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: User questions <freebsd-questions.freebsd.org> List-Unsubscribe: <http://lists.freebsd.org/mailman/options/freebsd-questions>, <mailto:freebsd-questions-request@freebsd.org?subject=unsubscribe> List-Archive: <http://lists.freebsd.org/pipermail/freebsd-questions/> List-Post: <mailto:freebsd-questions@freebsd.org> List-Help: <mailto:freebsd-questions-request@freebsd.org?subject=help> List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-questions>, <mailto:freebsd-questions-request@freebsd.org?subject=subscribe> X-List-Received-Date: Mon, 29 Dec 2014 21:22:54 -0000 On 30 December 2014 at 00:11, Warren Block <wblock@wonkity.com> wrote: > On Mon, 29 Dec 2014, Odhiambo Washington wrote: > > >> >> On 29 December 2014 at 20:45, Warren Block <wblock@wonkity.com> 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."
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?alpine.BSF.2.11.1412291405300.28382>