SUSE / DeepSea

A collection of Salt files for deploying, managing and automating Ceph.
GNU General Public License v3.0
161 stars 75 forks source link

cephdisks.unused falsely returns mounted disks #1721

Closed jschmid1 closed 5 years ago

jschmid1 commented 5 years ago

Description of Issue/Question

Device Path               Size         rotates available Model name
/dev/vda                  20.00 GB     True    False
/dev/vdb                  20.00 GB     True    False
/dev/vdc                  20.00 GB     True    False
/dev/vdd                  20.00 GB     True    False
/dev/vde                  20.00 GB     True    False
/dev/vdf                  20.00 GB     True    False
/dev/vdg                  10.00 GB     True    False
/dev/vdh                  10.00 GB     True    False

data1:~ # lsblk
NAME                                                                                      MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
vda                                                                                       254:0    0  20G  0 disk
└─vda1                                                                                    254:1    0  20G  0 part /
vdb                                                                                       254:16   0  20G  0 disk /mnt

admin:~ # salt-run disks.c_v_commands
Found DriveGroup <default>
Calling dg.c_v_commands on compound target I@roles:storage
|_
  ----------
  data1:
      - ceph-volume lvm batch --no-auto /dev/vdb --yes

it's not used by ceph but it's mounted and therefore not usable.