lvm

package
v0.8.2 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BindMountLV added in v0.8.0

func BindMountLV(log *slog.Logger, lvname, mountPath string, vgName string) (string, error)

func CreateLV added in v0.8.0

func CreateLV(log *slog.Logger, vg string, name string, size uint64, lvmType string, integrity bool) (string, error)

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

func CreateVG

func CreateVG(log *slog.Logger, name string, devicesPattern string) (string, error)

CreateVG creates a volume group matching the given device patterns

func ExtendLVS added in v0.8.0

func ExtendLVS(log *slog.Logger, vg string, name string, size uint64, isBlock bool) (string, error)

func LvExists added in v0.8.0

func LvExists(log *slog.Logger, vg string, name string) bool

func MountLV added in v0.8.0

func MountLV(log *slog.Logger, lvname, mountPath string, vgName string, fsType string) (string, error)

func RemoveLVS added in v0.3.3

func RemoveLVS(log *slog.Logger, vg string, name string) (string, error)

RemoveLVS executes lvremove

func UmountLV added in v0.8.0

func UmountLV(log *slog.Logger, targetPath string)

func VgActivate added in v0.8.0

func VgActivate(log *slog.Logger)

VgActivate execute vgchange -ay to activate all volumes of the volume group

func VgExists added in v0.8.0

func VgExists(log *slog.Logger, vgname string) bool

VgExists checks if the given volume group exists

func VgStats added in v0.8.0

func VgStats(log *slog.Logger, vgName string) (int64, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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