- 博客(9)
- 资源 (1)
- 收藏
- 关注
转载 Linux内存中的Cache真的能被回收吗?
在Linux系统中,我们经常用free命令来查看系统内存的使用状态。在一个RHEL6的系统上,free命令的显示内容大概是这样一个状态:[root@tencent64 ~]# free total used free shared buffers cachedMem: 132256952 72571772
2016-04-27 14:50:30 9515 3
原创 Mongodb 3.2.1检查表是否为capped
最近一个监控业务的mongdb,数据量猛增,磁盘吃紧,本来应该都是capped表,不应该空间增长这么快,进去看了一下,是很多新建的表不是capped,但是又由于表很多,在mongdb命令行实在看的眼花,写个脚本查看是否capped。举个例子:先取出表检查语句:$mongo 127.0.0.1:8888/skymobiMongoDB shell version: 3.2.
2016-04-26 10:46:57 623
原创 Postgresql 使用pg_upgrade升级(9.4.4~9.5.2)
建立新版本数据库目录并修改目录owner#mkdir -p /opt/pgsql9.5.2#mkdir -p /opt/pgdata9.5.2/pg_root#chown -R postgres:postgres /opt/pgsql9.5.2#chown -R postgres:postgres /opt/pgdata9.5.2/pg_root/
2016-04-26 10:45:38 2798
原创 Postgresql Automatic Vacuuming
VACUUM是PG日常回收磁盘空间的一个手段,通过参数设置,触发做vacuum回收磁盘空间相关参数:#autovacuum_work_mem = -1 # 最小1MB,如果是-1,那么使用maintenance_work_mem设置的值vacuum_cost_delay = 10 # 0-
2016-04-26 10:40:14 845
原创 Postgresql FATAL: could not create semaphores: No space left on device
今天做恢复的时候,数据库做完恢复后,无法启动报错FATAL: could not create semaphores: No space left on deviceDETAIL: Failed system call was semget(xxxxxxxxxx).HINT: This error does *not* mean that you have
2016-04-05 13:46:36 3318
原创 Postgresql 系统相关函数介绍
Postgresql xlog 先看下pg_xlog下物理文件的命名,大小在数据库编译安装的时候-with-wal-segsize指定000000010000000200000019XLogFileName宏里定义的,分别由时间线ID、日志ID、段ID的八位16进制数依次构成日志ID最大为0xFFFFFFFFF,段ID最大为0x000000F相关
2016-04-05 13:45:31 2351
原创 Postgresql 启动报错 FATAL: could not map anonymous shared memory
FATAL: could not map anonymous shared memory: Cannot allocate memory HINT: This error usually means that PostgreSQL’s request for a shared memory segment exceeded available memory, swap space, or hu
2016-04-05 13:41:31 7473 3
原创 Postgresql 开启huge pages
CentOS release 6.7 (Final)Postgresql 9.4.4修改postgresql.conf参数 huge_pages = on 默认是try修改grub引导配置文件grub.conf 添加numa=offtransparent_hugepage=never或者在/etc/rc.local加入echo n
2016-04-05 11:51:31 1416
原创 MegaCli 常用命令
1.显示Rebuid进度 MegaCli -PDRbld -ShowProg -physdrv[20:2] -aALL2.查看E S MegaCli -PDList -aAll -NoLog | grep -Ei "(enclosure|slot)"3.查看所有硬盘的状 MegaCli -PDList -aAll -NoLog 4.查看所有Virtual Disk的状态 Mega...
2016-04-05 11:49:54 2032
GREENPLUM管理向导
2018-04-28
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人