volume

package
v1.3.23 Latest Latest
Warning

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

Go to latest
Published: May 27, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Overview

Package volume provides volume (a.k.a. pool of disks) abstraction and methods to configure, store, and validate the corresponding metadata. AIS volume is built on top of mountpaths (fs package).

  • Copyright (c) 2018-2024, NVIDIA CORPORATION. All rights reserved.

Package volume provides volume (a.k.a. pool of disks) abstraction and methods to configure, store, and validate the corresponding metadata. AIS volume is built on top of mountpaths (fs package).

  • Copyright (c) 2018-2024, NVIDIA CORPORATION. All rights reserved.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init(t core.Target, config *cmn.Config, ctx IniCtx) (created bool)

- load (or initialize new) volume - initialize mountpaths - check a variety of SIE (storage integrity error) conditions; terminate and exit if detected

func RecoverTID

func RecoverTID(generatedID string, configPaths cos.StrKVs) (tid string, recovered bool)

pre-loading to try to recover lost tid

Types

type IniCtx added in v1.3.23

type IniCtx struct {
	UseLoopbacks  bool // using loopback dev-s
	IgnoreMissing bool // ignore missing mountpath(s)
	RandomTID     bool // generated random target ID
}

type VMD

type VMD struct {
	Mountpaths map[string]*fsMpathMD `json:"mountpaths"` // mountpath => details

	DaemonID string `json:"daemon_id"` // this target node ID

	Version uint64 `json:"version,string"` // version inc-s upon mountpath add/remove, etc.
	// contains filtered or unexported fields
}

VMD is AIS target's volume metadata structure

func LoadVMDTest

func LoadVMDTest() (*VMD, error)

func NewFromMPI

func NewFromMPI(tid string) (vmd *VMD, err error)

MPI => VMD

func (*VMD) JspOpts

func (*VMD) JspOpts() jsp.Options

func (*VMD) String

func (vmd *VMD) String() string

Jump to

Keyboard shortcuts

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