-
-
Notifications
You must be signed in to change notification settings - Fork 381
Add support for QCOW2 formatted volumes on lvmcluster #2693
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
base: main
Are you sure you want to change the base?
Conversation
07de11f to
f07e3ea
Compare
dcf53ab to
82d1484
Compare
6b1e605 to
25a446c
Compare
b57ab55 to
2f95d52
Compare
| pathName := d.lvmPath(d.config["lvm.vg_name"], vol.volType, vol.contentType, vol.name) | ||
| return filepath.Join("/dev", pathName), nil |
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.
Using lvmPath for an actual disk operation is unsafe and can lead to data loss, lvmPath should only be used to create arguments for the LVM commands.
When you need the path to the block device, you must use lvmDevPath instead as that one doesn't risk a udev race that causes the file to point to the wrong disk.
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.
Additional validation was added to MountWithSnapshotsTask to check whether the backing path resolves to the same device as lvmDevPath (the function name may need to be improved).
Signed-off-by: Piotr Resztak <piotr.resztak@futurfusion.io>
…tion checks * Implement a new block.type read-only volume option which would support raw or qcow2 * Disallow snapshot creation on lvmcluster volumes that have the 'security.shared' property set to true * Change lvmcluster so that all new instance VM volumes get the qcow2 block.type * Prevent the creation of snapshots on lvmcluster volumes of type VM or custom (block) that don't have the qcow2 'block.type' Signed-off-by: Piotr Resztak <piotr.resztak@futurfusion.io>
…n on lvmcluster Signed-off-by: Piotr Resztak <piotr.resztak@futurfusion.io>
…ngFile Signed-off-by: Piotr Resztak <piotr.resztak@futurfusion.io>
…cow2-formatted volumes Signed-off-by: Piotr Resztak <piotr.resztak@futurfusion.io>
e9c29f0 to
763e4ed
Compare
…napshots Signed-off-by: Piotr Resztak <piotr.resztak@futurfusion.io>
…olume snapshots Signed-off-by: Piotr Resztak <piotr.resztak@futurfusion.io>
Signed-off-by: Piotr Resztak <piotr.resztak@futurfusion.io>
…ow2 volumes Signed-off-by: Piotr Resztak <piotr.resztak@futurfusion.io>
…lumes Signed-off-by: Piotr Resztak <piotr.resztak@futurfusion.io>
…eting qcow2 instance volumes Signed-off-by: Piotr Resztak <piotr.resztak@futurfusion.io>
…king chain Signed-off-by: Piotr Resztak <piotr.resztak@futurfusion.io>
…nce is running Signed-off-by: Piotr Resztak <piotr.resztak@futurfusion.io>
Signed-off-by: Piotr Resztak <piotr.resztak@futurfusion.io>
Signed-off-by: Piotr Resztak <piotr.resztak@futurfusion.io>
763e4ed to
863f78f
Compare
Closes: #2562