顯示具有 FreeBSD 標籤的文章。 顯示所有文章
顯示具有 FreeBSD 標籤的文章。 顯示所有文章

星期二, 3月 31, 2009

[FreeBSD] interrupt storm detected on "irq9:"; throttling interrupt source

今天把一台PentiumIII 的 Server 拿來重裝 FreeBSD 7.1,結果裝好了之後卻在畫面一直出現下列的錯誤訊息:

interrupt storm detected on "irq9:"; throttling interrupt source
本來以為是 BIOS 中 irq 的設定問題,結果進 BIOS 改了設定,無效,照常出現錯誤訊息。
又重新 compile 一次 kernel ,將不必要的驅動全註解掉,重開,還是無效~~~~
不得已,又求助google 大神,結果在 http://www.uplinux.com/download/doc/bsd/Handbook/acpi-debug.html 裡發現

11.16. 使用和調試 FreeBSD ACPI

撰寫人:Nate Lawson. 協力:Peter Schultz 和 Tom Rhodes.

ACPI 是在本質上是一種發現設備、管理電源使用, 提供過去由 BIOS 管理的訪問不同硬件的標準化方法。 讓 ACPI 在各種系統上都能正確使用的工作一直在進行, 但許多主板的 ACPI 機器語言 (AML) 字節代碼中的 bug, FreeBSD 的內核中資系統設計的不完善, 以及 Intel ACPI-CA 解釋器中的 bug 仍然市場會出現。

11.16.3.2. System Hangs (temporary or permanent)

Most system hangs are a result of lost interrupts or an interrupt storm. Chipsets have a lot of problems based on how the BIOS configures interrupts before boot, correctness of the APIC (MADT) table, and routing of the System Control Interrupt (SCI).

Interrupt storms can be distinguished from lost interrupts by checking the output of vmstat -i and looking at the line that has acpi0. If the counter is increasing at more than a couple per second, you have an interrupt storm. If the system appears hung, try breaking to DDB (CTRL+ALT+ESC on console) and type show interrupts.

Your best hope when dealing with interrupt problems is to try disabling APIC support with hint.apic.0.disabled="1" in loader.conf.

把 /boot/loader.conf 叫出來,然後加上 「hint.apic.0.disabled="1"」然後重開機,嘿!又是美好的一天了~~~~




星期五, 12月 26, 2008

[TIPS] 刪除頑強的檔案

原文:http://forum.icst.org.tw/phpbb/viewtopic.php?t=16095

在資安論壇上看到這篇文章, cic5477 找到的方法還蠻有用的,值得列為技巧!

#ls -li
查出該檔案的inum編號
#find . -inum 查出的inum編號 -exec rm {} \:

星期五, 10月 31, 2008

[FreeBSD]cvsup 換成 portsnap

一直以來, ports 的更新都是利用 cvsup 或 csup 來下載更新,昨天試了 portsnap,覺得還真的蠻好用,也蠻方便的。把它的操作記錄下來。

第一次:
# portsnap fetch
# portsnap extract

之前每次更新
# portsnap fetch update (有些舊的版本,可能得分成兩行 portsnap fetch, portsnap update)


設定定時更新
0 3 * * * root portsnap -I cron update && pkg_version -vIL=

(portsnap cron 會在60分鐘內去下載更新檔)

星期日, 6月 29, 2008

FreeBSD UTF-8化

轉載 http://blog.ychsiao.org/2008/03/02/400


由於平時都用 putty 來管理 freebsd,所以有時會需要輸入中文,把設定記下來,下次才不會又找半天!!

星期五, 4月 18, 2008

[freebsd ]拒絕 ssh 探測


一直以來都是把所有的機器用tcp_wrapper 擋住外部 ip,開放內部 ip 來登入,然後開放一台機器供 外部連線,再連到其它機器,不過最近每次看到 log 檔,就覺得煩啊!


進入 /usr/ports/security,找了 *ssh* 的 port,嘿!發現有好幾個項目,看到其中一個是 sshblock,感覺可能是我要的功能,就上 google 查了一下,還真的是我想要的功能!



照著網友的說明,兩三下就裝好了,還蠻容易的,可以試試啊!


# cd /usr/ports/security/sshblock
# make
# make install
# vi /etc/rc.conf
#(加入下列指令)
# SSH Block
sshblock_enable="YES"
sshblock_flags="-t /usr/local/etc/sshblock.tragger"

# vi /usr/local/etc/sshblock.tragger
#(加入下列指令, 表示60秒內有3次嘗試登入)
60:3
# /usr/local/etc/rc.d/sshblock start


ps: 忘了提一下,不知是我的 freebsd 版本比較舊,還是 ports 有問題,在安裝 sshblock 時,一直出現無法下載 sshblock檔案的訊息(檔案大小不符)。
fetch: ftp://freebsd.nsysu.edu.tw/pub/FreeBSD/distfiles/sshblock-1.0.pl: size of remote file is not known
所以我就直接用 ftp 連線到任一大學(我選義守 ftp.isu.edu.tw)的 ftp 站,到 freebsd 的 distfiles 下載 sshblock-1.0.pl,把它複製到 /usr/ports/distfiles,然後再重新 make 一次就沒問題了。


星期五, 4月 04, 2008

FreeBSD 的一些文章


uwaterloo 這個網站提到,freebsd4.11 - freebsd 6.0 已經算是過期了,而且不再有效的支援。唉!就是要用新版啦!不過,還好bsd 不像微軟,版本一換之後,全部又得再重學一遍。


底下的連結是 uwaterloo 關於 Freebsd 的一些文章教學


http://www.freebsd.uwaterloo.ca/twiki/bin/view/Freebsd/WebHome


星期四, 12月 20, 2007

FreeBSD 內建 ftpd, ftpd.conf 參考資料


FreeBSD內建 ftpd 功能有些陽春,不過, i-CHIP好像就是用這一支 ftpd 程式。


列出一些參考網址,以便需要時可以查閱:



  1. FreeBSD Handbook: http://www.freebsd.org/doc/zh_TW.Big5/books/handbook/network-ftp.html

  2. FreeBSD Man Pages







星期六, 12月 08, 2007

轉載:FreeBSD 使用 BASH 中文輸入設定


Pank's Blog 看到,把它記下來,下次才不會又得再找一次


FreeBSD 使用 BASH 中文輸入設定


在 ~/.inputrc 檔增加設定如下:
# inputrc - global inputrc for libreadline
# See readline(3readline) and `info rluserman' for more information.
# Be 8 bit clean.
set meta-flag on
set input-meta on
set output-meta on
# To allow the use of 8bit-characters like the german umlauts, comment out
# the line below. However this makes the meta key not work as a meta key,
# which is annoying to those which don't need to type in 8-bit characters.
set convert-meta off