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

lun: try to recovery the config from the LIO #254

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

lxbsz
Copy link
Member

@lxbsz lxbsz commented Mar 7, 2022

If the LIO exists but the config doesn't, it will only add a disk
item with "created":

"rbd/blockX1": {
"created": "2022/02/22 11:23:12",
}

We can recovery the config from LIO instead of just append a corrupted
disk item.

In all the other fail path we should delete the corrupted disk
item.

Signed-off-by: Xiubo Li xiubli@redhat.com

If the LIO exists but the config doesn't, it will only add a disk
item with "created":

"rbd/blockX1": {
    "created": "2022/02/22 11:23:12",
}

We can recovery the config from LIO instead of just append a corrupted
disk item.

In all the other fail path we should delete the corrupted disk
item.

Signed-off-by: Xiubo Li <xiubli@redhat.com>
We can update the sub item only for 'disks'

Signed-off-by: Xiubo Li <xiubli@redhat.com>
When one gateway have recovered the config from the rbd image and
LIO device, the image size may have changed, so in other gateways
we need to update the size in LIO device.

Signed-off-by: Xiubo Li <xiubli@redhat.com>
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

Successfully merging this pull request may close these issues.

1 participant