osd

package
v1.3.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 17, 2020 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCephVolumeLVMOSDs added in v1.3.9

func GetCephVolumeLVMOSDs(context *clusterd.Context, clusterName string, cephfsid, lv string, skipLVRelease, lvBackedPV bool) ([]oposd.OSDInfo, error)

GetCephVolumeLVMOSDs list OSD prepared with lvm mode

func GetCephVolumeRawOSDs added in v1.3.9

func GetCephVolumeRawOSDs(context *clusterd.Context, clusterName string, cephfsid, block, metadataBlock string, lvBackedPV bool) ([]oposd.OSDInfo, error)

GetCephVolumeRawOSDs list OSD prepared with raw mode

func Provision added in v0.8.0

func Provision(context *clusterd.Context, agent *OsdAgent, crushLocation string) error

Provision provisions an OSD

func StartOSD added in v0.9.0

func StartOSD(context *clusterd.Context, osdType, osdID, osdUUID, lvPath string, pvcBackedOSD, lvBackedPV bool, cephArgs []string) error

StartOSD starts an OSD on a device that was provisioned by ceph-volume

Types

type DesiredDevice added in v0.9.0

type DesiredDevice struct {
	Name               string
	OSDsPerDevice      int
	MetadataDevice     string
	DatabaseSizeMB     int
	DeviceClass        string
	IsFilter           bool
	IsDevicePathFilter bool
}

DesiredDevice keeps track of the desired settings for a device

type Device

type Device struct {
	Name   string `json:"name"`
	NodeID string `json:"nodeId"`
	Dir    bool   `json:"bool"`
}

Device is a device

type DeviceOsdIDEntry

type DeviceOsdIDEntry struct {
	Data                  int           // OSD ID that has data stored here
	Metadata              []int         // OSD IDs (multiple) that have metadata stored here
	Config                DesiredDevice // Device specific config options
	PersistentDevicePaths []string
}

DeviceOsdIDEntry represents the details of an OSD

type DeviceOsdMapping

type DeviceOsdMapping struct {
	Entries map[string]*DeviceOsdIDEntry // device name to OSD ID mapping entry
}

DeviceOsdMapping represents the mapping of an OSD on disk

func (*DeviceOsdMapping) String

func (m *DeviceOsdMapping) String() string

type OsdAgent

type OsdAgent struct {
	// contains filtered or unexported fields
}

OsdAgent represents the OSD struct of an agent

func NewAgent

func NewAgent(context *clusterd.Context, devices []DesiredDevice, metadataDevice string, forceFormat bool,
	storeConfig config.StoreConfig, cluster *cephconfig.ClusterInfo, nodeName string, kv *k8sutil.ConfigMapKVStore, pvcBacked bool) *OsdAgent

NewAgent is the instantiation of the OSD agent

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL