Comments (2)
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:
- 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.
- 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.
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)
- gcloud compute ssh tunneling refusing connection HOT 1
- Can't install with Ambari 2.5+ HOT 2
- hortonworks on mac os 10.12.6
- ERROR: (gcloud.compute.ssh) could not fetch resource: The resource 'projects/recommendationshashiproject/zones/us-central1-a/instances/hadoop-m' was not found HOT 5
- subnetwork error HOT 1
- Error Deploy bdutil : Invalid value for field resource.networkInterfaces HOT 1
- Unable to start Ambari NameNode Security Exception
- Command failed: wait ${SUBPROC} on line 326 HOT 2
- unable to deploy ambari using bdutil
- Nonissue..delete
- Command failed line 326, and SSH Key HOT 2
- Cluster creation can fail if apt-get update has warnings
- How to create HDP cluster with High Availability? HOT 1
- Cluster creation is failing with "Failed to find image for alias [debian-7-backports]..."
- Upgrade bdutil to Debian 8
- Does not seem to working with Custom network HOT 2
- bdutil deploy fails with ssh error
- Add a "version" command|flag
- bdutil confusingly reports "using project ${GCE_ZONE}"
- unable to deploy ambari using bdutil HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bdutil.