No description
Find a file
2024-12-07 12:02:38 +05:30
LICENSE Initial commit 2024-12-07 11:59:02 +05:30
README.md Update README.md 2024-12-07 12:02:38 +05:30
resize_vm_disk.sh Add resize_vm_disk.sh 2024-12-07 12:00:25 +05:30

Proxmox VM Disk Resize Script

A robust bash script for safely expanding disk space on Ubuntu VMs running on Proxmox. This script automates the post-GUI disk expansion process with built-in safety checks and backup features.

Features

  • Automated LVM partition resizing
  • Partition table backup
  • Pre-execution requirement verification
  • Post-resize validation
  • Comprehensive error handling
  • Progress monitoring

Prerequisites

  • Ubuntu-based VM on Proxmox
  • Root access to the VM
  • Standard LVM setup (ubuntu-vg/ubuntu-lv)
  • Required tools: parted, pvresize, lvresize, resize2fs

Quick Start

  1. Expand disk in Proxmox GUI first
  2. Clone this script:
wget https://git.hhf.technology/hhf/proxmox-vm-disk-resize/raw/branch/main/resize_vm_disk.sh
  1. Make script executable:
chmod +x resize_vm_disk.sh
  1. Run the script as root:
sudo ./resize_vm_disk.sh

Safety Features

  • Automatic partition table backup
  • System requirement verification
  • LVM setup validation
  • Filesystem integrity checks
  • Error handling with detailed messages

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Acknowledgments

  • Inspired by the Proxmox community
  • Built with ❤️ for system administrators

Support

For detailed usage instructions, visit our comprehensive guide.

For issues and feature requests, please use the forum comments.