Hi

Thanks for your response. I am working hard to reproduce it with
Your advice.
There is no more information than I gave you before.

I find if running "drbdadm role ..." with non-root right, it will throw
20.

[pfad...@clnode1(NPS) /home/pfadmin]
$ drbdadm  role db
unlink: Permission denied
open(/var/lock/drbd-147-0): Permission denied
Command 'drbdsetup 0 role' terminated with exit code 20
drbdadm role db: exited with code 20

I don't know if it's helpful to our case.

Br 
vincent

> ______________________________________________ 
> From:         Chen, Yanfei (NSN - CN/Cheng Du)  
> Sent: Wednesday, November 10, 2010 1:54 PM
> To:   '[email protected]'
> Subject:      Drbd resource  return 20 (unspecified)
> 
> 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>> 

Attachment: drbd.sh
Description: drbd.sh

Attachment: drbd.conf
Description: drbd.conf

_______________________________________________
drbd-user mailing list
[email protected]
http://lists.linbit.com/mailman/listinfo/drbd-user

Reply via email to