OpenMediaVault
3.0 (Erasmus)
The open network attached storage solution
|
Static Public Member Functions | |
static | enumerate () |
![]() | |
static | enumerate ($type=OMV_STORAGE_DEVICE_TYPE_ALL) |
static | enumerateUnused ($type=OMV_STORAGE_DEVICE_TYPE_ALL) |
static | enumerateUsed ($type=OMV_STORAGE_DEVICE_TYPE_ALL) |
static | isUsed ($deviceFile, $type=OMV_STORAGE_DEVICE_TYPE_ALL) |
static | getStorageDevice ($deviceFile) |
static | assertStorageDeviceExists ($deviceFile) |
Protected Attributes | |
$uuid = "" | |
$attr = "" | |
$kernelMajor = "" | |
$kernelMinor = "" | |
$lvName = "" | |
$vgName = "" | |
![]() | |
$model = NULL | |
$vendor = NULL | |
![]() | |
$deviceFile = NULL | |
$deviceFileById = NULL | |
$size = FALSE | |
$blockSize = FALSE | |
$sectorSize = FALSE | |
$udevData = NULL | |
Additional Inherited Members | |
![]() | |
getUdevData ($force=FALSE) | |
This class provides a simple interface to handle a LVM logical volume.
OMV\System\Storage\StorageDeviceLvm::create | ( | $name, | |
$size, | |||
$vgName | |||
) |
Create the logical volume.
name | The name for the new logical volume. |
size | Gives the size of bytes to allocate for the new logical volume. |
vgName | The name of the volume group where to create the logical volume. |
|
static |
Enumerate LVM logical volumes.
OMV\System\Storage\StorageDeviceLvm::exists | ( | ) |
Checks if the logical volume exists.
Implements OMV\System\Storage\IStorageDevice.
OMV\System\Storage\StorageDeviceLvm::extend | ( | $size | ) |
Extend the logical volume.
size | Gives the size of bytes to extend the logical volume. |
OMV\System\Storage\StorageDeviceLvm::getDescription | ( | ) |
Get the description of the logical volume.
Implements OMV\System\Storage\IStorageDevice.
OMV\System\Storage\StorageDeviceLvm::getName | ( | ) |
Get the name of the logical volume.
OMV\System\Storage\StorageDeviceLvm::getPath | ( | ) |
Get the path of the logical volume.
OMV\System\Storage\StorageDeviceLvm::getSize | ( | ) |
Get the size of the logical volume in bytes.
Implements OMV\System\Storage\IStorageDevice.
OMV\System\Storage\StorageDeviceLvm::getUuid | ( | ) |
Get the UUID of the array.
OMV\System\Storage\StorageDeviceLvm::getVGName | ( | ) |
Get the name of the volume group.
OMV\System\Storage\StorageDeviceLvm::reduce | ( | $size | ) |
Reduce the logical volume.
size | Gives the size of bytes to extend the logical volume. |
OMV\System\Storage\StorageDeviceLvm::refresh | ( | ) |
Refresh the cached information.
OMV\System\Storage\StorageDeviceLvm::remove | ( | ) |
Remove the logical volume.
OMV\System\Storage\StorageDeviceLvm::rename | ( | $name | ) |
Rename the logical volume.
name | The new logical volume path/name. |