這是血淚的經驗累積.... 按這這樣做比較不會開不起來
有機會再詳述 什樣的情形會 dd 失敗
不過我現在都是改用 CloneZilla 了..
先假設你的 source 放在 sda, 其他要 dd 的放在 sdb,sdc,sdd.....
建議用 Ubuntu 這是最安全的方法 要不然就是 CentOS Rescuse 但你不可以使用 chroot mode
a. 直接 dd 整顆
dd if=/dev/sda of=/dev/sdb bs=10M &
dd if=/dev/sda
這種方法 不用 grub-install
b. 只 dd /dev/sda1
先把 sdb, sdc, sdd 等先 fdisk 成 sda 一樣的 partitions table
I. dd if=/dev/sda1 of=/dev/sdb1 bs=10M &
dd if=/dev/sda1 of=/dev/sdc1 bs=10M &
dd if=/dev/sda1 of=/dev/sdd1 bs=10M &
II. 建 SWAP (CentOS 的 SWAP lable 應該是 SWAP-sda2)
mkswap -L SWAP-sda2 /dev/sdb2
mkswap -L SWAP-sda2 /dev/sdc2
mkswap -L SWAP-sda2 /dev/sdd2
III. 建 Home
mk.ext3 -L /home /dev/sdb3
mk.ext3 -L /home /dev/sdc3
mk.ext3 -L /home /dev/sdd3
IV. grub-install
我通常是把 dd 好的接到第1顆(如果是 CentOS 開機片開機的 一樣要接)
grub-install /dev/sda
Sunday, June 28, 2009
[CentOS4]Flash9 Install
我想還是有些人還是需要在 CentOS 使用 Flash
目前 Flash 最新為 v10, 但 v10 需要 glibc 2.4 以上
由於 CentOS4 glibc 為 2.3.4 所以不支援
所以我們就裝 Flash 9 吧
1. 請去找 flash9 最後一個版本為 flash-plugin-9.0.48.0-release.i386.rpm
這個 link 有點難找 Adobe 都說 不支援了 不過我幫大家找好了
http://fpdownload.macromedia.com/get/flashplayer/current/flash-plugin-9.0.48.0-release.i386.rpm
安裝 Flash9 需要 nspluginwrapper 支援 請抓 plugins 和 viewer
請至 http://gwenole.beauchesne.info/en/projects/nspluginwrapper#downloads 下載
所以安裝方法如下
rpm -ivh flash-plugin-9.0.48.0-release.i386.rpm
nspluginwrapper-1.2.2-1.x86_64.rpm nspluginwrapper-i386-1.2.2-1.x86_64.rpm
目前 Flash 最新為 v10, 但 v10 需要 glibc 2.4 以上
由於 CentOS4 glibc 為 2.3.4 所以不支援
所以我們就裝 Flash 9 吧
1. 請去找 flash9 最後一個版本為 flash-plugin-9.0.48.0-release.i386.rpm
這個 link 有點難找 Adobe 都說 不支援了 不過我幫大家找好了
http://fpdownload.macromedia.com/get/flashplayer/current/flash-plugin-9.0.48.0-release.i386.rpm
安裝 Flash9 需要 nspluginwrapper 支援 請抓 plugins 和 viewer
請至 http://gwenole.beauchesne.info/en/projects/nspluginwrapper#downloads 下載
所以安裝方法如下
rpm -ivh flash-plugin-9.0.48.0-release.i386.rpm
nspluginwrapper-1.2.2-1.x86_64.rpm nspluginwrapper-i386-1.2.2-1.x86_64.rpm
Monday, April 13, 2009
linux high performance kernel for Intel
優化 Kernel 個人覺得很重要
雖然有現成的 CentOS 的 kernel rpm 可以用
但還是不太符合目前的環境 所以要自己動手了
我的目標是編出一個高效的 kernel
目前已知 LinuxDNA 在做這件事
但只有 Intel, For AMD 本人在找
LinxDNA http://www.linuxdna.com/
http://www.linuxjournal.com/content/linuxdna-supercharges-linux-intel-cc-compiler
雖然有現成的 CentOS 的 kernel rpm 可以用
但還是不太符合目前的環境 所以要自己動手了
我的目標是編出一個高效的 kernel
目前已知 LinuxDNA 在做這件事
但只有 Intel, For AMD 本人在找
LinxDNA http://www.linuxdna.com/
http://www.linuxjournal.com/content/linuxdna-supercharges-linux-intel-cc-compiler
Wednesday, April 08, 2009
亂找 優化超大記憶體的 Server
目前要優化 Server 效能
CPU 4*2 , Memory 64Gb
一個 job 可能大到數十 Gb
目前用了這一些關鍵字在找
linux large scale
linux 64G memory sysctl.conf
nr_hugepages 64bit
nr_hugepages 64G
enterprise linux performance tuning -- 這個關鍵字不錯喔 2009/04/13
make linux high performance kernel -- 2009/04/13
CPU 4*2 , Memory 64Gb
一個 job 可能大到數十 Gb
目前用了這一些關鍵字在找
linux large scale
linux 64G memory sysctl.conf
nr_hugepages 64bit
nr_hugepages 64G
enterprise linux performance tuning -- 這個關鍵字不錯喔 2009/04/13
make linux high performance kernel -- 2009/04/13
Monday, April 06, 2009
gmail 新增的 task list 功能很不錯喔 - 可以提醒自己忘了甚麼事
常忘記甚麼事嗎?偏偏又常常忘記在行事曆新增工作呢?
Gmail 有個很棒的功能就是把 Email 變成 Task
只要你有甚麼事情怕忘記 就把他勾起來變成 Task
這樣他就會一直顯示在 gmail 右下角提醒你
如果你是常忘記繳信用卡的小迷糊(好像是我啦) 這個東東就可以提醒你嚕
來設定吧!
目前因為還在測試 所以只支援英文版
所以先到 Gmail 的設定將改為 English(US)
然後再點右上角 Settings 左邊的綠色小瓶子, 點選就可以進入 Labs
找到 Tasks 選右邊 Enable (目前是第一個) Save Changes 即可。
Gmail 有個很棒的功能就是把 Email 變成 Task
只要你有甚麼事情怕忘記 就把他勾起來變成 Task
這樣他就會一直顯示在 gmail 右下角提醒你
如果你是常忘記繳信用卡的小迷糊(好像是我啦) 這個東東就可以提醒你嚕
來設定吧!
目前因為還在測試 所以只支援英文版
所以先到 Gmail 的設定將改為 English(US)
然後再點右上角 Settings 左邊的綠色小瓶子, 點選就可以進入 Labs
找到 Tasks 選右邊 Enable (目前是第一個) Save Changes 即可。
Friday, March 20, 2009
How to userspace l7 filter on Ubuntu
How to userspace l7 filter on Ubuntu
http://kuscsik.blogspot.com/2008/02/how-to-userspace-l7-filter-on-ubuntu.html
測試中~~~
http://kuscsik.blogspot.com/2008/02/how-to-userspace-l7-filter-on-ubuntu.html
測試中~~~
build squid3 on Ubuntu
apt-get update
apt-get install devscripts build-essential
apt-get source squid3
apt-get build-dep squid3
cd squid3-"version"
nano debian/rules # or whatever editor you use
add the --enable-icap-client line among the other --enable-blah- lines
debuild -us -uc
cd ..
dpkg -i your_built_package.deb
apt-get install devscripts build-essential
apt-get source squid3
apt-get build-dep squid3
cd squid3-"version"
nano debian/rules # or whatever editor you use
add the --enable-icap-client line among the other --enable-blah- lines
debuild -us -uc
cd ..
dpkg -i your_built_package.deb
Thursday, March 19, 2009
Ubuntu mirror.list - good example
個人覺得這樣寫比較好啦
deb-i386 就只抓 i386 這樣比較節省空間
我們公司兩者都有 所以兩者都寫
############# config ##################
#
#set base_path /var/spool/apt-mirror
set base_path /home/apt-mirror
#
# if you change the base path you must create the directories below with write privlages
#
# set mirror_path $base_path/mirror
# set skel_path $base_path/skel
# set var_path $base_path/var
# set cleanscript $var_path/clean.sh
# set defaultarch
set nthreads 2
set _tilde 0
#
############# end config ##############
# Ubuntu 8.04 "Hardy" amd64
deb-amd64 http://tw.archive.ubuntu.com/ubuntu hardy main restricted universe multiverse
deb-amd64 http://tw.archive.ubuntu.com/ubuntu hardy-updates main restricted universe multiverse
deb-amd64 http://tw.archive.ubuntu.com/ubuntu hardy-security main restricted universe multiverse
# Ubuntu 8.04 "Hardy" i386
deb-i386 http://tw.archive.ubuntu.com/ubuntu hardy main restricted universe multiverse
deb-i386 http://tw.archive.ubuntu.com/ubuntu hardy-updates main restricted universe multiverse
deb-i386 http://tw.archive.ubuntu.com/ubuntu hardy-security main restricted universe multiverse
clean http://tw.archive.ubuntu.com/ubuntu
deb-i386 就只抓 i386 這樣比較節省空間
我們公司兩者都有 所以兩者都寫
############# config ##################
#
#set base_path /var/spool/apt-mirror
set base_path /home/apt-mirror
#
# if you change the base path you must create the directories below with write privlages
#
# set mirror_path $base_path/mirror
# set skel_path $base_path/skel
# set var_path $base_path/var
# set cleanscript $var_path/clean.sh
# set defaultarch
set nthreads 2
set _tilde 0
#
############# end config ##############
# Ubuntu 8.04 "Hardy" amd64
deb-amd64 http://tw.archive.ubuntu.com/ubuntu hardy main restricted universe multiverse
deb-amd64 http://tw.archive.ubuntu.com/ubuntu hardy-updates main restricted universe multiverse
deb-amd64 http://tw.archive.ubuntu.com/ubuntu hardy-security main restricted universe multiverse
# Ubuntu 8.04 "Hardy" i386
deb-i386 http://tw.archive.ubuntu.com/ubuntu hardy main restricted universe multiverse
deb-i386 http://tw.archive.ubuntu.com/ubuntu hardy-updates main restricted universe multiverse
deb-i386 http://tw.archive.ubuntu.com/ubuntu hardy-security main restricted universe multiverse
clean http://tw.archive.ubuntu.com/ubuntu
Subscribe to:
Comments (Atom)
