[DRBD-user] Installation progression - Device is held open by someone

Idesent idesent at gmail.com
Mon Jan 11 02:49:38 CET 2010

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


sorry I should have put it into the write-up umount -l / remount / umount
was done. lsof did not show the culprit in the /var/www LV block device
(apache was shut down also).


2010/1/11 guohuai li <guohuai_li at hotmail.com>

>  maybe it is because the disk partion is not umounted.
>
> ------------------------------
> Date: Sun, 10 Jan 2010 00:17:40 +0100
> From: idesent at gmail.com
> To: drbd-user at lists.linbit.com
> Subject: [DRBD-user] Installation progression - Device is held open by
> someone
>
>
> Hello,
>
> getting DRBD to work with MySQL was not problem. However prior to adding
> heartbeat I want to get a fix on the 2 problems below:
>
>  Debian Lenny/LVM
> DRBD 8.0.14
>
>
>  (1) State change error: Trying to set active node to passive and
> vice-versa
>
> # drbdadm  secondary mainvol
> /dev/drbd0: State change failed: (-12) Device is held open by someone
> Command 'drbdsetup /dev/drbd0 secondary' terminated with exit code 11
>
> # drbdadm  down all
> /dev/drbd0: State change failed: (-12) Device is held open by someone
> Command 'drbdsetup /dev/drbd0 down' terminated with exit code 11
> drbdsetup exited with code 11
>
>  picked up from a forum:
> # vgchange -an
>   Can't deactivate volume group "vg0" with 7 open logical volume(s)
>
> I could literally tear the connection by severing the link between the
> nodes and then set the active node, but there must be a smoother way.
>
>
> (2) After reboot the DRBD volumes on the primary are
> offline/not-mounted/locked by DRBD. Setting them primary resolves it and
> allows a mount -a to mount them all. Is this the default behavior without
> heartbeat ??
>
> thanks - ies
>
>
>
> ------------------------------
> Windows Live: Friends get your Flickr, Yelp, and Digg updates when they
> e-mail you.<http://www.microsoft.com/middleeast/windows/windowslive/see-it-in-action/social-network-basics.aspx?ocid=PID23461::T:WLMTAGL:ON:WL:en-xm:SI_SB_3:092010>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linbit.com/pipermail/drbd-user/attachments/20100111/bab9e5af/attachment.htm>


More information about the drbd-user mailing list