<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html>
<head>
  <meta name="Generator" content="Zarafa WebApp v7.2.0-48204">
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  <title>DRBD offline resize problem</title>
</head>
<body>
<p style="margin-bottom: 0cm; line-height: 100%;" data-mce-style="margin-bottom: 0cm; line-height: 100%;"><span face="Courier 10 Pitch"><span style="font-size: small;" data-mce-style="font-size: small;" size="2">Hi there,</span></span></p><p style="margin-bottom: 0cm; line-height: 100%;" data-mce-style="margin-bottom: 0cm; line-height: 100%;"><span face="Courier 10 Pitch"><span style="font-size: small;" data-mce-style="font-size: small;" size="2"><br data-mce-bogus="1"></span></span></p><p style="margin-bottom: 0cm; line-height: 100%;" data-mce-style="margin-bottom: 0cm; line-height: 100%;"><span face="Courier 10 Pitch"><span style="font-size: small;" data-mce-style="font-size: small;" size="2">I'm new to DRBD and I tried to resize a DRBD resource recently, but in the end the machine didn't startup afterwards (can't find boot device).</span></span></p><p style="margin-bottom: 0cm; line-height: 100%;" data-mce-style="margin-bottom: 0cm; line-height: 100%;"><br></p><p style="margin-bottom: 0cm; line-height: 100%;" data-mce-style="margin-bottom: 0cm; line-height: 100%;"><span face="Courier 10 Pitch"><span style="font-size: small;" data-mce-style="font-size: small;" size="2">Maybe someone can tell me what I did wrong.</span></span></p><p style="margin-bottom: 0cm; line-height: 100%;" data-mce-style="margin-bottom: 0cm; line-height: 100%;"><span face="Courier 10 Pitch"><span style="font-size: small;" data-mce-style="font-size: small;" size="2">These are the steps taken:</span></span></p><p style="margin-bottom: 0cm; line-height: 100%;" data-mce-style="margin-bottom: 0cm; line-height: 100%;"><br></p><p style="margin-bottom: 0cm; line-height: 100%;" data-mce-style="margin-bottom: 0cm; line-height: 100%;"><span face="Courier 10 Pitch"><span style="font-size: small;" data-mce-style="font-size: small;" size="2">1.) I used blockdev on the primary node to find out the sector size.</span></span></p><p style="margin-bottom: 0cm; line-height: 100%;" data-mce-style="margin-bottom: 0cm; line-height: 100%;"><span face="Courier 10 Pitch"><span style="font-size: small;" data-mce-style="font-size: small;" size="2">2.) drbdadm down vm_termubuntusrv</span></span></p><p style="margin-bottom: 0cm; line-height: 100%;" data-mce-style="margin-bottom: 0cm; line-height: 100%;"><br></p><p style="margin-bottom: 0cm; line-height: 100%;" data-mce-style="margin-bottom: 0cm; line-height: 100%;"><span face="Courier 10 Pitch"><span style="font-size: small;" data-mce-style="font-size: small;" size="2">The next steps (3.) are just to dump the metadata. The command 3.4 didn't work right away (Found meta data is "unclean", please apply-al first), so I did it the hard way:</span></span></p><p style="margin-bottom: 0cm; line-height: 100%;" data-mce-style="margin-bottom: 0cm; line-height: 100%;"><br></p><p style="margin-bottom: 0cm; line-height: 100%;" data-mce-style="margin-bottom: 0cm; line-height: 100%;"><span face="Courier 10 Pitch"><span style="font-size: small;" data-mce-style="font-size: small;" size="2">3.1) drbdsetup new-resource vm_termubuntusrv</span></span></p><p style="margin-bottom: 0cm; line-height: 100%;" data-mce-style="margin-bottom: 0cm; line-height: 100%;"><span face="Courier 10 Pitch"><span style="font-size: small;" data-mce-style="font-size: small;" size="2">3.2) drbdsetup new-minor vm_termubuntusrv 14 0</span></span></p><p style="margin-bottom: 0cm; line-height: 100%;" data-mce-style="margin-bottom: 0cm; line-height: 100%;"><span face="Courier 10 Pitch"><span style="font-size: small;" data-mce-style="font-size: small;" size="2">3.3) drbdmeta 14 v08 /dev/vg_raid5/vm_termubuntusrv internal apply-al</span></span></p><p style="margin-bottom: 0cm; line-height: 100%;" data-mce-style="margin-bottom: 0cm; line-height: 100%;"><span face="Courier 10 Pitch"><span style="font-size: small;" data-mce-style="font-size: small;" size="2">3.4) drbdadm dump-md mailsrv &gt; /root/<span style="font-size: small;" data-mce-style="font-size: small;">ubuntu_metadata.nodeMaster</span></span></span></p><p style="margin-bottom: 0cm; line-height: 100%;" data-mce-style="margin-bottom: 0cm; line-height: 100%;"><span face="Courier 10 Pitch"><span style="font-size: small;" data-mce-style="font-size: small;" size="2">3.5) drbdsetup attach 14 /dev/vg_raid5/vm_termubuntusrv /dev/vg_raid5/vm_termubuntusrv internal --on-io-error=detach --fencing=resource-only --disk-flushes=no --md-flushes=no --al-extents=1237 --c-delay-target=20 --c-fill-target=0 --c-max-rate=150M –c-min-rate=5M</span></span></p><p style="margin-bottom: 0cm; line-height: 100%;" data-mce-style="margin-bottom: 0cm; line-height: 100%;"><span face="Courier 10 Pitch"><span style="font-size: small;" data-mce-style="font-size: small;" size="2">3.6) drbdsetup connect vm_termubuntusrv ipv4:192.168.170.1:7804 ipv4:192.168.170.2:7804 --congestion-fill=400M --congestion-extents=800 --on-congestion=pull-ahead --ko-count=6 --protocol=A --cram-hmac-alg=sha1 --shared-secret=FooFunFactory --max-buffers=131072 --max-epoch-size=20000 --sndbuf-size=0 --rcvbuf-size=0 –verify-alg=md5</span></span></p><p style="margin-bottom: 0cm; line-height: 100%;" data-mce-style="margin-bottom: 0cm; line-height: 100%;"><br></p><p style="margin-bottom: 0cm; line-height: 100%;" data-mce-style="margin-bottom: 0cm; line-height: 100%;"><span face="Courier 10 Pitch"><span style="font-size: small;" data-mce-style="font-size: small;" size="2">4.) drbdadm down vm_termubuntusrv</span></span></p><p style="margin-bottom: 0cm; line-height: 100%;" data-mce-style="margin-bottom: 0cm; line-height: 100%;"><br></p><p style="margin-bottom: 0cm; line-height: 100%;" data-mce-style="margin-bottom: 0cm; line-height: 100%;"><span face="Courier 10 Pitch"><span style="font-size: small;" data-mce-style="font-size: small;" size="2">Do the actual resize:</span></span></p><p style="margin-bottom: 0cm; line-height: 100%;" data-mce-style="margin-bottom: 0cm; line-height: 100%;"><br></p><p style="margin-bottom: 0cm; line-height: 100%;" data-mce-style="margin-bottom: 0cm; line-height: 100%;"><span face="Courier 10 Pitch"><span style="font-size: small;" data-mce-style="font-size: small;" size="2">5.) lvextend -L+5G /dev/vg_vms/vm_termubuntusrv</span></span></p><p style="margin-bottom: 0cm; line-height: 100%;" data-mce-style="margin-bottom: 0cm; line-height: 100%;"><br></p><p style="margin-bottom: 0cm; line-height: 100%;" data-mce-style="margin-bottom: 0cm; line-height: 100%;"><span face="Courier 10 Pitch"><span style="font-size: small;" data-mce-style="font-size: small;" size="2">6.) root@backupsrv:~# drbdadm up vm_termubuntusrv </span></span></p><p style="margin-bottom: 0cm; line-height: 100%;" data-mce-style="margin-bottom: 0cm; line-height: 100%;"><span face="Courier 10 Pitch"><span style="font-size: small;" data-mce-style="font-size: small;" size="2">Moving the internal meta data to its proper location </span></span></p><p style="margin-bottom: 0cm; line-height: 100%;" data-mce-style="margin-bottom: 0cm; line-height: 100%;"><span face="Courier 10 Pitch"><span style="font-size: small;" data-mce-style="font-size: small;" size="2">Internal drbd meta data successfully moved. </span></span></p><p style="margin-bottom: 0cm; line-height: 100%;" data-mce-style="margin-bottom: 0cm; line-height: 100%;"><span face="Courier 10 Pitch"><span style="font-size: small;" data-mce-style="font-size: small;" size="2">No usable activity log found. Do you need to create-md? </span></span></p><p style="margin-bottom: 0cm; line-height: 100%;" data-mce-style="margin-bottom: 0cm; line-height: 100%;"><span face="Courier 10 Pitch"><span style="font-size: small;" data-mce-style="font-size: small;" size="2">Error ignored, no need to apply the AL</span></span></p><p style="margin-bottom: 0cm; line-height: 100%;" data-mce-style="margin-bottom: 0cm; line-height: 100%;"><br></p><p style="margin-bottom: 0cm; line-height: 100%;" data-mce-style="margin-bottom: 0cm; line-height: 100%;"><span face="Courier 10 Pitch"><span style="font-size: small;" data-mce-style="font-size: small;" size="2"><span face="Courier 10 Pitch">7.) </span>I set the Node on primary to get the new sector size with blockdev</span></span></p><p style="margin-bottom: 0cm; line-height: 100%;" data-mce-style="margin-bottom: 0cm; line-height: 100%;"><br></p><p style="margin-bottom: 0cm; line-height: 100%;" data-mce-style="margin-bottom: 0cm; line-height: 100%;"><span face="Courier 10 Pitch"><span style="font-size: small;" data-mce-style="font-size: small;" size="2">8.) change the „la-size-sect“ to the new size on both nodes</span></span></p><p style="margin-bottom: 0cm; line-height: 100%;" data-mce-style="margin-bottom: 0cm; line-height: 100%;"><br></p><p style="margin-bottom: 0cm; line-height: 100%;" data-mce-style="margin-bottom: 0cm; line-height: 100%;"><span face="Courier 10 Pitch"><span style="font-size: small;" data-mce-style="font-size: small;" size="2">9.) make sure the resource is down on both nodes</span></span></p><p style="margin-bottom: 0cm; line-height: 100%;" data-mce-style="margin-bottom: 0cm; line-height: 100%;"><br></p><p style="margin-bottom: 0cm; line-height: 100%;" data-mce-style="margin-bottom: 0cm; line-height: 100%;"><span face="Courier 10 Pitch"><span style="font-size: small;" data-mce-style="font-size: small;" size="2">10.) </span></span></p><p style="margin-bottom: 0cm; line-height: 100%;" data-mce-style="margin-bottom: 0cm; line-height: 100%;"><span face="Courier 10 Pitch"><span style="font-size: small;" data-mce-style="font-size: small;" size="2">root@mastersrv:~# drbdmeta_cmd=$(drbdadm -d dump-md vm_termubuntusrv) </span></span></p><p style="margin-bottom: 0cm; line-height: 100%;" data-mce-style="margin-bottom: 0cm; line-height: 100%;"><span face="Courier 10 Pitch"><span style="font-size: small;" data-mce-style="font-size: small;" size="2">root@mastersrv:~# ${drbdmeta_cmd/dump-md/restore-md} /root/ubuntu_metadata.nodeMaster.neu </span></span></p><p style="margin-bottom: 0cm; line-height: 100%;" data-mce-style="margin-bottom: 0cm; line-height: 100%;"><br></p><p style="margin-bottom: 0cm; line-height: 100%;" data-mce-style="margin-bottom: 0cm; line-height: 100%;"><span face="Courier 10 Pitch"><span style="font-size: small;" data-mce-style="font-size: small;" size="2">Valid meta-data in place, overwrite? </span></span></p><p style="margin-bottom: 0cm; line-height: 100%;" data-mce-style="margin-bottom: 0cm; line-height: 100%;"><span face="Courier 10 Pitch"><span style="font-size: small;" data-mce-style="font-size: small;" size="2">[need to type 'yes' to confirm] yes </span></span></p><p style="margin-bottom: 0cm; line-height: 100%;" data-mce-style="margin-bottom: 0cm; line-height: 100%;"><br></p><p style="margin-bottom: 0cm; line-height: 100%;" data-mce-style="margin-bottom: 0cm; line-height: 100%;"><span face="Courier 10 Pitch"><span style="font-size: small;" data-mce-style="font-size: small;" size="2">initializing with defaults </span></span></p><p style="margin-bottom: 0cm; line-height: 100%;" data-mce-style="margin-bottom: 0cm; line-height: 100%;"><span face="Courier 10 Pitch"><span style="font-size: small;" data-mce-style="font-size: small;" size="2">Successfully restored meta data</span></span></p><p style="margin-bottom: 0cm; line-height: 100%;" data-mce-style="margin-bottom: 0cm; line-height: 100%;"><br></p><p style="margin-bottom: 0cm; line-height: 100%;" data-mce-style="margin-bottom: 0cm; line-height: 100%;"><span face="Courier 10 Pitch"><span style="font-size: small;" data-mce-style="font-size: small;" size="2">11.) drbdadm up vm_termubuntusrv</span></span></p><p style="margin-bottom: 0cm; line-height: 100%;" data-mce-style="margin-bottom: 0cm; line-height: 100%;"><br></p><p style="margin-bottom: 0cm; line-height: 100%;" data-mce-style="margin-bottom: 0cm; line-height: 100%;"><span face="Courier 10 Pitch"><span style="font-size: small;" data-mce-style="font-size: small;" size="2">12.) drbdadm primary vm_termubuntusrv</span></span></p><p style="margin-bottom: 0cm; line-height: 100%;" data-mce-style="margin-bottom: 0cm; line-height: 100%;"><br></p><p style="margin-bottom: 0cm; line-height: 100%;" data-mce-style="margin-bottom: 0cm; line-height: 100%;"><span face="Courier 10 Pitch"><span style="font-size: small;" data-mce-style="font-size: small;" size="2">The command 2-6 and 8-11 were done on both nodes.</span></span></p><p style="margin-bottom: 0cm; line-height: 100%;" data-mce-style="margin-bottom: 0cm; line-height: 100%;"><span face="Courier 10 Pitch"><span style="font-size: small;" data-mce-style="font-size: small;" size="2">At that point the machine won't start anymore. (can't find boot device)<br data-mce-bogus="1"></span></span></p><p style="margin-bottom: 0cm; line-height: 100%;" data-mce-style="margin-bottom: 0cm; line-height: 100%;"><br></p><p style="margin-bottom: 0cm; line-height: 100%;" data-mce-style="margin-bottom: 0cm; line-height: 100%;"><br></p><p style="margin-bottom: 0cm; line-height: 100%;" data-mce-style="margin-bottom: 0cm; line-height: 100%;"><span data-mce-bogus="true" id="_mce_caret"><span data-mce-style="font-size: 10pt; font-family: tahoma,arial,helvetica,sans-serif;" style="font-size: 10pt; font-family: tahoma,arial,helvetica,sans-serif;">Thanks for reading,<br></span></span></p><p style="margin-bottom: 0cm; line-height: 100%;" data-mce-style="margin-bottom: 0cm; line-height: 100%;"><span data-mce-style="font-size: 10pt; font-family: tahoma,arial,helvetica,sans-serif;" style="font-size: 10pt; font-family: tahoma,arial,helvetica,sans-serif;">Cheers,<br data-mce-bogus="1"></span></p><p style="padding: 0; margin: 0;" data-mce-style="padding: 0; margin: 0;"><span style="font-size: 10pt; font-family: tahoma,arial,helvetica,sans-serif;" data-mce-style="font-size: 10pt; font-family: tahoma,arial,helvetica,sans-serif;"><br></span></p><p style="padding: 0; margin: 0;"><span data-mce-style="font-size: 10pt; font-family: tahoma,arial,helvetica,sans-serif;" style="font-size: 10pt; font-family: tahoma,arial,helvetica,sans-serif;"><br data-mce-bogus="1"></span></p><p style="padding: 0; margin: 0;"><span data-mce-style="font-size: 10pt; font-family: tahoma,arial,helvetica,sans-serif;" style="font-size: 10pt; font-family: tahoma,arial,helvetica,sans-serif;"><br data-mce-bogus="1"></span></p><p style="padding: 0; margin: 0;"><span data-mce-style="font-size: 10pt; font-family: tahoma,arial,helvetica,sans-serif;" style="font-size: 10pt; font-family: tahoma,arial,helvetica,sans-serif;"><br data-mce-bogus="1"></span></p><p style="padding: 0; margin: 0;"><span style="font-family: arial,helvetica,sans-serif;"><span style="color: #000000;"><strong><span style="font-size: 10pt;"><em>Ing. Roland Gsell</em></span></strong></span></span><span style="font-family: arial;"><em><span style="font-size: 8pt;"><span style="color: #000000;"><br><span style="font-family: arial,helvetica,sans-serif;">(Systems Engineer)</span><br><br></span></span></em></span><img src="http://www.siedl.net/uploads/RTEmagicC_siedl_networks.JPG.jpg" alt="SIEDL Logo" title="siedl networks" height="29" width="205" border="0"><br></p>
<p style="font-family: monospace;"><span style="font-family: Arial;"><strong><span style="font-size: 8pt;">Siedl Networks GmbH</span></strong></span></p>
<p>&nbsp;</p>
<p style="font-family: monospace;"><span style="font-family: Arial;"><span style="font-size: 8pt;">A-3500 Krems an der Donau, Wiener Straße 74, Austria<br>Tel: +43 2732 71545 - 16 | Mobil: +43 676 840 633 516 | Fax: +43 2732 71545 - 99<br>E-Mail:</span></span><span style="font-size: 8pt; font-family: Arial, sans-serif;"><a href="mailto:roland.klein@siedl.net" target="_blank" title="Der externe Link wird in einem neuen Fenster geöffnet"></a><span style="font-family: Arial;">&nbsp; <a href="mailto:roland.gsell@siedl.net" title="Der externe Link wird in einem neuen Fenster geöffnet">roland.gsell@siedl.net</a> |&nbsp;</span><a href="http://www.siedl.net/" target="_blank" title="Der externe Link wird in einem neuen Fenster geöffnet"><span style="font-family: Arial;">www.siedl.net</span></a></span> <br></p>
<p>&nbsp;</p>
<p><span style="font-family: Arial;"><span style="font-size: 8pt;">IT Infrastruktur &amp; Systembetreuung | E-Mail &amp; Groupware | High Availability &amp; Monitoring<br>UID: ATU62117818, Handelsgericht Krems an der Donau, Firmenbuchnummer FN270789w</span></span></p>
<div><span style="font-size: 8pt; font-family: Arial, sans-serif; color: #1f497d;"><br></span></div>
</body>
</html>