Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 23 Dec 2020 07:55:16 +0100
From:      "Bradley T. Hughes" <bhughes@FreeBSD.org>
To:        tech-lists <tech-lists@zyxst.net>
Cc:        "=?utf-8?Q?freebsd-cloud=40freebsd.org?=" <freebsd-cloud@freebsd.org>
Subject:   Re: resizing a FreeBSD 12.1 vm on Azure
Message-ID:  <E0199A6C-A4B7-4443-9659-2ED461EF2FAA@getmailspring.com>
In-Reply-To: <X%2BFBrmy0Ob4wLQUV@bastion.zyxst.net>
References:  <X%2BFBrmy0Ob4wLQUV@bastion.zyxst.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Dec 22 2020, at 1:45 am, tech-lists <tech-lists@zyxst.net> wrote:
> Hello,

Howdy!

> Has anyone ever resized a freebsd vm on Azure? I don't mean just the
> disks. 
> Really the whole point is to have more CPU and RAM. I have the option
> to do 
> this via their portal, just select whats required and hit 'resize' but
> I'm 
> a bit hesitant. I guess it'll work on a windows VM but anything else?

Yes, I do this all the time. I run a poudriere builder in Azure, and
normally I only use the D4as_v4 VM size. Sometimes, though, I resize to
a D16as_v4 to be able to build the www/node* ports more quickly. I just
resize it using the az CLI:

$ az vm resize --name poudriere --resource-group poudriere --size Standard_D16as_v4

> If you did manage to do this, did you need to shut the VM down before 
> resizing it? Was your external IP preserved or did it force you to
> have 
> another one? Did you have to run anything else, like growfs?

Yes, to resize, the VM has to be rebooted. I haven't payed attention to
whether my public IP is preserved or not (I access the VM using the DNS
name I configured in the portal). My gut feeling is that the IP is
preserved, just like it is across normal reboots.

I haven't resized the root volume on the VM. Instead, I have a second
volume attached with ZFS on it, and I put everything that matters on that.
 
> The author of https://forums.freebsd.org/threads/azure-vm.62440/ tried
> to do this in 2017 but wasn't able to at the time.
> 
> thanks,
> -- 
> J.

--
Bradley T. Hughes
bhughes@FreeBSD.org



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E0199A6C-A4B7-4443-9659-2ED461EF2FAA>