配置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 ...
随机推荐
- hadoop三个配置文件的参数含义说明core-site.xml,hdfs-site.xml,mapred-site.xml
配置hadoop,主要是配置core-site.xml,hdfs-site.xml,mapred-site.xml三个配置文件,默认下来,这些配置文件都是空的,所以很难知道这些配置文件有哪些配置可以生 ...
- hdu_4826_Labyrinth_2014百度之星(dp)
题目连接:http://acm.hdu.edu.cn/showproblem.php?pid=4826 题意:中文题,不解释 题解:dp搞,第一列只能从上往下走,所以先算出第一列的dp数组,然后开两个 ...
- csuoj1009
AC代码: #include <iostream>#include <iomanip>using namespace std;//计算数学期望值,可以自己直接通过数组的方式来实 ...
- LeetCode OJ 26. Remove Duplicates from Sorted Array
Given a sorted array, remove the duplicates in place such that each element appear only once and ret ...
- mysql -- 备忘
select distinct(authorid),author from forum_post where tid=1;
- process lasso 优化原理
<星际争霸2:虚空之遗>很多玩家的CPU性能并不低,但是在星际2中的表现就总会出现掉帧的情况,那么应该如何提升CPU的性能就成了玩家关注的话题,下面小编就为大家带来星际争霸2虚空之遗cpu ...
- Glusterfs 分布式存储安装部署
Glusterfs 分布式存储部署 是存储当中可以选择的一种 现在很多虚拟化 云计算都在用软件存储 例如 ceph Glusterfs 等等 今天我们部署一下Glusterfs环境 GlusterFs ...
- C++设计模式-Visitor访问者模式
#include <iostream> #include <string> #include <string.h> #include <memory> ...
- NoSql的产生
主流的关系型数据库:Microsoft SQLServer, IBM DB2, Oracle, MySQL, Microsoft Access, Sybase,IBM Informix 随着互联网we ...
- Hibernate 系列教程14-继承-PerTable策略
Employee public class Employee { private Long id; private String name; HourlyEmployee public class H ...