[DRBD-user] State change failed: Device is held open by someone

Satyajit Paul satyajit.paul at aricent.com
Thu Mar 14 15:56:38 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.


Mark,

These are the contents of the haresources file. Other lines are commented.

HOST-A hanotify::pre
HOST-A IPaddr2::<IP_ADDRESS>

HOST-A drbddisk::drbd0 LVM::vgdrbd0 Filesystem::/dev/vgdrbd0/mysql::/var/TKLC/elap/drbd/mysql::ext3
HOST-A hanotify::post


Thanks,
Satyajit Paul

-----Original Message-----
From: Mark Woolfson [mailto:info at woolfcomputing.com]
Sent: Thursday, March 14, 2013 7:12 PM
To: Satyajit Paul
Subject: RE: [DRBD-user] State change failed: Device is held open by someone

Satyajit,

Send me a copy of your actual haresources file and I will see if I can find anything that seems out of order.

Regards,

Mark

-----Original Message-----
From: Satyajit Paul [mailto:satyajit.paul at aricent.com]
Sent: Wednesday, March 13, 2013 10:01 AM
To: mwoolfso
Cc: drbd-user at lists.linbit.com; Felix Frank; Lars Ellenberg
Subject: RE: [DRBD-user] State change failed: Device is held open by someone

Hello Mwoolfso,

>From your email "The solution to my particular problem was an improperly formatted haresources file for Heartbeat. Heartbeat was commanding DRBD to unmount/detach a filesystem when a key service was not yet shut down.  Once I cleared that up not only did the messages go away but failover occurs within 2-3 seconds!", it sounds like the issue was occurring in case of switchover the machines.

In my case also, the issue "DRBD device held open" is occurring when I am trying to do failover and stuck in device held open issue. I went through the "/etc/ha.d/haresources" file and found that the "drbddisk::drbd0
LVM::vgdrbd0
Filesystem::/dev/vgdrbd0/mysql::/var/TKLC/elap/drbd/mysql::ext3" is unmounting/detaching a file system.

Are you talking about the unmount/detach related to the one highlighted in yellow above. Please provide some thoughts.


Cheers!!
Satyajit Paul
India


-----Original Message-----
From: Felix Frank [mailto:ff at mpexnet.de]
Sent: Wednesday, March 13, 2013 3:00 PM
To: Satyajit Paul
Cc: drbd-user at lists.linbit.com
Subject: Re: [DRBD-user] State change failed: Device is held open by someone

Hi Satyajit,

this is an instace of thread confusion. The haresources answer was not actually directed to you, but instead belongs to an old thread that happens to have the same subject.

The proposed solutions applies to setups with the obsolete heartbeat cluster stack, which you are (hopefully) not using, so this will likely not help your case.

Cheers,
Felix

On 03/13/2013 06:32 AM, Satyajit Paul wrote:
> Hello Mwoolfso,
>
> I tested after changing the data type of open_cnt variable to
> atomic_t,
but it didnot work.
>
> I am planning to test with your fix. Are you talking about the file
"/etc/ha.d/ haresources" that you have done code changes to solve the issue ? Can you please let me know what changes u made and if changes in any files other than "/etc/ha.d/ haresources" are required ?




============================================================================
===
Please refer to http://www.aricent.com/legal/email_disclaimer.html
for important disclosures regarding this electronic communication.
============================================================================
===





===============================================================================
Please refer to http://www.aricent.com/legal/email_disclaimer.html
for important disclosures regarding this electronic communication.
===============================================================================



More information about the drbd-user mailing list