Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

filesystem: T3946: GPT table fix after drive resize on Azure #1084

Merged
merged 1 commit into from Nov 25, 2021
Merged

filesystem: T3946: GPT table fix after drive resize on Azure #1084

merged 1 commit into from Nov 25, 2021

Conversation

andriiandrieiev
Copy link
Contributor

Change Summary

It was found that disk extension on Azure brakes GPT table

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Code style update (formatting, renaming)
  • Refactoring (no functional changes)
  • Migration from an old Vyatta component to vyos-1x, please link to related PR inside obsoleted component
  • Other (please describe):

Related Task(s)

Component(s) name

Proposed changes

Add to parted utility inline directives that will fix GPT table before a resizing attempt

How to test

On Azure:

  1. Deallocate a VM
  2. Extend a VM disk
  3. Start VM
  4. Enable root-partition-auto-resize.service
configure
set system option root-partition-auto-resize
commit
save
exit
  1. Do system reboot
  2. Check partition size and FS size:
lsblk
df -h

Instead of steps 4 and 5 it's possible just to run once from op mode:

force root-partition-auto-resize

Checklist:

  • I have read the CONTRIBUTING document
  • I have linked this PR to one or more Phabricator Task(s)
  • I have run the components SMOKETESTS if applicable
  • My commit headlines contain a valid Task id
  • My change requires a change to the documentation
  • I have updated the documentation accordingly

@dmbaturin dmbaturin merged commit 600ebc9 into vyos:current Nov 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants