Merge pull request #10445 from leseb/do-not-fail-ondeactivate-failure

osd: add lvm flag for lvm osd activate
This commit is contained in:
Sébastien Han authored and GitHub committed 2022-06-16 15:55:20 +02:00
commit 005b469955
2 files changed
+1 -1

No files matched your search

-1
View File
@@ -71,7 +71,6 @@ func StartOSD(context *clusterd.Context, osdType, osdID, osdUUID, lvPath string,
// It's fine to continue if deactivate fails since we will return error if activate fails
if op, err := context.Executor.ExecuteCommandWithCombinedOutput("vgchange", "-an", "-vv", volumeGroupName); err != nil {
logger.Errorf("failed to deactivate volume group for lv %q. output: %s. %v", lvPath, op, err)
return nil
}
if op, err := context.Executor.ExecuteCommandWithCombinedOutput("vgchange", "-ay", "-vv", volumeGroupName); err != nil {
+1
View File
@@ -372,6 +372,7 @@ func (c *Cluster) makeDeployment(osdProps osdProperties, osd OSDInfo, provisionC
"--setgroup", "ceph",
fmt.Sprintf("--crush-location=%s", osd.Location),
}
osd.LVBackedPV = true
} else if osdProps.onPVC() && osd.CVMode == "raw" {
doBinaryCopyInit = false
doConfigInit = false