Page MenuHomeVyOS Platform

Resize a root partition and filesystem automatically during deployment in virtual environments
Closed, ResolvedPublicFEATURE REQUEST

Description

The common case for deployments in virtual environments, like clouds, is tuning partition layout and filesystem size during instance deployment or first boot to use all available space.
We need to enable this behavior for cloud images and images for hypervisors.

Details

Difficulty level
Unknown (require assessment)
Version
-
Why the issue appeared?
Will be filled on close
Is it a breaking change?
Behavior change
Issue type
Feature (new functionality)

Related Objects

Mentioned In
1.3.6

Event Timeline

zsdc changed the task status from Open to In progress.Nov 2 2020, 12:56 PM
zsdc claimed this task.
zsdc created this task.
zsdc changed the task status from In progress to Needs testing.Nov 4 2020, 10:19 PM

So once a bigger disk is added on system boot the filesystem should be automatically repartitioned and resized to the maximum available space?

That should be fairly simple as there is only one partition, so delete the partition, create a new one with higher end block and call resize2fs

erkin set Issue type to Feature (new functionality).Aug 29 2021, 12:22 PM
erkin removed a subscriber: Active contributors.

I think it is already implemented

set system option root-partition-auto-resize

@zsdc can we close it?

Implemented

vyos@r1# set system option root-partition-auto-resize
[edit]
vyos@r1# run show ver

Version:          VyOS 1.3.5