• Increase font size
  • Default font size
  • Decrease font size
Home Software SysFunc Sysfunc Reference Guide - Logical volume manager

Sysfunc Reference Guide - Logical volume manager

E-mail Print
Read : 9,598 times
(1 vote, average 5.00 out of 5)
Article Index
Sysfunc Reference Guide
Configuration parameters
System database
Disk management
Error handling
File manipulation
Filesystems
IP V4 addresses
Kernel
Logical volume manager
Miscellaneous
Message display
User interaction
Network
OS
File backup
Software packages
Services
Time and date
Temporary file management
Users and groups
Vmware-specific
Function index
All Pages

create_lv

Create a logical volume

Arguments

$1Logical volume name
$2Volume group name
$3Size (Default: megabytes, optional suffixes: [kmgt]. Special value: 'all' takes the whole free size in the VG.

Returns

0: OK, !=0: Error

Displays

Info msg

create_vg

Create a volume group

Arguments

$1volume group name
$2PE size (including optional unit, default=Mb)
$3Device path, without the /dev prefix

Returns

0: OK, !=0: Error

Displays

Info msg

lv_exists

Checks if a given logical volume exists

Arguments

$1VG name
$2LV name

Returns

0 if it exists, 1 if not

Displays

Nothing

lv_to_vg

Returns the VG containing a given LV

Arguments

$1LV device path

Returns

Always 0

Displays

The containing VG name, or nothing if device is not a valid LV.

lvm_vg_free

Returns the available size in a VG (in Mb)

Arguments

$1VG name

Returns

Always 0

Displays

The available size in Mbytes. Nothing if VG does not exist.

vg_exists

Checks if a given volume group exists

Arguments

$1VG name

Returns

0 if it exists, 1 if not

Displays

Nothing

 

Please login or register to add a comment