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

[FEATURE] Introduce volume live upgrade including engine #6670

Open
innobead opened this issue Sep 12, 2023 · 0 comments
Open

[FEATURE] Introduce volume live upgrade including engine #6670

innobead opened this issue Sep 12, 2023 · 0 comments
Assignees
Labels
area/volume-upgrade Upgrade volume w/o interruption kind/feature Feature request, new feature priority/0 Must be fixed in this release (managed by PO)
Milestone

Comments

@innobead
Copy link
Member

          The issue mentioned in https://github.com/longhorn/longhorn/issues/3125 is due to that `fsfreeze` freezes the mount point of the given path. Despite the [man page](https://linux.die.net/man/8/fsfreeze) stating the path is the pathname of the mount point, it can be any path. 

The potential race condition can be addressed by adding a device mapper (dm) device on top of the iSCSI block device. As a result, the block device was exported as a Longhorn volume.

If one wants to take a snapshot of the volume, it can execute dmsetup suspend and the filesystem is automatically frozen (code). In addition to preventing the race condition, the DM device can be used to live migrate a v1 volume to another instance-manager pod as described in #6001 (comment). Its disadvantage is that it cannot be applied to existing volumes.

Any feedback is appreciated. Thank you.

cc @shuo-wu @innobead @james-munson @WebberHuang1118 @Vicente-Cheng

Originally posted by @derekbit in #2187 (comment)

@innobead innobead added this to the v1.7.0 milestone Sep 12, 2023
@innobead innobead added kind/feature Feature request, new feature priority/0 Must be fixed in this release (managed by PO) area/volume-upgrade Upgrade volume w/o interruption labels Sep 12, 2023
@innobead innobead changed the title [FEATURE] Introduce volume live upgrade including engine directly [FEATURE] Introduce volume live upgrade including engine Sep 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/volume-upgrade Upgrade volume w/o interruption kind/feature Feature request, new feature priority/0 Must be fixed in this release (managed by PO)
Projects
None yet
Development

No branches or pull requests

2 participants