Note: "permalinks" may not be as permanent as we would like,
direct links of old sources may well be a few messages off.
We have been working on same/similar "Device is held open by someone" issue for some time now. Occurs on fairly regular basis upon manual failover.
[root at jamaica-a logs]# tail -f /var/log/messages
Feb 8 04:59:35 jamaica-a kernel: ide: failed opcode was: unknown
Feb 8 04:59:35 jamaica-a kernel: drbd0: State change failed: Device is held open by someone
Feb 8 04:59:35 jamaica-a kernel: drbd0: state = { cs:Connected st:Primary/Secondary ds:UpToDate/UpToDate r--- }
Feb 8 04:59:35 jamaica-a kernel: drbd0: wanted = { cs:Connected st:Secondary/Secondary ds:UpToDate/UpToDate r--- }
Dan Phillips
From: drbd-user-bounces at lists.linbit.com [mailto:drbd-user-bounces at lists.linbit.com] On Behalf Of Felipe Gutierrez
Sent: Tuesday, February 26, 2013 7:50 AM
To: Prater, James K.
Cc: drbd-user at lists.linbit.com
Subject: Re: [DRBD-user] Device is held open by someone
Like this:
# cat /etc/drbd.d/r7.res
resource r7 {
on cloud15 {
device /dev/drbd7;
disk /dev/vg_7/lv_7;
address 192.168.188.15:7789<http://192.168.188.15:7789>;
meta-disk internal;
}
on cloud16 {
device /dev/drbd7;
disk /dev/vg_7/lv_7;
address 192.168.188.16:7789<http://192.168.188.16:7789>;
meta-disk internal;
}
}
On Tue, Feb 26, 2013 at 9:49 AM, Prater, James K. <jprater at draper.com<mailto:jprater at draper.com>> wrote:
How are the drbd volume(s) used?
James
From: drbd-user-bounces at lists.linbit.com<mailto:drbd-user-bounces at lists.linbit.com> [mailto:drbd-user-bounces at lists.linbit.com<mailto:drbd-user-bounces at lists.linbit.com>] On Behalf Of Felipe Gutierrez
Sent: Tuesday, February 26, 2013 7:05 AM
To: drbd-user at lists.linbit.com<mailto:drbd-user at lists.linbit.com>
Subject: [DRBD-user] Device is held open by someone
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?
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
--
--
-- Felipe Oliveira Gutierrez
-- Felipe.o.Gutierrez at gmail.com<mailto:Felipe.o.Gutierrez at gmail.com>
-- https://sites.google.com/site/lipe82/Home/diaadia
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linbit.com/pipermail/drbd-user/attachments/20130226/c771a09f/attachment.htm>