<div dir="ltr">Thanks for the added detail Daniel. Glad you got the resize worked out. </div><br><div class="gmail_quote"><div dir="ltr">On Wed, Jun 13, 2018 at 9:36 AM Daniel Bidwell <<a href="mailto:drbidwell@gmail.com">drbidwell@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">My case was using VmWare as the cloud.  The controllers defaulted to<br>
10GB.  I am running juju 2.3.8.  I have about 12 vm's on the controller<br>
with about 24 locally written charms.  /var/lib/juju/db is currently<br>
using 8.3GB.<br>
<br>
The simplest solution for me was to increase the root disk size and<br>
reboot the controller.  The cloud-init process resized the partition to<br>
fill the rest of the disk and then resized the file system to fill the<br>
enlarged partition.<br>
<br>
I am not concerned about the size so much as I needed to finish<br>
deploying my spread of servers.<br>
<br>
I did clean out a group of old kernels that had accumulated as well as<br>
old versions of juju that I had upgraded from, but those were<br>
incidental.<br>
<br>
I posted the question and solution to <a href="http://askubuntu.com" rel="noreferrer" target="_blank">askubuntu.com</a> so others could<br>
find the answer easily if they hit the same problem.<br>
<br>
On Wed, 2018-06-13 at 16:06 +0400, John Meinel wrote:<br>
> IIRC older Juju used the default EC2 settings, which gave 8GB hard<br>
> drives, but newer should default to 32GB disks. I'm not sure how that<br>
> varies across all providers, though.<br>
> <br>
> Note that you should always be able to bootstrap with a custom root-<br>
> disk constraint. eg "juju bootstrap --bootstrap-constraints root-<br>
> disk=32G"<br>
> <br>
> As for issues about the disk filling up, it would be good to have a<br>
> bit more information about what juju version, what types of workloads<br>
> you're deploying, etc. The data might be stale charm binaries that<br>
> are being cached by the server, or if it is Juju 1.X then it could be<br>
> image caches, or transaction log issues, etc.<br>
> <br>
> John<br>
> =:-><br>
> <br>
> On Tue, Jun 12, 2018 at 9:12 AM, Paul Gear <<a href="mailto:paul.gear@canonical.com" target="_blank">paul.gear@canonical.com</a>><br>
> wrote:<br>
> > On 11/06/18 01:47, Daniel Bidwell wrote:<br>
> > > My juju controllers appear to be defaulting to a 10GB root disk.<br>
> > I am<br>
> > > running out of disk space on the controller. I have 6.7GB in <br>
> > > /var/lib/juju/db. Is there a way to reduce the disk usage on<br>
> > this?<br>
> > <br>
> > I think perhaps this is worth logging as a wishlist bug. A long-<br>
> > running<br>
> > production juju controller should never be deployed with a disk<br>
> > that<br>
> > small (our largest production cluster is already a little<br>
> > uncomfortable<br>
> > with 50 GB), and juju doesn't really distinguish between "this is a<br>
> > CI<br>
> > controller that's only going to be up long enough to run my test<br>
> > suite"<br>
> > and "this is going to run all of my production OpenStack VMs for<br>
> > the<br>
> > next year". It would be nice if you could tell it "size the<br>
> > controller<br>
> > for N live models".<br>
> > <br>
> > > If not, can I make the root disk larger? What are my options?<br>
> > <br>
> > That all depends on your underlying cloud infrastructure.  I<br>
> > believe<br>
> > some providers (e.g. GCE) make this really easy.<br>
> > <br>
> > > I have already cleared out kernel updates.<br>
> > <br>
> > Not directly related to juju controller sizing, but relevant to the<br>
> > above: I've been working on a little tool that handles many of the<br>
> > common scenarios we encounter, including kernel updates and other<br>
> > tools<br>
> > you may or may not use.  It's alpha quality; feedback & patches<br>
> > gratefully accepted:<br>
> > <br>
> > <a href="https://code.launchpad.net/~paulgear/+git/cleanup" rel="noreferrer" target="_blank">https://code.launchpad.net/~paulgear/+git/cleanup</a><br>
> > <br>
> > -- <br>
> > Regards,<br>
> > Paul Gear<br>
> > Site Reliability Engineer<br>
> > Canonical - Information Systems<br>
> > <br>
> > <br>
> > -- <br>
> > Juju mailing list<br>
> > <a href="mailto:Juju@lists.ubuntu.com" target="_blank">Juju@lists.ubuntu.com</a><br>
> > Modify settings or unsubscribe at: <a href="https://lists.ubuntu.com/mailman" rel="noreferrer" target="_blank">https://lists.ubuntu.com/mailman</a><br>
> > /listinfo/juju<br>
> > <br>
-- <br>
Daniel Bidwell <<a href="mailto:drbidwell@gmail.com" target="_blank">drbidwell@gmail.com</a>><br>
<br>
<br>
-- <br>
Juju mailing list<br>
<a href="mailto:Juju@lists.ubuntu.com" target="_blank">Juju@lists.ubuntu.com</a><br>
Modify settings or unsubscribe at: <a href="https://lists.ubuntu.com/mailman/listinfo/juju" rel="noreferrer" target="_blank">https://lists.ubuntu.com/mailman/listinfo/juju</a><br>
</blockquote></div>