From owner-freebsd-virtualization@freebsd.org Wed Feb 8 05:39:39 2017 Return-Path: Delivered-To: freebsd-virtualization@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 EA986CD5F18 for ; Wed, 8 Feb 2017 05:39:39 +0000 (UTC) (envelope-from dweimer@dweimer.net) Received: from webmail.dweimer.net (24-240-198-187.static.stls.mo.charter.com [24.240.198.187]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "www.dweimer.net", Issuer "Go Daddy Secure Certificate Authority - G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id A9B351303 for ; Wed, 8 Feb 2017 05:39:38 +0000 (UTC) (envelope-from dweimer@dweimer.net) Received: from www.dweimer.net (opnsense.dweimer.local [10.9.5.1]) (authenticated bits=0) by webmail.dweimer.net (8.15.2/8.15.2) with ESMTPSA id v185NSXb015412 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO) for ; Tue, 7 Feb 2017 23:23:29 -0600 (CST) (envelope-from dweimer@dweimer.net) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=dweimer.net; s=2017.01.31; t=1486531409; bh=Io/DrEgOIKDPPTG7DbEVwvS3ZYgfyzgzk3Wx3xcTfvE=; h=Date:From:To:Subject:Reply-To; b=sXFjsF5H1leIyWk1ulFH6Vyyr29T071iYL5KIWnbkCY7yPBdbwPFJyqvLsmLrLiCq aBIoRCtVgwRXMlfYheiubog4BWivK+7d0VsGsiRtE+El1HYMsnfJSmK+LzSdyO0gCD Lhp6tYBCIlYDrbmX0AwyqWJ/R2Ef2yDn6EO8Sl7vmU/5heZ0/ARDMbbW6JLLo1fArB lwYgNuJrOEN8ouWY+xI/MqE39uOyGHtJkjkmpIxuM3+mOzI2OS8vjT2I4LyD5wOM/i /eYNFkJoY8g5X4EQMI/x4AgDJodhq5R2rl9QT+/1sLy/sRjorrfOdu5dALNgFsLSMW xW+yYMAksLVlA== MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Tue, 07 Feb 2017 23:23:23 -0600 From: "Dean E. Weimer" To: freebsd-virtualization@freebsd.org Subject: Resizing ZVOL used for bhyve VM. Organization: dweimer.net Reply-To: dweimer@dweimer.net Mail-Reply-To: dweimer@dweimer.net Message-ID: X-Sender: dweimer@dweimer.net User-Agent: Roundcube Webmail/1.3-beta X-BeenThere: freebsd-virtualization@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Discussion of various virtualization techniques FreeBSD supports." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 08 Feb 2017 05:39:40 -0000 I am trying to resize a secondary data disk on a Debian Linux Virtual machine. The data really isn't all that important, its video from IP security cameras. Since nothing has happened that needs reviewed I could scrap it and start over. However I can't even do that. I tried just setting the volsize to a larger value while the vm is shutdown. zfs excepts the command, I boot up the VM but it is not recognizing the volume properly I can see that its grown, but it errors trying to update the GPT partition table with the new size. I gave up shutdown VM and tried to delete the zvol so I could create a new one. However it believes the zvol is in use and wont let me destroy it. So something funky seems to be going on. oddly enough I set the zvol back to the original size boot up the vm, all the data is intact and functioning just fine. So somehow I can't break it despite doing all kinds of things that could have and probably should have destroyed the data. I am going to guess the only thing I have left to try is disable vms on startup and reboot to see if I can then destroy the zvol and create a new larger one. But I was hoping someone else might have another suggestion to correctly increase the volume size. -- Thanks, Dean E. Weimer http://www.dweimer.net/