Howto: run several robinhood instances on multiple filesystems


原文来自: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 password
rbh-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

 
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值