[DRBD-user] Drbd resource return 20 (unspecified)

Chen, Yanfei (NSN - CN/Cheng Du) yanfei.chen at nsn.com
Wed Nov 10 06:53:58 CET 2010

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


Hi

We use redhat cluster + drbd architecture. Oracle use resource
res_drbd_oracle
The drbd version is 8.3.2   cluster version 2.0.46

We get the below error:

Nov  4 11:43:49 clnode1 xinetd[4432]: EXIT: http status=0 pid=12414
duration=0(sec)
Nov  6 15:25:30 clnode1 clurgmgrd[4691]: <notice> status on drbd
"res_drbd_oracle" returned 20 (unspecified) 
Nov  6 15:25:30 clnode1 clurgmgrd[4691]: <notice> Stopping service
service:Oracle 
Nov  6 15:25:47 clnode1 kernel: block drbd0: role( Primary -> Secondary
) 


The redhat cluster call the function drbd_status  in drbd.sh to moniter
status, which is from drbd

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
}


This problem happened two times and lead oracle service restarted.
Appricated you help us to understand what's the error 20 meaning? How
could it happen?

 <<drbd.sh>>  <<drbd.conf>> 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linbit.com/pipermail/drbd-user/attachments/20101110/422fff8e/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: drbd.sh
Type: application/octet-stream
Size: 3353 bytes
Desc: drbd.sh
URL: <http://lists.linbit.com/pipermail/drbd-user/attachments/20101110/422fff8e/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: drbd.conf
Type: application/octet-stream
Size: 671 bytes
Desc: drbd.conf
URL: <http://lists.linbit.com/pipermail/drbd-user/attachments/20101110/422fff8e/attachment-0001.obj>


More information about the drbd-user mailing list