[Linux-HA] heartbeat 2.07 cannot stop drbddisk

cosmih cosmih at gmail.com
Wed Jul 4 02:30:38 MDT 2007


and how i do that ? because the lsof output is shows that isn't any process
that use drbd

lsof | grep drbd
----------------------
drbd0_wor  5308     root  cwd       DIR        8,2    4096       2 /
drbd0_wor  5308     root  rtd       DIR        8,2    4096       2 /
drbd0_wor  5308     root  txt   unknown
/proc/5308/exe
drbd0_rec  5326     root  cwd       DIR        8,2    4096       2 /
drbd0_rec  5326     root  rtd       DIR        8,2    4096       2 /
drbd0_rec  5326     root  txt   unknown
/proc/5326/exe
drbd0_ase  5899     root  cwd       DIR        8,2    4096       2 /
drbd0_ase  5899     root  rtd       DIR        8,2    4096       2 /
drbd0_ase  5899     root  txt   unknown
/proc/5899/exe

ps aux | grep 5308
---------------------------
root      5308  0.0  0.0      0     0 ?        S    Jul03   0:04
[drbd0_worker]
ps aux | grep 5326
---------------------------
root      5326  0.0  0.0      0     0 ?        S    Jul03   0:04
[drbd0_receiver]
ps aux | grep 5899
---------------------------
root      5899  0.0  0.0      0     0 ?        S    Jul03   0:01
[drbd0_asender]

drbdadm secondary all
---------------------------------
State change failed: (-12) Device is held open by someone
Command 'drbdsetup /dev/drbd0 secondary' terminated with exit code 11
drbdsetup exited with code 11

from dmesg
-----------------
drbd0: State change failed: Device is held open by someone
drbd0:   state = { cs:Connected st:Primary/Secondary ds:UpToDate/UpToDate
r--- }
drbd0:  wanted = { cs:Connected st:Secondary/Secondary ds:UpToDate/UpToDate
r--- }
drbd0: State change failed: Device is held open by someone
drbd0:   state = { cs:Connected st:Primary/Secondary ds:UpToDate/UpToDate
r--- }
drbd0:  wanted = { cs:Connected st:Secondary/Secondary ds:UpToDate/UpToDate
r--- }



On 7/3/07, Lars Marowsky-Bree <lmb at suse.de> wrote:
>
> On 2007-07-03T15:53:01, cosmih <cosmih at gmail.com> wrote:
>
> > when mon stop the heartbeat or when i stop the heartbeat the machine is
> > restarted because the drbd device cannot be setted in secondary mode
> >
> > below are file config for heartbeat and for drbd
>
> Find out which process is keeping open the drbd device and stop it
> properly.
>
>
> _______________________________________________
> Linux-HA mailing list
> Linux-HA at lists.linux-ha.org
> http://lists.linux-ha.org/mailman/listinfo/linux-ha
> See also: http://linux-ha.org/ReportingProblems
>


More information about the Linux-HA mailing list