This Page

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

The nova.volume.manager Module

Volume manager manages creating, attaching, detaching, and persistent storage.

Persistant storage volumes keep their state independent of instances. You can attach to an instance, terminate the instance, spawn a new instance (even one from a different image) and re-attach the volume with the same data intact.

Related Flags

volume_topic:What rpc topic to listen to (default: volume).
volume_manager:The module name of a class derived from manager.Manager (default: nova.volume.manager.AOEManager).
storage_availability_zone:
 Defaults to nova.
volume_driver:Used by AOEManager. Defaults to nova.volume.driver.AOEDriver.
num_shelves:Number of shelves for AoE (default: 100).
num_blades:Number of vblades per shelf to allocate AoE storage from (default: 16).
volume_group:Name of the group that will contain exported volumes (default: nova-volumes)
aoe_eth_dev:Device name the volumes will be exported on (default: eth0).
num_shell_tries:
 Number of times to attempt to run AoE commands (default: 3)
class nova.volume.manager.VolumeManager(volume_driver=None, *args, **kwargs)

Bases: nova.manager.SchedulerDependentManager

Manages attachable block storage devices.

check_for_export(context, instance_id)

Make sure whether volume is exported.

create_volume(context, volume_id)

Creates and exports the volume.

delete_volume(context, volume_id)

Deletes and unexports volume.

init_host()

Do any initialization that needs to be run if this is a standalone service.

remove_compute_volume(context, volume_id)

Remove remote volume on compute host.

setup_compute_volume(context, volume_id)

Setup remote volume on compute host.

Returns path to device.