12 2015 档案

摘要:# cat /etc/nova/nova.conf |grep -n state_path|grep -v '#'314:state_path=/var/lib/nova 阅读全文
posted @ 2015-12-30 18:05 Endoresu 阅读(358) 评论(0) 推荐(0)
摘要:在存储节点:# pvcreate /dev/sdb# vgcreate vg100gb /dev/sdb# openstack-config --set /etc/cinder/cinder.conf DEFAULT volume_group vg100gb# chkconfig --list|gr... 阅读全文
posted @ 2015-12-30 15:02 Endoresu 阅读(400) 评论(0) 推荐(0)
摘要:# vgs -a VG #PV #LV #SN Attr VSize VFree cinder 1 0 0 wz--n- 30.39g 30.39g os 1 2 0 wz--n- 19.00g 4.00m# pvs -S vg_name=os PV VG Fmt Attr PSize PFree ... 阅读全文
posted @ 2015-12-30 11:57 Endoresu 阅读(796) 评论(0) 推荐(0)
摘要:在cinder节点,cinder-volume使用的磁盘(/dev/sdb),需要在/etc/lvm/lvm.conf中配置:devices {...filter = [ "a/sdb/", "r/.*/"]如果cinder节点的操作系统也安装在lvm上,则还需要(在cinder节点操作):filt... 阅读全文
posted @ 2015-12-30 11:34 Endoresu 阅读(3224) 评论(0) 推荐(0)
摘要:source admin-openrc.shkeystone user-create --name=demo --pass=123456keystone tenant-create --name=demo --description="Demo Tenant"keystone user-role-a... 阅读全文
posted @ 2015-12-30 10:14 Endoresu 阅读(1809) 评论(0) 推荐(0)
摘要:配置ntp服务器:# vi /etc/ntp.confdriftfile /var/lib/ntp/driftrestrict -4 default kod notrap nomodifyrestrict -6 default kod notrap nomodifyrestrict 127.0.0.... 阅读全文
posted @ 2015-12-30 09:27 Endoresu 阅读(355) 评论(0) 推荐(0)
摘要:https://docs.mirantis.com/openstack/fuel/fuel-6.1/由于在测试高可用时,我是用esxi虚拟机测试,测试过程中遇到了网络问题:虚拟机间网络不通,故从网络上找到了在vSwitch中抓包的方法。1、首先先打开ESXi主机的ssh。2、ssh连接ESXi主机,... 阅读全文
posted @ 2015-12-29 16:33 Endoresu 阅读(530) 评论(0) 推荐(0)
摘要:查看fuel日志:# less /var/log/docker-logs/remote/node-1.domain.tld/puppet-apply.log2015-12-25T17:26:22.134118+00:00 debug: Waiting 600 seconds for service ... 阅读全文
posted @ 2015-12-28 18:03 Endoresu 阅读(670) 评论(0) 推荐(0)
摘要:# source demo-openrc.sh# ssh-keygenGenerating public/private rsa key pair.Enter file in which to save the key (/root/.ssh/id_rsa):Enter passphrase (em... 阅读全文
posted @ 2015-12-17 17:51 Endoresu 阅读(700) 评论(0) 推荐(0)
摘要:先简述cinder存储节点的配置: 1、IP地址是10.0.0.41; 2、主机名被设置为block1; 3、所有节点的hosts文件已添加相应条目; 4、已经配置了ntp时间同步; 5、已安装lvm2,并设置为开机自动启动; 6、已经挂载了新的存储设备/dev/sdb。在存储节点执行下列命令:pv... 阅读全文
posted @ 2015-12-17 15:50 Endoresu 阅读(489) 评论(0) 推荐(0)
摘要:在任一控制节点创建用户:mysql -u root -pCREATE DATABASE cinder;GRANT ALL PRIVILEGES ON cinder.* TO 'cinder'@'localhost' IDENTIFIED BY '123456';GRANT ALL PRIVILEGE... 阅读全文
posted @ 2015-12-17 15:07 Endoresu 阅读(480) 评论(0) 推荐(0)
摘要:cp -a /etc/neutron/neutron.conf /etc/neutron/neutron.conf.bakcp -a /etc/neutron/plugins/ml2/ml2_conf.ini /etc/neutron/plugins/ml2/ml2_conf.ini.bakmkdi... 阅读全文
posted @ 2015-12-17 14:48 Endoresu 阅读(618) 评论(0) 推荐(0)
摘要:在计算节点配置内核参数:vi /etc/sysctl.confnet.ipv4.conf.all.rp_filter=0net.ipv4.conf.default.rp_filter=0在计算节点使内核参数立即生效:sysctl -p在计算节点安装软件:yum install -y openstac... 阅读全文
posted @ 2015-12-17 14:30 Endoresu 阅读(555) 评论(0) 推荐(0)
摘要:在网络节点配置内核参数:vi /etc/sysctl.confnet.ipv4.ip_forward=1net.ipv4.conf.all.rp_filter=0net.ipv4.conf.default.rp_filter=0在网络节点使内核参数立即生效:sysctl -p在网络节点安装软件:yu... 阅读全文
posted @ 2015-12-17 11:50 Endoresu 阅读(593) 评论(0) 推荐(0)
摘要:创建neutron用户:mysql -u root -pCREATE DATABASE neutron;GRANT ALL PRIVILEGES ON neutron.* TO 'neutron'@'localhost' IDENTIFIED BY '123456';GRANT ALL PRIVIL... 阅读全文
posted @ 2015-12-17 09:39 Endoresu 阅读(532) 评论(0) 推荐(0)
摘要:编辑所有节点的/etc/hosts:10.0.0.14 controller110.0.0.12 controller210.0.0.13 controller310.0.0.10 myvip10.0.0.21 network10.0.0.31 compute110.0.0.41 block110.... 阅读全文
posted @ 2015-12-16 15:26 Endoresu 阅读(494) 评论(0) 推荐(0)
摘要:在任一节点创建nova用户:mysql -u root -pCREATE DATABASE nova;GRANT ALL PRIVILEGES ON nova.* TO 'nova'@'localhost' IDENTIFIED BY '123456';GRANT ALL PRIVILEGES ON... 阅读全文
posted @ 2015-12-16 10:09 Endoresu 阅读(534) 评论(0) 推荐(0)
摘要:在所有集群安装glance软件:yum install -y openstack-glance python-glanceclient在任一节点创建glance用户:mysql -u root -pCREATE DATABASE glance;GRANT ALL PRIVILEGES ON glan... 阅读全文
posted @ 2015-12-14 17:45 Endoresu 阅读(1044) 评论(0) 推荐(0)
摘要:在所有节点的hosts文件添加:10.0.0.10 myvip在所有节点安装# yum install -y openstack-keystone python-keystoneclient# yum install -y openstack-utils在所有节点设置keystone.conf文件使... 阅读全文
posted @ 2015-12-13 20:29 Endoresu 阅读(1040) 评论(5) 推荐(0)
摘要:配置rabbitmq集群的步骤非常简单,因为其本身含集群功能,参考openstack官网文档:http://docs.openstack.org/ha-guide/controller-ha-rabbitmq.html在所有节点安装rabbitmq:# yum install -y rabbitm... 阅读全文
posted @ 2015-12-13 19:10 Endoresu 阅读(741) 评论(0) 推荐(0)
摘要:《Cluster Concepts》http://linux-ha.org/wiki/Cluster_Concepts《Managing Computers with Automation》http://techthoughts.typepad.com/managing_computers/2007... 阅读全文
posted @ 2015-12-11 11:57 Endoresu 阅读(1669) 评论(0) 推荐(0)
摘要:https://wiki.openstack.org/wiki/Horizon/DomainWorkFlow 阅读全文
posted @ 2015-12-11 09:15 Endoresu 阅读(409) 评论(0) 推荐(0)
摘要:内容正式开始前,我已经在集群中添加了新的节点controller1(IP地址为10.0.0.14)。在所有节点上安装软件:# yum install -y mariadb-galera-server xinetd rsync在节点1初始化数据库:# systemctl start mariadb.s... 阅读全文
posted @ 2015-12-10 16:43 Endoresu 阅读(2002) 评论(0) 推荐(0)
摘要:mysqld进程在监听4567端口,进程id是2593:# ss -lnp|grep 4567tcp LISTEN 0 128 *:4567 *:* users:(("mysqld",2593,11))2593的父进程是2592:# ps -ef|grep 2593mysql 2593 2592 0... 阅读全文
posted @ 2015-12-10 11:22 Endoresu 阅读(10917) 评论(0) 推荐(0)
摘要:MariaDB: maria['mɛərɪr]Corosync: coro[kə'roʊ] sync[sɪŋk]pacemaker: [ˈpesˌmekɚ]galera: 没地方找音标[gəlera]proxy: ['prɒksɪ] 阅读全文
posted @ 2015-12-09 12:04 Endoresu 阅读(1478) 评论(0) 推荐(0)
摘要:haproxy.cfg请备份再编辑:# vi /etc/haproxy/haproxy.cfgglobal chroot /var/lib/haproxy daemon group haproxy maxconn 4000 pidfile /var/run/haproxy.pid user hapr... 阅读全文
posted @ 2015-12-09 11:06 Endoresu 阅读(3205) 评论(0) 推荐(1)
摘要:corosync.conf请备份再编辑:# vi /etc/corosync/corosync.conftotem { version: 2 token: 10000 token_retransmits_before_loss_const: 10 secauth: off rrp_mode: act... 阅读全文
posted @ 2015-12-09 10:08 Endoresu 阅读(2102) 评论(0) 推荐(0)
摘要:为了初步了解openstack controller ha的工作原理,搭建测试环境进行学习。在学习该方面知识时,当前采用的操作系统版本是centos 7.1 x64。首先在ESXi中建立2台用于测试的虚机,最小化安装完成centos,配置IP分别为10.0.0.12、10.0.0.13,主机名分别为... 阅读全文
posted @ 2015-12-08 17:13 Endoresu 阅读(3303) 评论(0) 推荐(0)
摘要:curl命令是Linux下一个可以使用多种协议收发数据的工具,包括http协议。openstack的API接口都是URL地址:http://controller:35357/v3可以使用curl命令进行调用。本文主要示例如何调用V3版本API。对于V2版本,使用keystone命令加--debug参... 阅读全文
posted @ 2015-12-04 11:00 Endoresu 阅读(9362) 评论(3) 推荐(0)
摘要:keystone的policy.json文件位于:/etc/keystone/policy.json其内容如下: 1 { 2 "admin_required": "role:admin or is_admin:1", 34 "identity:get_pr... 阅读全文
posted @ 2015-12-04 09:56 Endoresu 阅读(3984) 评论(1) 推荐(0)