[ceph-osd] Don't set CEPH_LVM_PREPARE to 0 for colocated db/wal
Due to some recent reordering of the Bluestore OSD init code, the check for empty db and wal device strings that sets CEPH_LVM_PREPARE to 0 is now incorrect as it checks for an existing volume group on the OSD device to determine if an OSD previously existed on the device. That device is now initialized prior to this check, so the check is invalid. This change removes it. Change-Id: I5236de171d94930e08770537663b14c2eedb0b32
This commit is contained in:
parent
74996ccce8
commit
7bc1f4559e
@ -417,11 +417,6 @@ function osd_disk_prepare {
|
||||
elif [[ ${BLOCK_DB} && -z ${BLOCK_WAL} ]]; then
|
||||
prep_device "${BLOCK_DB}" "${BLOCK_DB_SIZE}" "db" "${OSD_DEVICE}"
|
||||
fi
|
||||
if [ -z ${BLOCK_DB} ] && [ -z ${BLOCK_WAL} ]; then
|
||||
if pvdisplay ${OSD_DEVICE} | awk '/VG Name/{print $3}' | grep "ceph"; then
|
||||
CEPH_LVM_PREPARE=0
|
||||
fi
|
||||
fi
|
||||
else
|
||||
if pvdisplay ${OSD_DEVICE} | awk '/VG Name/{print $3}' | grep "ceph"; then
|
||||
CEPH_LVM_PREPARE=0
|
||||
|
Loading…
x
Reference in New Issue
Block a user