= 2010-09-03 = == Lustre == * 兩個我常用在管理 lustre 的 .bash_aliases 函數 {{{ function check_lustre { dsh -a "mount -t lustre -l" | grep biofs-OST | awk '{ print $7 }' | sort -n | nl sudo lctl dl | grep osc } function disable_lustre { if [ "$1" == "" ]; then echo "disable_lustre "; return 0; fi for i in `sudo lctl dl | grep osc | grep "$1" | awk '{ print $1 }'` do echo "lctl --device $i deactivate" sudo lctl --device $i deactivate done sudo dsh -a lctl dl | grep osc | grep "$1" } }}} == munin == * 先前裝 munin 都還蠻方便的,可是最近在 debian testing 上測試,就一直出現 permission denied。今天終於知道原因了,因為新版的 munin 是產生在 /var/cache/munin/www 而非 /var/www/munin,此外在 apache 設定上預設也限制只能從 127.0.0.1 才能看。所以得把那行換掉。 {{{ #!diff --- munin.org 2010-09-03 19:03:17.000000000 +0800 +++ munin 2010-09-03 19:03:05.000000000 +0800 @@ -1,7 +1,8 @@ Alias /munin /var/cache/munin/www Order allow,deny - Allow from localhost 127.0.0.0/8 ::1 +# Allow from localhost 127.0.0.0/8 ::1 + Allow from all Options None }}} == netboot.me == * 使用 netbootme.iso 啟動 Clonezilla Live CD * First, I boot my VirtualBox VM from netbootme.iso and press any key to see the options * [[Image(jazz/10-09-03:0_netboot-any-key.png)]] * Second, select "boot a config directory directly" * [[Image(jazz/10-09-03:1_netboot-menu.png)]] * Here is a boot config that I had create, the id number of this config is 254001 * [[Image(jazz/10-09-03:netbootme.conf.png,width=800)]] * Enter the config id number with 254001 * [[Image(jazz/10-09-03:2_netboot-conf-id.png)]] * After download clonezilla ISO image from the INTERNET, you will see it boot into Clonezilla Live as well. * [[Image(jazz/10-09-03:3_netboot-clonezilla-1.png)]] * [[Image(jazz/10-09-03:4_netboot-clonezilla-2.png)]]