mirror of
https://github.com/ceph/ceph
synced 2024-12-29 15:03:33 +00:00
ceph-volume: consider block and data devices used_by_ceph
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
This commit is contained in:
parent
0718d2e266
commit
6751253011
@ -120,7 +120,7 @@ class Device(object):
|
||||
def used_by_ceph(self):
|
||||
# only filter out data devices as journals could potentially be reused
|
||||
osd_ids = [lv.tags.get("ceph.osd_id") for lv in self.lvs
|
||||
if lv.tags.get("ceph.type") == "data"]
|
||||
if lv.tags.get("ceph.type") in ["data", "block"]]
|
||||
return any(osd_ids)
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user