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
disk zapping script for OSD used by Rook fails at removing the device mappers #9764
Comments
What's the request exactly? |
@frouzbeh The suggestion is to add |
@travisn I guess |
I have encountered the same issue where |
Users have reported some problems understanding the teardown "Zapping Devices" section. Break the section in to per-disk and all-disks-on-host parts, and clarify that they are not one-size-fits-all scripts. Resolves rook#9542 Resolves rook#9764 Signed-off-by: Blaine Gardner <blaine.gardner@redhat.com>
Users have reported some problems understanding the teardown "Zapping Devices" section. Break the section in to per-disk and all-disks-on-host parts, and clarify that they are not one-size-fits-all scripts. Resolves #9542 Resolves #9764 Signed-off-by: Blaine Gardner <blaine.gardner@redhat.com> (cherry picked from commit 325eda6)
Is this a bug report or feature request?
Deviation from expected behavior:
Disk zapping script sometimes returns error when removing the device mapper:
For now I added
set -e
to the script, so I still would be able to unlock the device if it fails, otherwise the rest of the script deletes the device mappers. But We can uselsof
to find the open files of the device and kill them to make the device free and then try to remove it.Expected behavior:
How to reproduce it (minimal and precise):
It doesn't happen always, so it would be good to be prepared for when it happens.
Environment:
uname -a
):Linux dev-ops-server-1 5.4.0-84-generic #94-Ubuntu SMP Thu Aug 26 20:27:37 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
ceph -v
):ceph:v16.2.5
The text was updated successfully, but these errors were encountered: