Project

General

Profile

Bug #24504

prevent zap/destroy on dm devices

Added by Alfredo Deza 9 months ago. Updated 8 months ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Target version:
-
Start date:
06/12/2018
Due date:
% Done:

0%

Source:
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:

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

Also available in: Atom PDF