OpenStack命令设置卷描述信息

2020-06-13 12:31:57 浏览数 (1)

查看卷列表

[root@controller ~]# openstack volume list

ID

Name

Status

Size

Attached to

2e01aabf-cf58-4a18-b2dd-d21d786ab8d3

in-use

50

Attached to Ke'Hu-5 on /dev/vda

4b03f7dc-a599-4b74-8448-747e7c8ec2b2

in-use

50

Attached to Ke'Hu-4 on /dev/vda

2bcc85bb-f7a1-4359-9fa0-5e5fe7e5d5b0

in-use

50

Attached to Ke'Hu-3 on /dev/vda

8d0650cf-77c6-409a-94fe-bfd2d4379270

in-use

50

Attached to Ke'Hu-2 on /dev/vda

71ced72c-9fb9-411b-b530-4a18215a9e04

in-use

50

Attached to Ke'Hu-1 on /dev/vda

ed916812-9629-438a-ae76-7f4353003015

in-use

50

Attached to ROLY-9 on /dev/vda

7a837265-57f5-445d-98a7-e1591fae94f5

in-use

50

Attached to ROLY-7 on /dev/vda

29defce9-8a72-4fcf-9085-716625b81acf

in-use

50

Attached to ROLY-5 on /dev/vda

b249368c-1321-4745-8b58-d5308f590a6c

available

50

根据ID设置卷的描述信息为:wocaoxxoo [root@controller ~]# openstack volume set b249368c-1321-4745-8b58-d5308f590a6c --description wocaoxxoo

查看该卷的详细信息

[root@controller ~]# openstack volume show b249368c-1321-4745-8b58-d5308f590a6c

Field

Value

attachments

[]

availability_zone

nova

bootable

true

consistencygroup_id

None

created_at

2019-05-10T01:58:19.000000

description

wocaoxxoo

encrypted

False

id

b249368c-1321-4745-8b58-d5308f590a6c

migration_status

None

multiattach

False

name

os-vol-host-attr:host

node2@ceph#ceph

os-vol-mig-status-attr:migstat

None

os-vol-mig-status-attr:name_id

None

os-vol-tenant-attr:tenant_id

b03aac1f6ae94f7bada2afa8f2064312

properties

replication_status

None

size

50

snapshot_id

None

source_volid

None

status

available

type

None

updated_at

2019-05-16T07:11:56.000000

user_id

06a72bdd76d247fca8328ee17360449e

volume_image_metadata

{u'checksum': u'659cbd2d6515c62e37dde918ff117093', u'min_ram': u'0', u'disk_format': u'qcow2', u'image_name': u'HTU-CentOS7.2', u'image_id': u'a56330e7-79d7-4639-a68f-366ac344bfe2', u'signature_verified': u'False', u'container_format': u'bare', u'min_disk': u'0', u'size': u'1415708672'}

0 人点赞