-
Notifications
You must be signed in to change notification settings - Fork 39
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
RBD volume with parent cannot be used after restore #77
Comments
backy2 does not care about any relationships in the storage volumes. It knows nothing about it, and this is a design choice. It just stores blocks. |
I do the backup as follows:
Use this backup to restore to a new RBD [root-101] If I execute the following command first Then take a snapshot, diff, backup This backup can be restored and used normally |
I wish I knew about this bug before today. I’ve lost a whole pool and now find that any vm images that were cloned from a base image cannot be recovered. Not a production environment but still lost 20 VMs from my home lab. |
This is most likely a bug in Ceph. Probably this one: https://tracker.ceph.com/issues/54970. If you're stuck on an older version try leaving off |
If the RBD contains parent RBD (a new RBD created by rbd clone), it cannot be restored normally after backing up with backy2.By comparing the restored rbd info, it is found that the restored rbd has lost the parent attribute.
Before backup rbd volume info:
rbd image 'c1bb66e1-030f-48a0-94b5-74910333cd49.bak':
size 100GiB in 25600 objects
order 22 (4MiB objects)
block_name_prefix: rbd_data.1b0fcd96fe70f
format: 2
features: layering, exclusive-lock, object-map, fast-diff, deep-flatten
flags:
create_timestamp: Fri Nov 13 14:04:31 2020
parent: rbd/0bafb558-18f6-46e4-82d8-7e6d09980618@cloudstack-base-snap
overlap: 100GiB
restore to new rbd volume
new rbd volume info
rbd image 'c1bb66e1-030f-48a0-94b5-74910333cd49':
size 100GiB in 25600 objects
order 22 (4MiB objects)
block_name_prefix: rbd_data.2548e6b8b4567
format: 2
features: layering, exclusive-lock, object-map, fast-diff, deep-flatten
flags:
create_timestamp: Sat Nov 14 04:30:35 2020
The biggest difference is missing:
parent: rbd/0bafb558-18f6-46e4-82d8-7e6d09980618@cloudstack-base-snap
The text was updated successfully, but these errors were encountered: