配置glance使用NFS后端
首先先使用“glance image-delete”命令删除所有镜像,释放磁盘空间。
停止glance服务:
service openstack-glance-api stop
service openstack-glance-registry stop
停止swift服务:
service openstack-swift-proxy stop
service openstack-swift-account stop
service openstack-swift-account-auditor stop
service openstack-swift-account-reaper stop
service openstack-swift-account-replicator stop
service openstack-swift-container stop
service openstack-swift-container-auditor stop
service openstack-swift-container-replicator stop
service openstack-swift-container-updater stop
service openstack-swift-object stop
service openstack-swift-object-auditor stop
service openstack-swift-object-replicator stop
service openstack-swift-object-updater stop
禁用swift服务:
chkconfig openstack-swift-proxy off
chkconfig openstack-swift-account off
chkconfig openstack-swift-account-auditor off
chkconfig openstack-swift-account-reaper off
chkconfig openstack-swift-account-replicator off
chkconfig openstack-swift-container off
chkconfig openstack-swift-container-auditor off
chkconfig openstack-swift-container-replicator off
chkconfig openstack-swift-container-updater off
chkconfig openstack-swift-object off
chkconfig openstack-swift-object-auditor off
chkconfig openstack-swift-object-replicator off
chkconfig openstack-swift-object-updater off
备份glance配置文件:
cp -a /etc/glance/glance-api.conf /etc/glance/glance-api.conf.bak
cat /etc/glance/glance-api.conf.bak|grep -v '#'|grep -v '^$'>/etc/glance/glance-api.conf
[glance_store]
stores=glance.store.swift.Store,glance.store.http.Store
swift_store_auth_version=2
swift_store_auth_address=http://168.5.23.2:5000/v2.0/
swift_store_user=services:glance
swift_store_key=bF5x7NId
swift_store_container=glance
swift_store_create_container_on_put=True
swift_store_large_object_size=5120
default_store=swift
swift_store_endpoint_type=internalURL
改为:
[glance_store]
default_store=file
filesystem_store_datadir=/var/lib/glance/images
卸载挂载点并授权:
umount /var/lib/glance
rm -rf /var/lib/glance/*
mkdir -p /var/lib/glance/images
chown -R glance:glance /var/lib/glance
挂载NFS:
mount 168.5.22.100:/images /var/lib/glance/images
chown -R glance:glance /var/lib/glance/images
chmod 755 /var/lib/glance/images
修改fstab文件:
vi /etc/fstab
UUID=bb4264a8-3eb0-4ac1-93a2-0ef17821c40a /var/lib/glance xfs defaults 0 0
改为:
168.5.22.100:/images /var/lib/glance/images nfs defaults 0 0
查看glance用户密码:
cat /etc/glance/glance-api.conf|grep sql_connection
sql_connection=mysql://glance:6caYCZH8@168.5.23.2/glance?read_timeout=60
密码是:6caYCZH8
在任一节点重建数据库:
mysql -h 168.5.23.2 -u glance -p -e 'drop database glance;'
mysql -h 168.5.23.2 -u glance -p -e 'create database glance;'
su -s /bin/sh -c "glance-manage db sync" glance
在任一节点:
source openrc
keystone endpoint-delete 41dca7df60244d7a8b509e019560c1d9
keystone service-delete b7409203b63348d9acefe5463e3880e3
启动glance服务:
service openstack-glance-api start
service openstack-glance-registry start
测试上传镜像:
glance image-create --name "TestVM" --file /root/TestVM.img --disk-format qcow2 --container-format bare --is-public True --progress
配置glance使用NFS后端的更多相关文章
- 配置cinder使用NFS后端
首先先使用“cinder delete”命令删除所有实例,释放磁盘空间. 停止cinder服务:service openstack-cinder-api stopservice openstack-c ...
- ubuntu 配置TFTP和NFS
1.安装软件包 sudo apt-get install tftpd tftp xinetd 2.建立配置文件 在/etc/xinetd.d/下建立一个配置文件tftp sudo vi /etc/xi ...
- 《3》CentOS7.0+OpenStack+kvm云平台部署—配置Glance
感谢朋友支持本博客,欢迎共同探讨交流.因为能力和时间有限,错误之处在所难免,欢迎指正. 假设转载.请保留作者信息. 博客地址:http://blog.csdn.net/qq_21398167 原博文地 ...
- openstack--4--控制节点安装配置glance
Glance相关介绍 image Service 的功能是管理 Image,让用户能够发现.获取和保存 Image.在 OpenStack 中,提供 Image Service 的是 Glance,其 ...
- 在kolla中配置cinder ceph多后端
原文链接:在kolla中配置cinder ceph多后端
- Cluster基础(一):配置iSCSI服务、编写udev规则、配置并访问NFS共享、部署Multipath多路径环境
一.配置iSCSI服务 目标: 本案例要求先搭建好一台iSCSI服务器,并将整个磁盘共享给客户端: 虚拟机添加新的磁盘 将新添加的磁盘分区并创建两个逻辑卷 逻辑卷名称分别为:/dev/myvg/isc ...
- 配置samba和NFS共享服务
配置samba和NFS共享服务 1案例1:配置SMB文件夹共享 1.1问题 本例要求在虚拟机server0上发布两个共享文件夹,具体要求如下: 此服务器 ...
- 配置nova instances使用NFS后端
首先先使用“nova delete”命令删除所有实例,释放磁盘空间. 停止nova服务:service libvirtd stopservice openstack-nova-compute stop ...
- 配置glance使用ceph作为后端存储
在ceph监视器上执行 1.创建pool池 为glance服务创建pool池(因为我只有一个OSD节点,所以要将副本数设置为1) ceph osd pool create glance-images ...
随机推荐
- Web开发人员不要错过的60款用户界面设计工具(中)
21. Dojo Dojo是一个用javascript语言实现的开源DHTML UI工具包,可实现高性能的桌面和移动应用程序开发,在国内亦有大量忠实用户. 22. Fivesecondtest Fiv ...
- CF 508D Tanya and Password(无向图+输出欧拉路)
( ̄▽ ̄)" //不知道为什么,用scanf输入char数组的话,字符获取失效 //于是改用cin>>string,就可以了 //这题字符的处理比较麻烦,输入之后转成数字,用到函 ...
- servlet第2讲(下集)----创建servlet实例(继承HttpServlet)
- 循环语句 ,for语句
for语句主要用来反复执行某段代码: for(初始条件:循环条件:状态改变) { 循环体 } 问题类型: 1.穷举(例:0-100以内与7有关的数) <body><input typ ...
- 15分钟快速开发一个kissy组件(流程篇)
Step1: 安装kissy gallery组件工具 npm install yo grunt-cli -g npm install generator-kissy-gallery -g 请确保本地带 ...
- 【我与一道水题的抗争之路】 哈理工2323 Emirp(反素数)
题目: http://acm.hrbust.edu.cn/index.php?m=ProblemSet&a=showProblem&problem_id=2323 1,打表的姿势不对. ...
- js截取文件名
str = 'C:\fakepath\ll.doc'; str.substring(str.lastIndexOf("\\")+1,str.lastIndexOf(".& ...
- SVN和GIT的使用
一.SVN通用流程 1.从服务器仓库的项目上右键拷贝项目地址,然后来到你的电脑桌面上右键“SVN checkout...”,这样就跟服务器建立了关联 2.如果有创建新文件,则右键选择“Tortoise ...
- PHP之Zip扩展,解压缩文件,ZipArchive类
<?php $zip = new ZipArchive();//新建一个对象 /* $zip->open这个方法第一个参数表示处理的zip文件名. 第二个参数表示处理模式,ZipArchi ...
- uIP学习笔记
uIP学习笔记 从零开始使用uIP freemodbus modbus TCP 学习笔记