Skip to content

Commit

Permalink
Don't symlink WAL and DB devices since Ceph does it for us
Browse files Browse the repository at this point in the history
  • Loading branch information
lmlg committed Sep 27, 2023
1 parent 237dd6e commit 02a8ee4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion microceph/ceph/osd.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,10 @@ func prepareDisk(disk *types.DiskParameter, suffix string, osdPath string, osdID
}
disk.Path = path
}
return os.Symlink(disk.Path, filepath.Join(osdPath, "block"+suffix))
if suffix != "" {
return nil
}
return os.Symlink(disk.Path, filepath.Join(osdPath, "block"))
}

// setupEncryptedOSD sets up an encrypted OSD on the given disk.
Expand Down

0 comments on commit 02a8ee4

Please sign in to comment.