mirror of
https://github.com/community-scripts/ProxmoxVE-Local.git
synced 2026-06-11 17:42:12 -04:00
[PR #177] [MERGED] feat: implement disk resize in LXC settings #236
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/community-scripts/ProxmoxVE-Local/pull/177
Author: @michelroegl-brunner
Created: 10/17/2025
Status: ✅ Merged
Merged: 10/17/2025
Merged by: @michelroegl-brunner
Base:
main← Head:feat/storage_resize📝 Commits (1)
0292034feat: implement disk resize with improved modal flow and error handling📊 Changes
2 files changed (+490 additions, -34 deletions)
View changed files
📝
src/app/_components/LXCSettingsModal.tsx(+133 -33)📝
src/server/api/routers/installedScripts.ts(+357 -1)📄 Description
Summary
This PR implements automatic disk resizing when changing LXC disk size in the settings modal, along with a complete modal flow redesign and robust error handling.
Features Added
🔧 Disk Resize Functionality
pct resizecommand with LVM fallback (lvresize,resize2fs/xfs_growfs)🎨 Improved Modal Flow
🐛 Enhanced Error Handling
🎨 UI/UX Improvements
Technical Details
Backend Changes (
installedScripts.ts)parseRootfsStorage()helper to parse storage pool and disk IDextractSizeInGB()helper for size conversionresizeDisk()function with proper error detectiontryLVMResize()fallback methodFrontend Changes (
LXCSettingsModal.tsx)Error Detection Fix
The main bug fix addresses the issue where
pct resizereturns exit code 0 even when it fails with "Insufficient free space". The solution checks both:Testing
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.