| 2 | |
| 3 | == Lustre == |
| 4 | |
| 5 | * 兩個我常用在管理 lustre 的 .bash_aliases 函數 |
| 6 | {{{ |
| 7 | function 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 | } |
| 12 | function 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 | }}} |