volume

package
v1.3.22 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Overview

Package volume provides the volume abstraction and methods to configLoadVMD, store with redundancy, and validate the corresponding metadata. AIS volume is built on top of mountpaths (fs package).

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

Package volume provides the volume abstraction and methods to bootstrap, store with redundancy, and validate the corresponding metadata. AIS volume is built on top of mountpaths (fs package).

  • Copyright (c) 2018-2023, 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,
	allowSharedDisksAndNoDisks, useLoopbackDevs, ignoreMissingMountpath bool) (created bool)

initializes mountpaths and volume; on SIE (storage integrity error) terminates and exits

func RecoverTID

func RecoverTID(generatedID string, configPaths cos.StrSet) (tid string)

pre-loading to try to recover lost tid

Types

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