volume

package
v1.3.15 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2022 License: MIT Imports: 11 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-2022, 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-2021, NVIDIA CORPORATION. All rights reserved.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init(t cluster.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 {
	Version    uint64                `json:"version,string"` // version inc-s upon mountpath add/remove, etc.
	Mountpaths map[string]*fsMpathMD `json:"mountpaths"`     // mountpath => details
	DaemonID   string                `json:"daemon_id"`      // this target node ID
	// 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