[DRBD-user] DRDB & Heartbeat v2.1.3 - Device is held open by someone

Daniel Bourque dbourque at weatherdata.com
Mon Nov 15 18:20:01 CET 2010


Getting the same exact issue with 2.1.3. 

...
Nov 11 13:01:51 grampa Filesystem[2023]: INFO: unmounted /u001 successfully
Nov 11 13:01:51 grampa Filesystem[2012]: INFO:  Success
Nov 11 13:01:51 grampa ResourceManager[1831]: info: Running 
/etc/ha.d/resource.d/drbddisk r0 stop
Nov 11 13:01:51 grampa kernel: drbd0: State change failed: Device is 
held open by someone
Nov 11 13:01:51 grampa kernel: drbd0:   state = { cs:Connected 
st:Primary/Secondary ds:UpToDate/UpToDate r--- }
Nov 11 13:01:51 grampa kernel: drbd0:  wanted = { cs:Connected 
st:Secondary/Secondary ds:UpToDate/UpToDate r--- }
...
Nov 11 13:02:02 grampa ResourceManager[1831]: ERROR: Return code 1 from 
/etc/ha.d/resource.d/drbddisk
Nov 11 13:02:02 grampa ResourceManager[1831]: CRIT: Resource STOP 
failure. Reboot required!
Nov 11 13:02:02 grampa ResourceManager[1831]: CRIT: Killing heartbeat 
ungracefully!
Nov 11 13:02:02 grampa kernel: md: stopping all md devices.
...


What is a good value for the "Delay" Ressource Agent  ?

Thanks !

Dan



Maros Timko wrote:
>> I'm configuring an HA Hadoop cluster using DRBD and Heartbeat.  Works OK
>> except failover causes reboot due to:
>>
>>  /etc/ha.d/resource.d/drbddisk r0 stop returning error: State change failed:
>> (-12) Device is held open by someone.
>>
>> from ha.debug log.
>>
>> ha.conf:
>> ## start of ha.cf
>> debugfile /var/log/ha.debug
>> logfile /var/log/ha.log
>> logfacility local0
>> keepalive 1
>> initdead 60
>> deadtime 5
>> mcast eth0 239.0.0.22 694 1 0
>> node master1.mydomain.prod master2.mydomain.prod
>> auto_failback off
>> ## end of ha.cf
>>
>> haresources:
>> ## start of haresources
>> master1.inadco.prod IPaddr::10.17.133.57
>> master1.inadco.prod drbddisk::r0
>>     
>
> Insert Delay RA here.
>
>   
>> master1.inadco.prod Filesystem::/dev/drbd0::/hadoop::ext3::defaults
>> master1.inadco.prod hadoop-0.20-namenode
>> master1.inadco.prod hadoop-0.20-secondarynamenode
>> master1.inadco.prod hadoop-0.20-jobtracker
>> ## end of haresources
>>
>> Any ideas?
>>
>>     
> _______________________________________________
> drbd-user mailing list
> drbd-user at lists.linbit.com
> http://lists.linbit.com/mailman/listinfo/drbd-user
>
>
>
>   


More information about the drbd-user mailing list