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

Script changes for images in /dev/rbd-pve and ceph pools with underscore #4

Open
syrexjohnson opened this issue Feb 2, 2024 · 0 comments

Comments

@syrexjohnson
Copy link

syrexjohnson commented Feb 2, 2024

Hi,

Thanks for your work on this script. We had some errors using it on our clusters. We made the following changes:

[admin@kvm1 crossover]# diff crossover.new crossover
88c88
< declare -r recephimg='([a-zA-Z0-9_]+)\:(.*)'
---
> declare -r recephimg='([a-zA-Z0-9]+)\:(.*)'
865c865
<     image_spec=$(pvesm path "$disk" | grep '^/dev/rbd/\|^/dev/rbd-pve/' | sed -E "s/(^\/dev\/rbd\/|^\/dev\/rbd-pve\/[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}\/)//")
---
>     image_spec=$(pvesm path "$disk" | grep '^/dev/rbd/' | sed -e "s/^\/dev\/rbd\///")

The first change allows for underscore character in the ceph RBD pool name when doing the snapshot transfer. The second allows for snapshot creation if the pools are in /dev/rbd-pve.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant