由于网络更换ip段,导致ceph启动时monitor进程无法启动,解决了这个问题后,ceph能够启动,但一块osd盘坏掉了,错误日志如下: 2014-12-24 10:53:30.353262 7f3fbbd78800 0 ceph version 0.87 (c51c8f9d80fa4e01...
分类:
其他好文 时间:
2014-12-24 13:35:48
阅读次数:
793
pg_restore -C -d postgres db.dump
分类:
其他好文 时间:
2014-12-24 09:57:55
阅读次数:
211
First ,Write Database Backup Script:pg_dump -Fc yourdatabasename > /home/yourfilepath/yourdatabasename$(data+%Y-%m-%d).dumpSave it as a file name dump...
分类:
数据库 时间:
2014-12-22 10:41:13
阅读次数:
192
1、安装前准备,需要安装如下工具:perl、 libdbi-perl、 libdbd-mysql-perl、 libdbd-pg-perl、 libfrontier-rpc-perl、 libterm-readline-gnu-perl、 libberkeleydb-perl、flex、bison、...
分类:
系统相关 时间:
2014-12-21 23:30:41
阅读次数:
476
pg_hba.conf是客户端认证配置文件METHOD指定如何处理客户端的认证。常用的有ident,md5,password,trust,reject。PostgreSQL默认只监听本地端口,用netstat -tuln只会看到“tcp 127.0.0.1:5432 LISTEN”。修改postgr...
分类:
数据库 时间:
2014-12-21 15:10:30
阅读次数:
204
在用Python操作GPDB的时候遇到报错如下
gpmg.manager_tabl1e
error 'ERROR: relation "gpmg.manager_tabl1e" does not exist
' in 'select pg_total_relation_size('gpmg.manager_tabl1e');'
gpmg.manager_table
error 'ERROR: ...
分类:
数据库 时间:
2014-12-18 18:57:54
阅读次数:
227
1、当前状态
2、在172.10.2.172(node2)再添加一个mon(mon.node2)
ssh node2
vim /etc/ceph/ceph.conf 添加mon.node2的相关配置
ceph-authtool /tmp/ceph.mon.keyring --import-keyring /etc/ceph/ceph.cl...
分类:
其他好文 时间:
2014-12-17 18:33:10
阅读次数:
536
/Library/PostgreSQL/9.3/bin/pg_ctl -D /Library/PostgreSQL/9.3/data stop/Library/PostgreSQL/9.3/bin/pg_ctl -D /Library/PostgreSQL/9.3/data start
分类:
数据库 时间:
2014-12-17 18:09:42
阅读次数:
779
在数据库日渐庞大的时候,为了方便对数据库数据的管理,比如按时间,按地区去统计一些数据时,基数过于庞大,多有不便。很多商业数据库都提供分区的概念,按不同的维度去存放数据,便于后期的管理,PG也不例外。下...
分类:
数据库 时间:
2014-12-17 13:11:47
阅读次数:
216
3.1 基本条形图library(ggplot2)library(gcookbook)pg_mean #这是用到的数据 group weight 1 ctrl 5.032 2 trt1 4.661 3 trt2 5.526ggplot(pg_mean, aes(x=group, ...
分类:
其他好文 时间:
2014-12-16 16:59:20
阅读次数:
413