lvm

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2024 License: MIT Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateLVS

func CreateLVS(vg string, name string, size uint64, lvmType string, integrity bool) (string, error)

CreateLVS creates the new volume used by lvcreate provisioner pod and by nodeserver for ephemeral volumes

func CreateVG

func CreateVG(name string, devicesPattern string) (string, error)

CreateVG creates a volume group matching the given device patterns

func RemoveLVS added in v0.3.3

func RemoveLVS(vg string, name string) (string, error)

RemoveLVS executes lvremove

Types

type Lvm

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

Lvm contains the main parameters

func NewLvmDriver

func NewLvmDriver(driverName, nodeID, endpoint string, hostWritePath string, ephemeral bool, maxVolumesPerNode int64, version string, devicesPattern string, vgName string, namespace string, provisionerImage string, pullPolicy string) (*Lvm, error)

NewLvmDriver creates the driver

func (*Lvm) Run

func (lvm *Lvm) Run() error

Run starts the lvm plugin

Jump to

Keyboard shortcuts

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