Skip to content

Commit

Permalink
volume: fix lvm osd db device check
Browse files Browse the repository at this point in the history
  • Loading branch information
lyind committed Jul 5, 2021
1 parent 830b36c commit d0b1888
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/daemon/ceph/osd/volume.go
Expand Up @@ -779,7 +779,7 @@ func (a *OsdAgent) initializeDevicesLVMMode(context *clusterd.Context, devices *
}

for _, report := range cvReports {
if report.BlockDB != mdPath {
if report.BlockDB != mdPath && !strings.HasSuffix(mdPath, report.BlockDB) {
return errors.Errorf("wrong db device for %s, required: %s, actual: %s", report.Data, mdPath, report.BlockDB)
}
}
Expand Down

0 comments on commit d0b1888

Please sign in to comment.