我要评分
获取效率
正确性
完整性
易理解

Verifying Cinder

Perform the following operations on the controller node.

  1. Log in to the OpenStack CLI as the user admin.
    1
    source /etc/keystone/admin-openrc
    
  2. List service components to verify that each process is successfully started.
    1
    openstack volume service list
    
    Figure 1 volume service list

Common Cinder Commands

CLI

Description

openstack volume create --size 1 volume1

Creates a volume.

openstack volume list

Displays the volume list.

openstack volume create VOLNAME-OR-ID

Deletes the selected volume.

openstack volume snapshot create --volume SNAPSHOT-VOLNAME VOLNAME-OR-ID

Creates a snapshot of a volume.

openstack volume snapshot list

Displays the snapshots of a volume.

nova volume-attach VM_ID VOLUME_ID /dev/vdb

Attaches a volume to a VM.

nova volume-detach VM_ID VOLUME_ID

Detaches a volume from a VM.