Howto: run several robinhood instances on multiple filesystems

来源:互联网 发布:js实现滑动选择日期 编辑:程序博客网 时间:2024/06/05 10:45


原文来自:http://sourceforge.net/apps/trac/robinhood/wiki/MultiFS


"service roibinhood start" starts 1 robinhood instance for each configuration file in "/etc/robinhood.d/tmpfs".

Each of these files must have a different fs_path and a different database name.

1) create 1 DB for each filesystem to be managed:

rbh-config create_db robinhood_lustre1 clnt_host passwordrbh-config create_db robinhood_lustre2 clnt_host password...

2) create 1 config file for each FS (you can use the "include" directive to have all common parameters in the same file):

in "/etc/robinhood.d/tmpfs/lustre1.conf" :

General {    fs_path = /mnt/lustre1;...}ListManager {        MySQL {                server = "dbhost";                db = "robinhood_lustre1";               ...        }}%include "includes/common_params.conf"

in "/etc/robinhood.d/tmpfs/lustre2.conf" :

General {    fs_path = /mnt/lustre2;...}ListManager {        MySQL {                server = "dbhost";                db = "robinhood_lustre2";               ...        }}%include "includes/common_params.conf"

3) Start them all:

[root@robinhost: ~]# service robinhood start Starting Robinhood for /etc/robinhood.d/tmpfs/lustre1.conf [  OK  ] Checking process status...                                 [  OK  ] Starting Robinhood for /etc/robinhood.d/tmpfs/lustre2.conf [  OK  ] Checking process status...                                 [  OK  ]

4) Querying:

When monitoring several filesystems, you need to specify a config file to "rbh-report" to query the right DB:

rbh-report -i -f /etc/robinhood.d/tmpfs/lustre1.conf