From owner-freebsd-questions@freebsd.org Fri Jan 19 15:23:41 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 EA8E1EB7ED5 for ; Fri, 19 Jan 2018 15:23:41 +0000 (UTC) (envelope-from 4250.10.freebsd-questions=freebsd.org@email-od.com) Received: from bca5.email-od.com (bca5.email-od.com [207.246.239.5]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id B65C81BB1 for ; Fri, 19 Jan 2018 15:23:41 +0000 (UTC) (envelope-from 4250.10.freebsd-questions=freebsd.org@email-od.com) DKIM-Signature: v=1; a=rsa-sha256; d=email-od.com;i=@email-od.com;s=dkim; c=relaxed/relaxed; q=dns/txt; t=1516375425; x=1518967425; h=x-thread-info:date:from:to:subject:message-id:in-reply-to:references:mime-version:content-type:content-transfer-encoding; bh=HkNg/ytlR4YXuD1YO74LlvpObgZFBcIapu0Fgka3SSs=; b=KOTrKmybIFjaP2zIVVWtQkXzcb7zyRXQHWPlrT6ZSU8c6Ver2+fyijtPb1xPStVm1fVPTtbtOydFXqqRJsg2smtNj/YUXIJCG1zQA7f7QnCN0r7APP+kVpK5kXGesIjn6Wj1AJh/oNjhOCoXL1/h5VaIm15uWj3/bioTUl9o5AQ= X-Thread-Info: NDI1MC4xMi44ODAwMDAwMDEzNTM5Mi5mcmVlYnNkLXF1ZXN0aW9ucz1mcmVlYnNkLm9yZw== Received: from r4.us-west-2a.aws.in.socketlabs.com (r4.us-west-2a.aws.in.socketlabs.com [54.149.236.199]) by bca2.email-od.com with ESMTP(version=Tls12 cipher=Aes256 bits=256); Fri, 19 Jan 2018 10:23:33 -0500 Received: from smtp.lan.sohara.org (EMTPY [89.127.62.20]) by r4.us-west-2a.aws.in.socketlabs.com with ESMTP(version=Tls12 cipher=Aes256 bits=256); Fri, 19 Jan 2018 10:23:29 -0500 Received: from [192.168.63.1] (helo=steve.lan.sohara.org) by smtp.lan.sohara.org with smtp (Exim 4.90 (FreeBSD)) (envelope-from ) id 1ecYVq-000BDS-BB for freebsd-questions@freebsd.org; Fri, 19 Jan 2018 15:23:26 +0000 Date: Fri, 19 Jan 2018 15:23:26 +0000 From: Steve O'Hara-Smith To: freebsd-questions@freebsd.org Subject: Re: gpart And VPS Disk: Disappearing swap Partition Message-Id: <20180119152326.a3ebf228725f025865eedcda@sohara.org> In-Reply-To: References: <511934e8-cbcb-75e2-b4ac-ea06e1a54196@tundraware.com> <20180118213913.b39616554429136e897334fa@sohara.org> <06ff73a3-1c73-3309-985f-297b7dbfa1df@tundraware.com> <20180119075943.aa44341ba798fb1b6c096670@sohara.org> X-Mailer: Sylpheed 3.6.0 (GTK+ 2.24.31; amd64-portbld-freebsd11.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit 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 15:23:42 -0000 On Fri, 19 Jan 2018 08:55:27 -0600 Tim Daneliuk wrote: > 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 Good! > disappears on reboot. Bad. > > 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 have to agree, extremely strange. I'm out of good ideas now. > 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... Hmmm, perhaps there's something about it being the last 1G - try just adding half of it and see what happens. -- Steve O'Hara-Smith | Directable Mirror Arrays C:\>WIN | A better way to focus the sun The computer obeys and wins. | licences available see You lose and Bill collects. | http://www.sohara.org/