Skip to content

Instantly share code, notes, and snippets.

@troyfontaine
Created March 19, 2022 14:45
Show Gist options
  • Save troyfontaine/de1b157cf5d9ceb6842c4cf2ad177032 to your computer and use it in GitHub Desktop.
Save troyfontaine/de1b157cf5d9ceb6842c4cf2ad177032 to your computer and use it in GitHub Desktop.
Resize Ubuntu VM Disk on TrueNAS Scale

Resize an Ubuntu VM Disk on TrueNAS Scale

  1. Shutdown the target VM
  2. Locate the zvol where the storage is allocated in the Storage blade in the TrueNAS Scale Web UI
  3. Resize the zvol by editing it-this can ONLY be increased, not shrunk!
  4. Save your changes
  5. Start your target VM up again
  6. Log in to the VM
  7. Execute the growpart command, ie. sudo growpart /dev/vda 2
  8. Execute the resize2fs command, ie. sudo resize2fs /dev/vda2
  9. Verify that the disk has increased in size using df -h
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment