From owner-freebsd-questions@freebsd.org Fri Jan 19 14:55:36 2018 Return-Path: Delivered-To: freebsd-questions@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 2C395EB697C for ; Fri, 19 Jan 2018 14:55:36 +0000 (UTC) (envelope-from tundra@tundraware.com) Received: from oceanview.tundraware.com (oceanview.tundraware.com [45.55.60.57]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mailman.tundraware.com", Issuer "mailman.tundraware.com" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id DDC9331C for ; Fri, 19 Jan 2018 14:55:35 +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 w0JEtW21003975 (version=TLSv1.2 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO); Fri, 19 Jan 2018 08:55:32 -0600 (CST) (envelope-from tundra@tundraware.com) Subject: Re: gpart And VPS Disk: Disappearing swap Partition To: "Steve O'Hara-Smith" Cc: freebsd-questions@freebsd.org References: <511934e8-cbcb-75e2-b4ac-ea06e1a54196@tundraware.com> <20180118213913.b39616554429136e897334fa@sohara.org> <06ff73a3-1c73-3309-985f-297b7dbfa1df@tundraware.com> <20180119075943.aa44341ba798fb1b6c096670@sohara.org> From: Tim Daneliuk Message-ID: Date: Fri, 19 Jan 2018 08:55:27 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.0 MIME-Version: 1.0 In-Reply-To: <20180119075943.aa44341ba798fb1b6c096670@sohara.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.6.2 (oceanview.tundraware.com [45.55.60.57]); Fri, 19 Jan 2018 08:55:32 -0600 (CST) X-TundraWare-MailScanner-Information: Please contact the ISP for more information X-TundraWare-MailScanner-ID: w0JEtW21003975 X-TundraWare-MailScanner: Found to be clean X-TundraWare-MailScanner-SpamCheck: not spam (whitelisted), SpamAssassin (not cached, score=-0.898, required 1, autolearn=not spam, ALL_TRUSTED -1.00, AWL 0.11, T_RP_MATCHES_RCVD -0.01) X-TundraWare-MailScanner-From: tundra@tundraware.com X-Spam-Status: No X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 19 Jan 2018 14:55:36 -0000 On 01/19/2018 01:59 AM, Steve O'Hara-Smith wrote: > Try adding -l swap1 to that command viz: > > gpart add -t freebsd-swap -l swap1 -i4 vtbd0 > > That *should* cause a /dev/gpt/swap1 to appear and persist through > reboots. It does cause the label to appear under /dev/gpt, but as before, it disappears on reboot. > >> gpart modify -i4 -lswapfs2 vtbd0 >> >> At this point, I can see the new swap partition. However, when I reboot, >> it's no longer there. > Hmm - does vtbd0 exist at all after reboot ? Yes, the raw drive and all the partition entries are there. This is very strange. From the OS' point of view, this is just another hard drive. The reason this came up at all is because I got a larger drive assigned to the virtual instance. I was able to successfully resize the root ufs volume. But when I then tried to use the last 1G of the drive for additional swap, I ran into the problems thus described... -- ---------------------------------------------------------------------------- Tim Daneliuk tundra@tundraware.com PGP Key: http://www.tundraware.com/PGP/