今天报表数据库的备库出现了问题,由于监控脚本出现了问题,主机空间耗尽 而没有及时发出邮件,导致归档无法进行,DB停滞在一个时间点,同时在主库 由于只保留了2天的归档 导致这部分归档没有传输至备库,等我们发现问题时,主库已经删除了归档,备库接近8天gap无法恢复。由于主库超过3个T ,重新用备份恢复一个standby 时间上是不允许的,并且主库上也没有空间存放这么大的备份集,于是采取了增量备份的方法,跳过了这个GAP。下面记录这次恢复过程
查看备库日志发现:
Tue Mar 13 02:45:00 2012
ARC1: Closing local archive d[……]
Read more
What is virtual server?
Virtual server is a highly scalable and highly available server built on a cluster of real servers. The architecture of server cluster is fully transparent to end users, and the users interact with the cluster system as if it were only a single high-performance virtual serve[……]
Read more
就像一个人被绑在橡树上,有时候,思维也会被某个假定、信念和观点所束缚。但就像那颗无辜的橡树,观点并不应被责怪。它是被动的,它的对错只看被如何运用。而理应被质问的是锁链,是人们利用某个观点的动机。无数的观点产生了无数的思维,这些思维被用来从各种角度思考问题。任何将思维限制在一个角度的行为都是错误的。然而家庭、学校、社团等群体却期望他们的成员接受观念,不要怀疑。这样虽然没有对这些成员带来坏处,但是也没有给这些成员带来自由思考的机会。
就像一种新桌游的规则,我们单纯被动地去接受,因为我们的目的是学会,然后遵守。传统的教育总是教我们去临摹、去记忆,去运用别人的理论。除了让我们在一生中做出这些缺少[……]
Read more
drbd+heartbeat+mysql slave 方案
测试机器IP:public
10.2.0.181 — drbd+heartbeat
10.2.0.182 — drbd+heartbeat
10.2.0.183 — mysql slave
10.2.0.184 — mysql slave
private:
192.168.0.181 –db-181
192.168.0.182 –db-182
[root@db-181 ~]# cat /etc/hosts
# Do not remove the following l[……]
Read more
Teradata 与 Exadata 的一些对比说明,由于是TD出来的文档 所以有一些片面之词
[……]
Read more
最近跟同事测试了下MHA 作为mysql 高可用方案的一种 MHA具有很多优点 DeNA目前采用这种架构 支撑2亿+PV的访问
MHA
一.MHA介绍
MHA自动化主服务器故障转移,快速将从服务器晋级为主服务器(通常在10-30s),而不影响复制的一致性,不需要花钱买更多的新服务器,不会有性能损耗,容易安装,不必更改现有的部署环境,适用于任何存储引擎。
MHA提供在线主服务器切换,改变先正运行的主服务器到另外一台上,这个过程只需0.5-2s的时间,这个时间内数据无法写入。
MHA Manager通过ssh连接mysql slave服务器。
虽然MHA试图从挡掉[……]
Read more
Execution Environment:
Access Privileges:
Requires to be run connected as SYS schema
Usage:
$ sqlplus
SQL*Plus: Release 9.2.0.2.0 – Production on Mon Nov 11 12:00:06 2002
Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
Enter user-name: / as sysdba
C[……]
Read more
ASM Preferred mirror Read
Introduction
The concept of the Preferred Read is not a new idea, but is now implemented in Oracle’s ASM volume
management in Oracle 11g.The concept is to read from the storage that can present the needed data at a lower
latency. Initially, this was designe[……]
Read more