[DRBD-user] operation monitor with OCF script from release 8.3

Raoul Bhatia [IPAX] r.bhatia at ipax.at
Tue Aug 11 09:39:38 CEST 2009

Note: "permalinks" may not be as permanent as we would like,
direct links of old sources may well be a few messages off.


On 08/04/2009 06:14 AM, Димитър Бойн wrote:
> Also going through the OCF drbd script I noticed:
> 
>> 
> drbd_status() {
> 
>     role=$(drbdadm role $OCF_RESKEY_resource)
> 
>     case $role in
> 
>         Primary/*)
> 
>             return $OCF_RUNNING
> 
>             ;;
> 
>         Secondary/*)
> 
>             return $OCF_NOT_RUNNING
> 
>             ;;
> 
>  
> 
>     esac
> 
>     return $OCF_ERR_GENERIC
> 
> }”

i cannot find this section in the ocf script on my nodes, located in
/usr/lib/ocf/resource.d/linbit/drbd .

i run:
>  # cat /proc/drbd 
> version: 8.3.2 (api:88/proto:86-90)
> GIT-hash: dd7985327f146f33b86d4bff5ca8c94234ce840e build by root at c03n01, 2009-07-04 15:57:43

with
> # drbdadm --version
> DRBDADM_BUILDTAG=GIT-hash:\ dd7985327f146f33b86d4bff5ca8c94234ce840e\ build\ by\ root at c03n01\,\ 2009-07-04\ 15:53:54
> DRBDADM_API_VERSION=88
> DRBD_KERNEL_VERSION_CODE=0x080302
> DRBDADM_VERSION_CODE=0x080302
> DRBDADM_VERSION=8.3.2

which versions do you use?

cheers,
raoul
-- 
____________________________________________________________________
DI (FH) Raoul Bhatia M.Sc.          email.          r.bhatia at ipax.at
Technischer Leiter

IPAX - Aloy Bhatia Hava OEG         web.          http://www.ipax.at
Barawitzkagasse 10/2/2/11           email.            office at ipax.at
1190 Wien                           tel.               +43 1 3670030
FN 277995t HG Wien                  fax.            +43 1 3670030 15
____________________________________________________________________



More information about the drbd-user mailing list