cinder手动安装

一 创建一个新的虚拟机作为存储节点
1 部署图

二 控制节点
1 安装cinder
[root@controller0 ~]# yum install openstack-cinder -y
2 修改hosts
[root@controller0 ~]# cat /etc/hosts
127.0.0.1    localhost
::1          localhost
10.20.0.10   controller0
10.20.0.20   network0
10.20.0.30   compute0
10.20.0.40   cinder0
3 配置cinder数据库连接
[root@controller0 ~]# openstack-config --set /etc/cinder/cinder.conf database connection mysql://cinder:openstack@controller0/cinder
4 初始化数据库
[root@controller0 ~]# openstack-db --init --service cinder --password openstack
Please enter the password for the 'root' MySQL user:
Verified connectivity to MySQL.
Creating 'cinder' database.
Updating 'cinder' database password in /etc/cinder/cinder.conf
Initializing the cinder database, please wait...
Complete!
5 在keystone中创建cinder系统用户
[root@controller0 ~]# keystone user-create --name=cinder --pass=cinder --email=cinder@example.com
+----------+----------------------------------+
| Property |              Value               |
+----------+----------------------------------+
|  email   |        cinder@example.com        |
| enabled  |               True               |
|    id    | 3226dd887b8b46f78f43bc64abb729c3 |
|   name   |              cinder              |
| username |              cinder              |
+----------+----------------------------------+
[root@controller0 ~]# keystone user-role-add --user=cinder --tenant=service --role=admin
6 在keystone中注册一个cinder的service
[root@controller0 ~]# keystone service-create --name=cinder --type=volume --description="OpenStack Block Storage"
+-------------+----------------------------------+
|   Property  |              Value               |
+-------------+----------------------------------+
| description |     OpenStack Block Storage      |
|   enabled   |               True               |
|      id     | 6897f2a2184049fa87d75252b1d27e1b |
|     name    |              cinder              |
|     type    |              volume              |
+-------------&#
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值