Changes between Version 3 and Version 4 of jazz/10-09-03


Ignore:
Timestamp:
Sep 3, 2010, 10:51:41 PM (14 years ago)
Author:
jazz
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • jazz/10-09-03

    v3 v4  
    11= 2010-09-03 =
     2
     3== Lustre ==
     4
     5 * 兩個我常用在管理 lustre 的 .bash_aliases 函數
     6{{{
     7function check_lustre
     8{
     9  dsh -a "mount -t lustre -l" | grep biofs-OST | awk '{ print $7 }' | sort -n | nl
     10  sudo lctl dl | grep osc
     11}
     12function disable_lustre
     13{
     14  if [ "$1" == "" ]; then echo "disable_lustre <OSTID>"; return 0; fi
     15  for i in `sudo lctl dl | grep osc | grep "$1" | awk '{ print $1 }'`
     16  do
     17    echo "lctl --device $i deactivate"
     18    sudo lctl --device $i deactivate
     19  done
     20  sudo dsh -a lctl dl | grep osc | grep "$1"
     21}
     22}}}
    223
    324== munin ==