Page MenuHomeVyOS Platform

Automatically resize the root partition if the drive has extra space
Closed, ResolvedPublicENHANCEMENT

Description

When VyOS is running in a VM, then there's no question whether it should use the entire drive space given to it: it always should.

Ideally, resizing a VM drive should also automatically resize the root partition inside the VM. Now the user is forced to do that core manually.

However, we can check on boot if the "physical" drive is larger than the partition, and run a script to resize it.

Details

Version
-
Is it a breaking change?
Perfectly compatible

Event Timeline

syncer triaged this task as High priority.
syncer changed the subtype of this task from "Task" to "Enhancement".
syncer added a subscriber: UnicronNL.
Unknown Object (User) subscribed.Nov 8 2021, 3:44 PM
Unknown Object (User) signed these changes with MFA.Nov 12 2021, 8:34 AM
Unknown Object (User) changed the task status from Open to In progress.
This comment was removed by Unknown Object (User).
Unknown Object (User) added a comment.Nov 12 2021, 10:04 AM

PRs 1069 and 1070 will be merged

Unknown Object (User) changed the task status from In progress to Needs testing.Nov 22 2021, 7:26 PM
Unknown Object (User) added a comment.Nov 25 2021, 10:45 AM

I've tested root-partition-auto-resize on GCP, AWS and Azure. It was found that disk extension on Azure brakes GPT table, so I added the fix in this PR https://github.com/vyos/vyos-1x/pull/1084 .

Unknown Object (User) closed this task as Resolved.Nov 29 2021, 9:24 AM