1. 进入mysql环境mysql -u root -p2. 列出所有databaseshow databases;3. 开始使用某个databaseuse nova;4. 列出所有tableshow tables;5. 列出某个table的所有字段desc instances;
分类:
数据库 时间:
2015-05-08 21:43:57
阅读次数:
181
参考官方文档 : MongoDB Backup Methods
原本使用操作系统的快照进行备份还原,备份成功后,还原没有成功(参考:Backup and Restore with Filesystem Snapshots)
所以这个方法就先不记录到这里了。
当前测试以下?种备份还原方法(个人初学理解):
1. 使用拷贝和替换数据库文件进行备份还原
2. 使用mongodu...
分类:
数据库 时间:
2015-05-07 00:53:21
阅读次数:
551
引言运维的同事常常遇到这么四个问题:
- Nova 是如何统计 OpenStack 计算资源的?
- 为什么 free_ram_mb, free_disk_gb 会是负数?
- 即使 free_ram_mb, free_disk_gb 为负数,为什么虚拟机依旧能创建成功?
- 因资源不足采用随机调度的方式会导致创建虚拟机失败,而指定 host 却能创建成功?本文将从以上四个问题入手...
分类:
其他好文 时间:
2015-05-01 22:38:04
阅读次数:
178
1、登陆用户 :tdy(前提条件创建了tdy用户)编写登陆用户tdy用户 脚本文件 user-operc.shuser-operc.sh : 登陆用户tdy:$ source user-operc.sh输入命令:nova list 出现下面内容,说名登陆用户成功了!否则登陆脚本文件存在错误!2、o....
分类:
其他好文 时间:
2015-04-30 19:35:04
阅读次数:
749
Block Storage (cinder)8776publicurl and adminurlCompute API (nova-api)8773EC2 API 8774openstack API 8775metadata port 3333accessing S3 APICompute p...
分类:
其他好文 时间:
2015-04-28 11:31:03
阅读次数:
168
记录,方便查阅。配置controller节点的配置数据库建立:mysql -p123456 -e "CREATE DATABASE nova;GRANT ALL PRIVILEGES ON nova.* TO 'nova'@'192.168.23.11' IDENTIFIED BY 'nova';G...
分类:
其他好文 时间:
2015-04-19 14:33:50
阅读次数:
529
#-*-encoding:utf-8-*-
#
#Copyright2012RedHat,Inc
#
#Author:EoghanGlynn<eglynn@redhat.com>
#
#LicensedundertheApacheLicense,Version2.0(the"License");youmay
#notusethisfileexceptincompliancewiththeLicense.Youmayobtain
#acopyoftheLicenseat
#
#http://www...
分类:
Web程序 时间:
2015-04-17 15:58:19
阅读次数:
200
用三角形面积什么的算算点到直线的距离之类……其实相切的情况是可行的……剩下的就跟某SDOI2015一样了。#include#include#include#include#includeusing namespace std;#define N 201#define EPS 0.000001#def...
分类:
Web程序 时间:
2015-04-16 23:22:20
阅读次数:
200
翻译自:http://www.pixelbeat.org/docs/openstack_libvirt_images/The main stages of a Virtual Machine disk image as it transfers through OpenStack to be boo...
分类:
其他好文 时间:
2015-04-15 09:27:14
阅读次数:
177
在上一章中, 通过跟踪nova boot命令, 已经完成了Instance创建参数的解析及身份认证的过程。这一章中继续完成CLI部分的代码跟踪,看看RESTful的请求是如何发出去的。如果阅读过上一章的内容,就可知道nova boot所对应的最终的执行函数是do_boot。这段代码不长,内容也很简单,具体看注释。do_bootdef do_boot(cs, args):
"""Boot a...
分类:
其他好文 时间:
2015-04-14 16:51:50
阅读次数:
839