|
openmediavault
4.0 (Arrakis)
The open network attached storage solution
|
Static Public Member Functions | |
| static | enumerate () |
Static Public Member Functions inherited from OMV\System\Storage\StorageDevice | |
| 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 = "" | |
| $lvAttr = "" | |
| $vgAttr = "" | |
| $kernelMajor = "" | |
| $kernelMinor = "" | |
| $lvName = "" | |
| $vgName = "" | |
Protected Attributes inherited from OMV\System\Storage\StorageDevice | |
| $model = NULL | |
| $vendor = NULL | |
Protected Attributes inherited from OMV\System\BlockDevice | |
| $deviceFile = NULL | |
| $deviceFileById = NULL | |
| $size = FALSE | |
| $blockSize = FALSE | |
| $sectorSize = FALSE | |
| $udevData = NULL | |
Additional Inherited Members | |
Protected Member Functions inherited from OMV\System\BlockDevice | |
| getUdevData ($force=FALSE) | |
This class provides a simple interface to handle a LVM logical volume.
| OMV\System\Storage\StorageDeviceLvm::__construct | ( | $deviceFile | ) |
Constructor
| deviceFile | Specifies the device file, e.g. /dev/dm-1, /dev/vg0/lv0 or /dev/mapper/vg0-lv0. |
| OMV\System\Storage\StorageDeviceLvm::create | ( | $name, | |
| $size, | |||
| $vgName | |||
| ) |
Create the logical volume.
| name | The name for the new logical volume. |
| size | The size of bytes to allocate for the new logical volume. |
| vgName | The name of the volume group where to create the logical volume. |
| OMV\System\Storage\StorageDeviceLvm::createSnapshot | ( | $name, | |
| $size | |||
| ) |
Create a snapshot of a logical volume.
| name | The name for the snapshot. |
| size | The size of the snapshot in bytes. |
|
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::getAttributes | ( | ) |
Get the logical volume attributes.
| 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::getPreferredDeviceFile | ( | ) |
Get the device file to present in the UI, e.g.:
/dev/disk/by-id/xxx
Implements OMV\System\IBlockDevice.
| 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::getVGAttributes | ( | ) |
Get the volume group attributes.
| OMV\System\Storage\StorageDeviceLvm::getVGName | ( | ) |
Get the name of the volume group.
| OMV\System\Storage\StorageDeviceLvm::IsMediaAvailable | ( | ) |
Check if a medium is available.
| 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. |
1.8.13