Archive for category Linux杂记

readonly issue on disk

We have one server became readonly after update DMX.

Error logs:
Buffer I/O error on device dm-1, logical block 1545
lost page write due to I/O error on dm-1
ext3_abort called.
EXT3-fs error (device dm-1): ext3_journal_start_sb: Detected aborted journal
Remounting filesystem read-only
qla2xxx 0000:0d:00.0: scsi(0:0:0): Abort command issued — 1 11299f0 2002.
qla2xxx 0000:0d:00.1: scsi(1:0:0): Abort command issued — 1 113a04c 2002.
……
qla2xxx 0000:0d:00.0: Unable to read SFP data (102/a0/0).
process `sysctl’ is using deprecated sysctl (syscall) net.ipv6.neigh.eth3.base_reachable_time; Use net.ipv6.neigh.eth3.base_reachable_time_ms instead.
ext3_abort called.
EXT3-fs error (device dm-1): ext3_remount: Abort forced by user
ext3_abort called.

mount -o remount,rw /apps
mount: block device /dev/mapper/xxxx is write-protected, mounting read-only

Solution: reboot the server, all fixed :(

No Comments

rpmlib(FileDigests) <= 4.6.0-1 is needed

Maybe u met this problem when install PGSQL on CentOS 5.3
rpmlib(FileDigests) <= 4.6.0-1 is needed by pgdg-centos-8.5-1.noarch
we check the pgsql rpm release version
pgdg-centos-8.5-1.noarch [4 KiB] Changelog by Devrim GUNDUZ (2009-08-26):
pgdg-centos-8.4-1.noarch [4 KiB] Changelog by Devrim GUNDUZ (2008-09-03):
as far as we got, 8.5 is packaged recently, so the rpm-libs maybe very new.

to resolve this problem:

two option:
1. upgrade your system (rpm package)
as I searched, rpm 4.7.1 include rpmlib(FileDigests) <= 4.6.0-1

http://rpmfind.net//linux/RPM/fedora/devel/i386/rpm-libs-4.7.1-6.fc12.i686.html

2. install 8.4
rpm -Uvh http://yum.pgsqlrpms.org/reporpms/8.4/pgdg-centos-8.4-1.noarch.rpm

btw: why the package in CentOS keep so old. coooool.
OpenSUSE/Debian/Ubuntu is better in new packages

1 Comment

Issue_Tracker Project(most in php)

I was looking for some issue tracker written in Php, there is jira (java) works well , but we want to install on Cpanel, so we need some project written in php. here is what i found, maybe can help you, if u have any other good projects, plz comment my post. tks.

Issue-Tracker

http://freshmeat.net/projects/issue-tracker

no project, and in php
admin/demo

http://www.issuetrackerproduct.com/

use Zope, and in Python, no Project

http://demo.issuetrackerproduct.com/

Work Tracker
Work Tracker is a work tracking system written in PHP. This project is a fork of the Sourceforge Issue-Tracker project. While Issue-Tracker focuses mostly on tracking issues, Work Tracker tracks general work tasks.
it modify the name Issue-Tracker to Work Tracker

Sit!

http://demo.sitracker.org/main.php

ProjectHQ
is written in Python

http://demo.projecthq.org

Guest account:
guest@projecthq.org / guest
Admin account:
admin@projecthq.org / administrator

Enterprise CRM and Groupware System
died almost

SugarCRM
not good at project control, and user permission

IT Project Guide

http://itprojectguide.org/PMBase/demo/

demo/demo

Gforge

http://gforgegroup.com/

use Postgresql , Php and Apache

,

No Comments

这周写了个关于openvz的东东呵呵

我的系统是fedora8

关于openvz的安装:

1.第一步我们为了要安装openvz呢,我们需要把openvz的数据库添加到yum中:

cd /etc/yum.repos.d

wget http://download.openvz.org/openvz.repo

rpm –import http://download.openvz.org/RPM-GPG-Key-OpenVZ

2.在安装时要选择适合你的数据库:

yum search ovzkernel
Read the rest of this entry »

1 Comment

Linux技巧

Q:如何禁用 gnome 的 最近的文档
A:
$rm .recently-used.xbel
$mkdir .recently-used.xbel

Q:安装gd-2.0.35出错
gd-2.0.35]# make
cd . && /bin/sh /root/gd-2.0.35/config/missing –run aclocal-1.9 -I config
aclocal:configure.ac:64: warning: macro `AM_ICONV’ not found in library
cd . && /bin/sh /root/gd-2.0.35/config/missing –run automake-1.9 –foreign
cd . && /bin/sh /root/gd-2.0.35/config/missing –run autoconf
configure.ac:64: error: possibly undefined macro: AM_ICONV
If this token and others are legitimate, please use m4_pattern_allow.
See the Autoconf documentation.
make: *** [configure] Error 1
A: yum install -y fontconfig && yum install -y gettext-devel

No Comments

CMake 使用方法

今天做实验的时候,用Cmake,它需要搜索一些库。因为语法不通,所以导致一些库找不到,先进行一下扫盲吧,呵呵

用set (PHPTHRIFT_ROOT /opt/thrift/php/src)就找到了。

以下内容来自网络:

CMake是一个跨平台的安装(编译)工具,可以用简单的语句来描述所有平台的安装(编译过程)。他能够输出各种各样的makefile或者project文件,能测试编译器所支持的C 特性,类似UNIX下的automake。 Read the rest of this entry »

No Comments

关于>&2、2>&1等重定向

在POSIX shell中,命令的结果可以通过%>的形式来定义(其中%表示文件描述符:1为标准输出stdout、2为标准错误stderr)!系统默认% 值是1,也就是1>,而1>可以简写为>,也就是默认为>。而stdout的默认目标是终端。 stderr的默认目标我也是终端,比如:
#aaa
sh: aaa: not found.
错误信息显示在终端上。 Read the rest of this entry »

No Comments

几个小问题

1. edyliu-laptop:~$ sudo modprobe vfat
WARNING: Error inserting fat (/lib/modules/2.6.27-7-generic/kernel/fs/fat/fat.ko): Cannot allocate memory
FATAL: Error inserting vfat (/lib/modules/2.6.27-7-generic/kernel/fs/vfat/vfat.ko): Cannot allocate memory

内存不足,呵呵
可是挂载分区的时候,它提示说内核没有vfat.
free了一些内存,重新来过。一切顺利!

2. vmware server linux版 对于个人来说, 有点烦人。 总是自动启动, 一生气把它干掉了。

3. source insight 的 linux 版,看源代码不错的工具

sourcenav http://sourcenav.sourceforge.net/index.html

4. 读点MySQL的东西,Internal 还是代码。。。。。我接着看

No Comments

SPEC 文件分析(ZT)

详细的介绍了 spec文件的书写规则以及关键部分

spec文件规范
RPM软件包是怎样制作的呢?对大多数Linux开发工程师来说是比较陌生的。

其实,制作RPM软件包并不是一件复杂的工作,其中的关键在于编写SPEC软件包描述文件。要想制作一个rpm软件包就必须写一个软件包描述文件(SPEC)。这个文件中包含了软件包的诸多信息,如软件包的名字、版本、类别、说明摘要、创建时要执行什么指令、安装时要执行什么操作、以及软件包所要包含的文件列表等等。

Read the rest of this entry »

No Comments

Mail服务器RBL反垃圾邮件

最近邮件服务器经常队列中堆满垃圾邮件。

添加了一个RBL,希望能好一点。
smtpd_client_restrictions = reject_rbl_client cblless.anti-spam.org.cn, reject_rbl_client dnsbl.sorbs.net

maps_rbl_domains = bl.spamcop.net
smtpd_recipient_restrictions = ….
reject_maps_rbl,permit

参考链接:

http://www.postfix.org/uce.html

http://anti-spam.org.cn

http://jimsun.linxnet.com/misc/postfix-anti-UCE.txt

http://www.us.sorbs.net/

收工吃饭。

No Comments