-
Notifications
You must be signed in to change notification settings - Fork 273
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
fix(backups): disable CBT when CBT is unusable #8313
base: master
Are you sure you want to change the base?
Conversation
d71a2fe
to
c9e6146
Compare
Hi @fbeauchamp, i want to comment on this one. It’s not needed to disable cbt on the vdi itself, just removing all cbt snapshots and run a new full is enough to resolve the problems with invalid cbt here. We have seen some rare issues with disabling CBT on a running VM causing the vdi to get stucked into paused state. So i think it’s better to not run that command unsupervised without knowing what can happen. |
c9e6146
to
bf0b696
Compare
this won't be run automatically, at least for now. It will be used when manually disabling Changed Block Tracking , as an additional way to clean up any remaining data, broken cbt chain. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me apart from the little typos in the comments
const e = new Error(`can't create a stream from a metadata VDI, fall back to a base `) | ||
e.code = 'VDI_CANT_DO_DELTA' | ||
// CBt is not usable: reset it |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
// CBt is not usable: reset it | |
// CBT is not usable: reset it |
} | ||
} | ||
/** | ||
* xapi can't disable CBT on a snapshot OPERATION_NOT_ALLOWED(VDI is a snapshot ) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* xapi can't disable CBT on a snapshot OPERATION_NOT_ALLOWED(VDI is a snapshot ) | |
* xapi can't disable CBT on a snapshot OPERATION_NOT_ALLOWED(VDI is a snapshot) |
Description
Short explanation of this PR (feel free to re-use commit message)
Checklist
Fixes #007
,See xoa-support#42
,See https://...
)Introduced by
CHANGELOG.unreleased.md
Review process
Notes: