3.10. Manage or unmanage volumes and their snapshots
You can add volumes to or remove volumes from the Block Storage volume service (cinder-volume) by using the cinder manage and cinder unmanage commands. Use these commands to move volumes between deployments during upgrades or to import existing storage volumes into the Block Storage service.
The Block Storage volume service typically manages volumes that it creates, tracking them so it can list, attach, and delete them. However, you can control this management relationship:
- Usage scenarios
- Parallel upgrades: Move volumes between deployments during an upgrade by unmanaging volumes and snapshots from the old deployment and managing them in the new deployment. This allows you to migrate volumes while keeping both versions running.
-
Importing existing storage: Import volumes from bare-metal storage arrays into the cloud by using
cinder manageto add them to the Block Storage service.
- Limitations
- You cannot manage or unmanage encrypted volumes.
- Managing volumes and snapshots
-
Use
cinder manageto add an existing volume to Block Storage service management. After managing a volume, you can add its snapshots usingcinder snapshot-manage. - Unmanaging volumes and snapshots
-
Use
cinder unmanageto remove a volume from Block Storage service management. The volume remains on the storage back end but is no longer tracked by the service. Before unmanaging a volume, you must first unmanage all of its snapshots usingcinder snapshot-unmanage. - Listing manageable resources
-
Use
cinder manageable-listto identify volumes on storage arrays that are not currently managed by the Block Storage service. These are typically volumes that have been unmanaged or created manually on the storage array. Usecinder snapshot-manageable-listto list unmanaged snapshots. - Command syntax considerations
-
The
cinder manageandcinder snapshot-managecommands use back-end-specific syntax because volume identification properties vary by back end. Most back ends supportsource-name,source-id, or both. Some back ends require additional properties. Some back ends can list which volumes are manageable and what parameters need to be passed. For back ends that do not provide this information, refer to your storage vendor documentation for specific requirements. Thecinder unmanageandcinder snapshot-unmanagecommands are not back-end-specific and require only the volume name or ID.