[DRBD-user] Device is held open by someone

Andreas Kurz andreas at hastexo.com
Thu Feb 28 11:07:04 CET 2013

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


On 2013-02-26 13:04, Felipe Gutierrez wrote:
> Hi everyone,
> 
> I am trying to do a failover system only with drbd. When my primary node
> get out of the network, the secondary node became primary and I mount
> the filesystem.
> secondary# drbdadm primary r7
> secondary# mount /dev/drbd7 /mnt/drbd7/
> 
> Until that every thing is ok.
> At this time, my old primary node has to became the secondary and I have
> to discard my changes.
> primary# umount -l /mnt/drbd7
> primary# drbdadm secondary r7
> 7: State change failed: (-12) Device is held open by someone
> Command 'drbdsetup 7 secondary' terminated with exit code 11
> primary# drbdadm -- --discard-my-data connect r7
> 
> Does anyone have a hint?

It's always worth checking device-mapper:

dmsetup ls --tree -o inverted

Regards,
Andreas

-- 
Need help with DRBD?
http://www.hastexo.com/now

> Thnaks in advance!
> Felipe
> 
> -- 
> *--
> -- Felipe Oliveira Gutierrez
> -- Felipe.o.Gutierrez at gmail.com <mailto:Felipe.o.Gutierrez at gmail.com>
> -- https://sites.google.com/site/lipe82/Home/diaadia*
> 
> 
> _______________________________________________
> drbd-user mailing list
> drbd-user at lists.linbit.com
> http://lists.linbit.com/mailman/listinfo/drbd-user
> 





-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 287 bytes
Desc: OpenPGP digital signature
URL: <http://lists.linbit.com/pipermail/drbd-user/attachments/20130228/5fbbcdd4/attachment.pgp>


More information about the drbd-user mailing list