[DRBD-user] State change failed: Device is held open by someone

Lars Ellenberg lars.ellenberg at linbit.com
Thu Aug 23 23:01:27 CEST 2007

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


On Thu, Aug 23, 2007 at 05:52:24PM +0100, Ben Clewett wrote:
> 
> 
> Dear drbd,
> 
> I hope this is a simple one, and sorry for all the email today!
> 
> I am trying to set drbd to Seconday.  When I try I get this:
> 
> kernel: drbd0: State change failed: Device is held open by someone
> kernel: drbd0:   state = { cs:Connected st:Primary/Secondary 
> ds:UpToDate/UpToDate r--- }
> kernel: drbd0:  wanted = { cs:Connected st:Secondary/Secondary 
> ds:UpToDate/UpToDate r--- }
> 
> All 'ps' or 'lsof | grep drbd' options I can think of do not give me any 
> clue as to who this is.  I can't shut down drbd for the same reason.
> 
> This keeps happening due to problems with linux-ha mounting the file 
> system and failing.  Manually mounting the file system works perfectly.
> 
> Does any kind member have an idea as to how I can clear this?

the mount got interrupted, maybe it was not able to clean up properly.
maybe ocfs2 holds some reference in kernel, still.
if so, it may help if you rmmod ocfs2.
maybe you first need to "ocfs2_hb_ctl -K".

-- 
: Lars Ellenberg                            Tel +43-1-8178292-0  :
: LINBIT Information Technologies GmbH      Fax +43-1-8178292-82 :
: Vivenotgasse 48, A-1120 Vienna/Europe    http://www.linbit.com :
__
please use the "List-Reply" function of your email client.



More information about the drbd-user mailing list