YaST2 Developers Documentation: Auto-Installation



functions
files
intro

Auto-Installation

modules/AutoinstLVM.ycp
LVM

Imports

  • FileSystems
  • Partitions
  • Report
  • Storage

Includes

  • partitioning/lvm_lib.ycp
  • partitioning/lvm_lv_lib.ycp
  • partitioning/lvm_pv_lib.ycp

Global Functions

global Init () -> void

Initialize

global RemoveVG (string vgname) -> void

Remove volume Group

Parameters:
vgname

global CreateVG (string vgname, boolean lvm2) -> map

Create volume Group

Parameters:
vgname
lvm2
Return value:
new VG

global CreatePV (string vgname, string device, boolean lvm2) -> void

Create physical volume

Parameters:
vgname
device
lvm2

global RemoveLV (string vgname, string lvname) -> void

Remove logical volume

Parameters:
vgname
lvname

global RemovePV (string vgname, string device) -> void

Remove physical volume

Parameters:
vgname
device

global CreateLV (string vgname, map lv) -> map

Create logical volume

Parameters:
vgname
lv

global ResizeLV (string vgname, map lv) -> map

Resize logical volume

Parameters:
vgname
lv

global KeepLV (string vgname, map lv) -> map

Keep logical volume

Parameters:
vgname
lv

global SetPESIZE (string pesize_str) -> void

Set PE Size

Parameters:
pesize_str

global ExistingPVs (string vgname) -> list<map>

Return only those PVs on disks touched by the control file, dont add PVs of unconfigured disks.

Parameters:
vgname
Return value:
existing PVs

global DeletedPVs (string vgname) -> list<map>

Return list of deleted PVS

Parameters:
vgname
Return value:
list of deleted PVs

global Write () -> boolean

Write LVM Configuration

Return value:
true on success

YaST2 Developers Documentation