<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'>
<BR>
Our current DRBD version is 8.0.16. We are constrained by the linux kernel version we are using to upgrade to latest drbd version.<BR>
<BR>
In this version after 70 - 80 failovers, we see that on board that becomes cluster-primary FSCK -fy fixes some inodes.<BR>
This change in inodes is not being replicated to standby board. <BR>
If we perform failover at this stage, standby board that becomes primary shows file corruption.<BR>
File Corruption => Content of one file is seen in another file. <BR>
<BR>
<STRONG>Some one can help us with DRBD version which fixed this sync issue.</STRONG><BR>
<BR>
<STRONG>Solution:</STRONG><BR>
In Run Level 3 we start a script to check the status of DRBD. If it is not in expected state then we run recovery. This change helped us clock 500+ failovers without any issue.<BR>
<BR>
Code Excerpts:<BR>
create_md="NO"<BR> cur_sta=`$DRBDADM state all`<BR> pri_sec=`echo $cur_sta | awk -F/ '{print $1}'`<BR> peer_st=`echo $cur_sta | awk -F/ '{print $2}'`<BR> cstate=`$DRBDADM cstate all`<BR> if [ "$pri_sec" = "Secondary" -a "$peer_st" = "Primary" -a "$cstate" = "WFBitMapT" ]; then<BR> create_md="YES"<BR> fi<BR>
if [ "$pri_sec" = "Secondary" -a "$peer_st" = "Unknown" -a "$cstate" = "WFConnection" ]; then<BR> cat /proc/drbd | grep "ns:0 nr:0 dw:0 dr:0 al:0 bm:0 lo:0 pe:0 ua:0 ap:0" > /dev/null 2>&1<BR> if [ $? -eq 0 ]; then<BR> create_md="YES"<BR> fi<BR> fi<BR><BR><BR>Thanks and Regards,<BR>
Lak<BR><BR> <BR>> Date: Sat, 18 Sep 2010 04:54:05 -0500<BR>> From: lxnf98mm@comcast.net<BR>> To: putcha_laks@hotmail.com<BR>> CC: dbarker@visioncomm.net; drbd-user@lists.linbit.com<BR>> Subject: Re: [DRBD-user] drbd and fsck<BR>> <BR>> On Sat, 18 Sep 2010, putcha narayana wrote:<BR>> <BR>> ><BR>> ><BR>> > FYI: If you run fsck on one node and it prints "FILE SYSTEM HAS BEEN MODIFIED", use external script to run full sync on the other board. without this sync we are seeing file corruption during failovers.<BR>> <BR>> Would you give an example of the external script<BR>> <BR>> ><BR>> > THANKS AND REGARDSLAK<BR>> ><BR>> ><BR>> ><BR>> >> From: dbarker@visioncomm.net<BR>> >> To: drbd-user@lists.linbit.com<BR>> >> Date: Thu, 16 Sep 2010 12:37:52 -0400<BR>> >> Subject: Re: [DRBD-user] drbd and fsck<BR>> >><BR>> >> On 09/15/2010 03:06 PM, lxnf98mm@comcast.net wrote:<BR>> >><BR>> >>> I have a ext3 filesystem on drbd<BR>> >>> When I run fsck should I run it on all nodes[?]<BR>> >><BR>> >> You probably want to run verify to check that the images are in sync. fsck<BR>> >> the primary, verify the resource.<BR>> >><BR>> >> It "sounds" like you want to know both copies are good.<BR>> >><BR>> >> Dan in Atlanta<BR>> >><BR>> >> _______________________________________________<BR>> >> drbd-user mailing list<BR>> >> drbd-user@lists.linbit.com<BR>> >> http://lists.linbit.com/mailman/listinfo/drbd-user<BR>> ><BR>> <BR>> -- <BR>                                            </body>
</html>