Giter Club home page Giter Club logo

Comments (2)

dennishuo avatar dennishuo commented on September 5, 2024

One tricky bit to keep in mind is that since the boot disk is created on-demand from machine images, even if the boot disk is increased in size, the visible size will remain at 10GB until fdisk is used to either resize the root partition or to add a new partition, and then the VM is rebooted. In fact, there are two options:

  1. Use fdisk to just add a second partition on the boot disk without touching the root partition, this can be combined with some careful usage of partprobe to update in-place, possibly without requiring a reboot; still need extra work to format and mount the new partition. The downside is that since it's a separate partition, it feels a lot like just adding a separate attached disk, without the same benefits of allow flexibility in keeping it as a separate disk on turndown.
  2. Use fdisk to actually resize the root partition, reboot, then resize2fs. The reboot is suboptimal, though there are some tricks for being able to resize even the root partition in-place. We haven't recently investigated the resize-in-place approach.

bdutil isn't great right now at orchestrating command steps which span over reboots, but in theory it could work fine if reboot is the last step that bdutil runs, possibly launched in the background with "nohup" and a short delay so allow bdutil's SSH session to complete normally.

from bdutil.

ggrasso avatar ggrasso commented on September 5, 2024

Thank you for this valuable information. In my case I'm using ubuntu images which seems to support autoresizing, but in general I get your point. However having the option to set the boot-disk-size as env variable will not affect those cases where resizing is anyway necessary as you correclty point out, but would be an improvement to allow usage of instances with autoresize (like in my case).

from bdutil.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.