配置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 ...
随机推荐
- <context:annotation-config> 和 <context:component-scan>的区别
转自:GOOD spring <context:annotation-config> 跟 <context:component-scan>诠释及区别 <context:a ...
- 这种方法在受到.NET版本和访问注册表权限时,是最佳解决方案,虽然代码看起来很多,不过下面的类直接拿走用就可以了。
public class FileContentType { private static IDictionary<string, string> _mappings = ne ...
- php.ini与php-fpm.conf配置文件的区别
php-fpm.conf是PHP-FPM特有的配置文件 php.ini是所以php模式中必须的配置文件 两者的区别是,php-fpm.conf是PHP-FPM进程管理器的配置文件,php.ini是PH ...
- dp + 组合数 Codeforces Beta Round #9 (Div. 2 Only) D
http://codeforces.com/problemset/problem/9/D 题目大意:给你一个二叉树和n个数字,满足左小右大,能形成多少种不同的二叉树 思路:定义dp[i][j]表示目前 ...
- NavigationBar的显隐和颜色设置
[self.navigationController setNavigationBarHidden:NO animated:NO]; self.navigationController.navigat ...
- androidstudio 问题
Error:(1, 1) A problem occurred evaluating project ':app'. > Failed to apply plugin [id 'com.andr ...
- AngularJS中如果ng-src 图片加载失败怎么办
我们知道AngularJS加载图片的方法是用技术分享加ng-src标签,例如: <img ng-src="{{currentUrl}}"/> 其中currentUrl为 ...
- Spring Boot 系列教程5-热部署-devtools模块
devtools模块 devtools模块,是为开发者服务的一个模块.主要的功能就是代码修改后一般在5秒之内就会自动重新加载至服务器,相当于restart成功. 原理 简单原理 在发现代码有更改之后, ...
- Category / Extention / 属性 / 成员变量 /
转载自:http://blog.csdn.net/itianyi/article/details/8618128 在ios第一版中,我们为输出口同时声明了属性和底层实例变量,那时,属性是oc语言的一个 ...
- mysql问题总结,远程登录
http://blog.sina.com.cn/s/blog_4550f3ca0101axzd.html 更改mysql数据库的数据库名 http://tech.sina.com.cn/s/s/200 ...