FreeBSD

共691篇文章。

HOWTO: upgrade OpenLDAP from a major release to another

• SysAdmin

Just for reference for future upgrades.

Today I managed to upgrade from OpenLDAP 2.2.29 to OpenLDAP 2.3.11. This is a large upgrade, so all and foremost thing is to backup. Additionally, to keep downtime as less as possible, build these stuff first!

On FreeBSD, the recommended way of installing third party software is to use ports(7). Note that OpenLDAP is separated into two ports, openldap2X-server and openldap2X-client, and building the server requires the client library, therefore, you can not easily do build on the production server (and this SHOULD be avoided anyway).

A solution is to use a separated box (or jail for smaller deployments), to build packages and use pkg_add to install them.

阅读全文… ( 本文约445字,阅读大致需要3分钟 )

11月的最后一天

• Life

离这个Q结束还有1个月,来总结一下:

工作:

  • 基本完成了内部版本的FreeBSD 6.0-RELEASE,并已开始用于生产服务器
  • 替换了公司的一组基于qmail的转发服务器,采用FreeBSD 6.0和postfix
  • 实现了一个验证服务
  • 设计并实现了一组全新的反垃圾策略,有效地将垃圾邮件的数量降低了若干量级,并且用户无不良反映(最开始出现过一次问题,但并不是策略本身的问题)
  • 设计了一组新的用户行为分析系统,并实现了其初级部分。该系统将进一步提高邮件系统的可用性
  • 追和扑灭了邮件系统中的一批中等和严重程度的隐患
  • 1314同学撤退后客串跑了若干次机房扑火
  • 赶猪,逮老鼠,上大包……(暗语,内部人员偷着乐就行了,不要泄露国家机密;)
    (不过李逵却说……算了还是不说了)

开源软件方面的掺和:

  • 为FreeBSD 6.0-RELEASE的发布进行了一些工作,总体而言得到了认可
  • 翻译完了FreeBSD Architecture Handbook的SMP章节
阅读全文… ( 本文约616字,阅读大致需要2分钟 )

笔记:大型ICP如何将qmail替换为postfix

• Cheatsheets

假定你使用的是FreeBSD

  1. 在测试服务器上测试postfix配置文件,确认其能够与qmail提供同样的服务。
  2. 执行svc -d /services/qmail-smtpd,停止进信。
  3. 执行qmailctl flush,下发所有邮件,等待队列空。
阅读全文… ( 本文约1389字,阅读大致需要3分钟 )

历史上最成功的RELEASE

• Kernel

昨天Scott Long老大发了一封信说,从过去一个月内的反馈来看,6.0-RELEASE是FreeBSD近几年最为成功的发行版本,同时,也是FreeBSD历史上最为成功的.0发行版本。

阅读全文… ( 本文约124字,阅读大致需要1分钟 )

成功地在公司消灭了第一组qmail服务器

• SysAdmin

感恩节那天,正式完全彻底地消灭了第一组公司的qmail服务器,并全线替换为FreeBSD 6.0+postfix。这是公司邮件服务的一大进步。

再也没有恶心的代码,拥堵的队列,缓冲区溢出、各式各样的hack、裹尸布一样的千层补丁,再也没有signal 11和大批大批的垃圾邮件了!!!

阅读全文… ( 本文约148字,阅读大致需要1分钟 )

Bogous F5 after they migrated to Linux

• Networking

The F5 gateway has became incredibly errornous after they migrated from FreeBSD to Linux, so I call this a bad move.

In the Good Old Time(TM), they run FreeBSD on their boxes, and I have never encounted a single problem when doing everyday work. After they migrate to Linux, they start to inject error packets into your connection and therefore, SSH is broken. This is critical for development, IMHO, and prevented us from being able to work.

阅读全文… ( 本文约91字,阅读大致需要1分钟 )

*BSD queue.h

• Kernel

Derived from the ancient BSD Unix, *BSD has a set of queue related macros which are described in queue(3), and implemented in src/sys/sys/queue.h. These are primarily used in the kernel, but also useful for userland applications.

阅读全文… ( 本文约100字,阅读大致需要1分钟 )