1. 程式人生 > >##3.ceph建立卷

##3.ceph建立卷

 ###openstack-ocata 單節點安裝 部署 目錄彙總

 

1. controller上建立ceph卷型別
cinder --os-username admin --os-tenant-name admin type-create ceph
cinder --os-username admin --os-tenant-name admin type-key ceph set volume_backend_name=ceph
cinder --os-username admin --os-tenant-name admin extra-specs-list

 

2. controller上建立10G ceph型別卷
cinder create --display-name 'ceph01' --description "SSD" --volume-type ceph 10


3. controller上上檢視
cinder list
[[email protected] ~]# cinder list
+--------------------------------------+-----------+--------+------+-------------+----------+--------------------------------------+
| ID | Status | Name | Size | Volume Type | Bootable | Attached to |
+--------------------------------------+-----------+--------+------+-------------+----------+--------------------------------------+
| 5de3c513-ada9-4f6d-b48a-f45f60a9ff11 | in-use | test | 10 | ceph | false | 5472dda3-a745-4bc4-a78c-0b7b91a941a7 |
| f36a4a12-8565-4a68-9899-4ddf511a4b31 | available | ceph01 | 10 | ceph | false | |
+--------------------------------------+-----------+--------+------+-------------+----------+--------------------------------------+
4. dashboard檢視