OpenMediaVault
3.0 (Erasmus)
The open network attached storage solution
|
Public Member Functions | |
__construct ($deviceFile) | |
refresh () | |
exists () | |
assertExists () | |
getDeviceFile () | |
getUuid () | |
getSize () | |
getFree () | |
getUsed () | |
getAllocatedPhysicalExtents () | |
getVGName () | |
getVGUuid () | |
getDescription () | |
create () | |
remove () | |
resize () | |
Static Public Member Functions | |
static | enumerate () |
Protected Attributes | |
$deviceFile = "" | |
$uuid = "" | |
$size = "" | |
$free = "" | |
$used = "" | |
$vgUuid = "" | |
$vgName = "" | |
$allocatedPE = 0 | |
Class to handle a LVM physical volume.
OMV\System\Storage\Lvm\PhysicalVolume::__construct | ( | $deviceFile | ) |
Constructor
string | $deviceFile | The device file, e.g. /dev/sdb. |
OMV\System\Storage\Lvm\PhysicalVolume::assertExists | ( | ) |
Assert that the volume group exists.
OMV\System\Storage\Lvm\PhysicalVolume::create | ( | ) |
Create the physical volume.
|
static |
Enumerate LVM physical volumes.
OMV\System\Storage\Lvm\PhysicalVolume::exists | ( | ) |
Checks if the physical volume exists.
OMV\System\Storage\Lvm\PhysicalVolume::getAllocatedPhysicalExtents | ( | ) |
Get total number of allocated physical extents.
OMV\System\Storage\Lvm\PhysicalVolume::getDescription | ( | ) |
Get the description of the physical volume.
OMV\System\Storage\Lvm\PhysicalVolume::getDeviceFile | ( | ) |
Get the device path, e.g. /dev/vg0/lvol0.
OMV\System\Storage\Lvm\PhysicalVolume::getFree | ( | ) |
Get the total amount of unallocated space.
OMV\System\Storage\Lvm\PhysicalVolume::getSize | ( | ) |
Get the size of the physical volume in bytes.
OMV\System\Storage\Lvm\PhysicalVolume::getUsed | ( | ) |
Get the total amount of allocated space.
OMV\System\Storage\Lvm\PhysicalVolume::getUuid | ( | ) |
Get the UUID of the physical volume.
OMV\System\Storage\Lvm\PhysicalVolume::getVGName | ( | ) |
Get the name of the volume group the physical volume is assigned to.
OMV\System\Storage\Lvm\PhysicalVolume::getVGUuid | ( | ) |
Get the UUID of the volume group the physical volume is assigned to.
OMV\System\Storage\Lvm\PhysicalVolume::refresh | ( | ) |
Refresh the cached informations.
OMV\System\Storage\Lvm\PhysicalVolume::remove | ( | ) |
Remove the physical volume.
OMV\System\Storage\Lvm\PhysicalVolume::resize | ( | ) |
Resize the physical volume.