Previous topic

The cinder.volume.drivers.huawei.huawei_iscsi Module

Next topic

The cinder.volume.drivers.netapp.api Module

This Page

Psst... hey. You're reading the latest content, but it might be out of sync with code. You can read Cinder 2011.2 docs or all OpenStack docs too.

The cinder.volume.drivers.lvm Module

Driver for Linux servers running LVM.

class LVMISCSIDriver(*args, **kwargs)

Bases: cinder.volume.drivers.lvm.LVMVolumeDriver, cinder.volume.driver.ISCSIDriver

Executes commands relating to ISCSI volumes.

We make use of model provider properties as follows:

provider_location
if present, contains the iSCSI target information in the same format as an ietadm discovery i.e. ‘<ip>:<port>,<portal> <target IQN>’
provider_auth
if present, contains a space-separated triple: ‘<auth method> <auth username> <auth password>’. CHAP is the only auth_method in use at the moment.
create_export(context, volume)

Creates an export for a logical volume.

ensure_export(context, volume)

Synchronously recreates an export for a logical volume.

get_volume_stats(refresh=False)

Get volume status.

If ‘refresh’ is True, run update the stats first.

remove_export(context, volume)

Removes an export for a logical volume.

set_execute(execute)
class LVMVolumeDriver(*args, **kwargs)

Bases: cinder.volume.driver.VolumeDriver

Executes commands relating to Volumes.

VERSION = '1.0'
backup_volume(context, backup, backup_service)

Create a new backup from an existing volume.

check_for_setup_error()

Returns an error if prerequisites aren’t met

clear_volume(volume, is_snapshot=False)

unprovision old volumes to prevent data leaking between users.

clone_image(volume, image_location)
copy_image_to_volume(context, volume, image_service, image_id)

Fetch the image from image_service and write it to the volume.

copy_volume_to_image(context, volume, image_service, image_meta)

Copy the volume to the specified image.

create_cloned_volume(volume, src_vref)

Creates a clone of the specified volume.

create_snapshot(snapshot)

Creates a snapshot.

create_volume(volume)

Creates a logical volume. Can optionally return a Dictionary of changes to the volume object to be persisted.

create_volume_from_snapshot(volume, snapshot)

Creates a volume from a snapshot.

delete_snapshot(snapshot)

Deletes a snapshot.

delete_volume(volume)

Deletes a logical volume.

local_path(volume)
restore_backup(context, backup, volume, backup_service)

Restore an existing backup to a new or existing volume.

class ThinLVMVolumeDriver(*args, **kwargs)

Bases: cinder.volume.drivers.lvm.LVMISCSIDriver

Subclass for thin provisioned LVM’s.

VERSION = '1.0'
check_for_setup_error()

Returns an error if prerequisites aren’t met

create_cloned_volume(volume, src_vref)

Creates a clone of the specified volume.

create_snapshot(snapshot)

Creates a snapshot of a volume.

delete_volume(volume)

Deletes a logical volume.

get_volume_stats(refresh=False)

Get volume status. If ‘refresh’ is True, run update the stats first.