From owner-freebsd-stable@FreeBSD.ORG Tue Jan 6 20:05:20 2015 Return-Path: Delivered-To: freebsd-stable@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 081C9F2E for ; Tue, 6 Jan 2015 20:05:20 +0000 (UTC) Received: from maul.immure.com (104-49-19-137.lightspeed.austtx.sbcglobal.net [104.49.19.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id D50F06480E for ; Tue, 6 Jan 2015 19:00:59 +0000 (UTC) Received: from rancor.immure.com ([10.1.132.9]) by maul.immure.com with esmtp (Exim 4.84 (FreeBSD)) (envelope-from ) id 1Y8ZN6-000Dxv-IY; Tue, 06 Jan 2015 13:00:53 -0600 Received: from rancor.immure.com (localhost [127.0.0.1]) by rancor.immure.com (8.14.9/8.14.9) with ESMTP id t06J0q1T062461; Tue, 6 Jan 2015 13:00:52 -0600 (CST) (envelope-from bob@rancor.immure.com) Received: (from bob@localhost) by rancor.immure.com (8.14.9/8.14.9/Submit) id t06J0pX9062460; Tue, 6 Jan 2015 13:00:51 -0600 (CST) (envelope-from bob) Date: Tue, 6 Jan 2015 13:00:51 -0600 From: Bob Willcox To: Warren Block Subject: Re: I need some swap partion help on new 10.1 install Message-ID: <20150106190051.GA62395@rancor.immure.com> Reply-To: Bob Willcox References: <20150103172527.GI867@rancor.immure.com> <745af5f28074a940e743f6094be15991@ultimatedns.net> <54A88D7B.8010901@protected-networks.net> <20150105225028.GC57206@rancor.immure.com> <20150106155623.GA61837@rancor.immure.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) Cc: Kevin Oberman , Chris H , FreeBSD-STABLE Mailing List X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Jan 2015 20:05:20 -0000 On Tue, Jan 06, 2015 at 09:11:19AM -0700, Warren Block wrote: > On Tue, 6 Jan 2015, Bob Willcox wrote: > > > So, what should I put in /boot/loader.conf? Can I enable both GPT and GPT IDs > > with this: > > > > kern.geom.label.gpt.enable="1" > > kern.geom.label.gptid.enable="1" > > > > And if I do, should I expect any problems with doing that? > > Both are enabled by default. Disabling GPTID can remove some confusion, > but is not required. > > Make certain the swap partition has a GPT label. 'gpart show -l' shows > them. If it does not have one, set one with gpart modify. > > Then use that label in fstab, in the form of /dev/gpt/labelname. Well, here's what I have on the system currently: bob@maul:7 /home/bob> sysctl -a |grep label\\.gpt kern.geom.label.gpt.enable: 1 kern.geom.label.gptid.enable: 0 bob@maul:7 /home/bob> gpart show -l => 34 488397101 diskid/DISK-S21NNSAFC51114F GPT (233G) 34 1024 1 gptboot0 (512K) 1058 16777216 2 swap0 (8.0G) 16778274 471618861 3 zfs0 (225G) So is this to be expected? Is it the gptid setting that creates the /dev/ada0 entries? I have another system here that has a UFS root disk and another disk that's a ZFS disk. It is also a recent 10.1 install and it's output looks like this: bob@tavion:5 /home/bob> sysctl -a |grep label\\.gpt kern.geom.label.gpt.enable: 1 kern.geom.label.gptid.enable: 1 bob@tavion:5 /home/bob> gpart show -l => 34 976773101 ada0 GPT (466G) 34 6 - free - (3.0K) 40 16777216 1 (null) (8.0G) 16777256 959995872 2 (null) (458G) 976773128 7 - free - (3.5K) => 34 156301421 ada1 GPT (75G) 34 1024 1 (null) (512K) 1058 148896768 2 (null) (71G) 148897826 7403628 3 (null) (3.5G) 156301454 1 - free - (512B) => 1 31266815 da0 MBR (15G) 1 31 - free - (16K) 32 31266784 1 (null) (15G) => 1 31266815 diskid/DISK-4C530011940607120335 MBR (15G) 1 31 - free - (16K) 32 31266784 1 (null) (15G) -- Bob Willcox | Men who cherish for women the highest bob@immure.com | respect are seldom popular with them. Austin, TX | -- Joseph Addison