mirror of
https://github.com/community-scripts/ProxmoxVE-Local.git
synced 2026-04-25 04:35:50 +03:00
[PR #177] [MERGED] feat: implement disk resize in LXC settings #257
Labels
No labels
bug
enhancement
enhancement
feature
in progress
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/ProxmoxVE-Local#257
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
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.