镜像&云硬盘

//生效环境变量
[root@xiandian~]#source /etc/keystone/admin-openrc.sh
//创建用户
[root@xiandian~]#openstack user create --domain xiandian --password password testuser
//修改用户状态为down
[root@xiandian~]#openstack user set --disable testuser
//查看用户的详细信息
[root@xiandian~]#openstack user show testuser

//用glance命令上传镜像
[root@xiandian~]#glance image-create --name "examimage" --disk-format "qcow2" --container-format bare --progress </opt/Centos_6.5_x86_64_XD.qcow2
//查看镜像列表
[root@xiandian~]#openstack image list
//给镜像打上标签lastone
[root@xiandian~]#openstack image set examimage --tag lastone
//查看镜像详细情况
[root@xiandian~]#openstack image show examimage

//nova命令查询默认实际配额数  instances为实际配额
[root@xiandian~]#nova quota-class-show default
//更新实际配额数为20
[root@xiandian~]#nova quota-class-update --instances 20 default
    
//cinder命令创建云硬盘
[root@xiandian~]#cinder create --name volumel 2
//设置云硬盘为只读模式
[root@xiandian~]#cinder readonly-mode-update volume1 True
//查看云硬盘
[root@xiandian~]#cinder show volume1
//云硬盘扩容
[root@xiandian~]#cinder extend blockvolume 5
//查看云硬盘详细信息
[root@xiandian~]#lvdisplay
```+
©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

相关阅读更多精彩内容

友情链接更多精彩内容