Answers: <p>You can ignore the second warning for Ubuntu (and Debian) because automatic resizing of the boot disk is built-in to the Google tools installed with Debian/Ubuntu operating systems.</p>
  <p>I wrote an <a href="https://www.jhanley.com/blog/google-cloud-debian-9-resize-root-file-system/" rel="nofollow noreferrer">article</a> that shows how the Google tools perform the resize.</p>
  
Answers: CC BY-SA 4.0
Answers: 2024-02-03T20:31:41.763Z
Answers: 2024-02-03T20:31:41.763Z
Answers: John Hanley
Body: <p>I'm setting up a GCE instance for machine learning training.  I first did this:</p>
  <blockquote>
  <p>gcloud compute instances create my_instance --image=pytorch-latest-gpu-v20240128-ubuntu-2004 --image-project=deeplearning-platform-release --accelerator=&quot;type=nvidia-tesla-v100,count=1&quot; --custom-extensions --custom-cpu 1 --custom-memory 20GB --boot-disk-size 50GB (some arguments intentionally omitted here)</p>
  </blockquote>
  <p>This command gives a first warning:</p>
  <blockquote>
  <p>WARNING: You have selected a disk size of under [200GB]. This may result in poor I/O performance. For more information, see: <a href="https://developers.google.com/compute/docs/disks#performance" rel="nofollow noreferrer">https://developers.google.com/compute/docs/disks#performance</a>.</p>
  </blockquote>
  <p>If I modify the above <code>gcloud</code> command to have <code>--boot-disk-size 200GB</code>, then I get a second warning:</p>
  <blockquote>
  <ul>
  <li>Disk size: '200 GB' is larger than image size: '50 GB'. You might need to resize the root repartition manually if the operating system does not support automatic resizing. See <a href="https://cloud.google.com/compute/docs/disks/add-persistent-disk#resize_pd" rel="nofollow noreferrer">https://cloud.google.com/compute/docs/disks/add-persistent-disk#resize_pd</a> for details.</li>
  </ul>
  </blockquote>
  <p>The link in the first warning is not very helpful.  Do I need to be concerned about poor I/O performance warning if I am doing just machine learning model training?  I don't want to slow down the model training since the machines are expensive.</p>
  
Tags: <google-cloud-platform><google-compute-engine><gcloud>
Title: Setting boot disk size for goole compute engine
UserDisplayName: minou
ThreadText: # Setting boot disk size for goole compute engine
  
  (Asked by: username_0 on 2024-02-03)
  
  I'm setting up a GCE instance for machine learning training. I first did this:
  
  > gcloud compute instances create my\_instance --image=pytorch-latest-gpu-v20240128-ubuntu-2004 --image-project=deeplearning-platform-release --accelerator="type=nvidia-tesla-v100,count=1" --custom-extensions --custom-cpu 1 --custom-memory 20GB --boot-disk-size 50GB (some arguments intentionally omitted here)
  
  This command gives a first warning:
  
  > WARNING: You have selected a disk size of under [200GB]. This may result in poor I/O performance. For more information, see: <https://developers.google.com/compute/docs/disks#performance>.
  
  If I modify the above `gcloud` command to have `--boot-disk-size 200GB`, then I get a second warning:
  
  > * Disk size: '200 GB' is larger than image size: '50 GB'. You might need to resize the root repartition manually if the operating system does not support automatic resizing. See <https://cloud.google.com/compute/docs/disks/add-persistent-disk#resize_pd> for details.
  
  The link in the first warning is not very helpful. Do I need to be concerned about poor I/O performance warning if I am doing just machine learning model training? I don't want to slow down the model training since the machines are expensive.
  
  **Tags:** google-cloud-platform, google-compute-engine, gcloud
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2024-02-03. Score: 1
  
  You can ignore the second warning for Ubuntu (and Debian) because automatic resizing of the boot disk is built-in to the Google tools installed with Debian/Ubuntu operating systems.
  
  I wrote an [article](https://www.jhanley.com/blog/google-cloud-debian-9-resize-root-file-system/) that shows how the Google tools perform the resize.
  
  
  ---
  
  