[DRBD-user] Re: Unable to make DRBD Resource Secondary

Lars Ellenberg Lars.Ellenberg at linbit.com
Fri Nov 11 11:07:51 CET 2005

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


/ 2005-11-10 15:55:20 +0100
\ Lars Marowsky-Bree:
> On 2005-11-10T09:36:33, Todd Denniston <Todd.Denniston at ssa.crane.navy.mil> wrote:
> 
> > I really hate when I am attempting to manually do a fallover[1] between
> > machines and it fails when the original primary can't seem to let go of a
> > drbd resource because of something in the kernel holding on (aka lsof &
> > fuser cant find anything).
> > 
> > [1] issue `service heartbeat stop`  on redhat/fedora.
> 
> That really shouldn't happen.
> 
> I trust that you are quite aware of how to use fuser/lsof and were
> looking for the right things in there... fuser w/ and w/o -m on the drbd
> block device _ought_, in theory, to list all the files. And if it is not
> mounted (check via /proc/mounts), NFS shouldn't be able to have any
> hidden references to it either.
> 
> If all these predicates are right and it still can't set the device to
> secondary mode claiming something has the device opened, that would be a
> bug.
> 

well. "should". "ought".
in the real world, facts are sometimes different.

we had occasionally the case that neither fuser nor lsof list anything.
it had been unmounted. still it refused to become secondary.

stopping nfs-kernel-server (and related statd, lockd or whatever)
made it possible, though. so there are cases where nfs (or related
daemons) in kernel space hold references to a device, that user space
tools won't see.

-- 
: Lars Ellenberg                                  Tel +43-1-8178292-0  :
: LINBIT Information Technologies GmbH            Fax +43-1-8178292-82 :
: Schoenbrunner Str. 244, 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