[DRBD-user] Device is held by someone error.

Nikhil Kulkarni nikhil_kulkarni at symantec.com
Fri Jul 11 00:43:33 CEST 2008

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


Hi,

 

I am getting the following error on a CentOS + DRBD + HeartBeat setup:

 

When I stop the heartbeat service on the primary, for some reason it
cannot change the state of 

drbd using the drbdadm command and I get the below error in the log
file:

State change failed: (-12) Device is held open by someone

 

Manually running the "drbdadm secondary r0" command does not work
either.

 

The file system is not mounted, running lsof does not show any processes
accessing the drbd device and 

Fuser -mv returns nothing.

I also ran "grep drbd /proc/mounts" and that too returned nothing, which
tells me that the file system is un-mounted cleanly.

 

I'm going to install strace and see if that provides me with any more
information.

 

After this the system just reboots. I googled around, went through a
whole bunch of mailing lists and did not see a reason as to why this was
happening and what can be done to avoid it. Is this just a bug with drbd
or heartbeat? Has anyone else seen and fixed this issue? When I googled,
I did come across people having a similar problem, but there was no
mention of how it was resolved. 

Will upgrading to the latest drbd release solve it?

 

My setup:

CentOS 5.1

DRBD : 8.0.11-1

Heartbeat : 2.1.3-3

 

I did not want to paste the drbd.conf file since the post would be
pretty long, but if it is needed then please let me know and I'll post
that information as well.

 

I'm really running out of ideas, any help is greatly appreciated. If
anyone needs any more information from my end, then please let me know
and I'll be happy to provide that too.

 

Thanks,

Nikhil

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linbit.com/pipermail/drbd-user/attachments/20080710/f4a789f3/attachment.htm>


More information about the drbd-user mailing list