Note: "permalinks" may not be as permanent as we would like,
direct links of old sources may well be a few messages off.
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.
[pfadmin at 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: 'drbd-user at lists.linbit.com'
> 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>>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linbit.com/pipermail/drbd-user/attachments/20101111/be4b66f6/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/20101111/be4b66f6/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/20101111/be4b66f6/attachment-0001.obj>