Project

General

Profile

Actions

Bug #24504

closed

prevent zap/destroy on dm devices

Added by Alfredo Deza almost 6 years ago. Updated over 5 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Target version:
-
% Done:

0%

Source:
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

Otherwise, the issue is not really clear from the errors:

root@polstor01:/home/urzadmin# ceph-volume lvm zap --destroy /dev/dm-0                   
--> Zapping: /dev/dm-0
Running command: /sbin/cryptsetup status /dev/mapper/
 stdout: /dev/mapper/ is inactive.
--> Skipping --destroy because no associated physical volumes are found for /dev/dm-0
Running command: wipefs --all /dev/dm-0
 stderr: wipefs: error: /dev/dm-0: probing initialization failed: Device or resource busy
-->  RuntimeError: command returned non-zero exit status: 1
Actions

Also available in: Atom PDF