<font size=2 face="sans-serif">Ok I didn't realise this was that kind
of an issue, I just assumed DRBD wasn't happy with my setup due to the
second node not being online.</font>
<br><font size=2 face="sans-serif">The partition /dev/sdb1 is only set
to about 40GB while I'm testing the setup, once I've nutted everything
the machine will be rebuilt to have it's full capacity. (around 7TB) it's
an LVM partition</font>
<br>
<br><font size=2 face="sans-serif">I created a single Logical Volume around
20GB have it exported via iscsi-scst. <br>
<br>
Single VMWare ESXi server (again this is all testing this phase), setup
iscsi to connect to the SAN (testing MPIO) as soon as I "scan"
from the storage adapter I start getting the </font>
<br><tt><font size=2>[28609.797320] block drbd1: al_complete_io() called
on inactive extent 623 </font></tt>
<br><tt><font size=2>ete..<br>
<br>
see </font></tt><a href="http://www.genis-x.com/files/syslog"><tt><font size=2>http://www.genis-x.com/files/syslog</font></tt></a><tt><font size=2><br>
<br>
Where the log ends is where I shutdown the ESXi server<br>
</font></tt>
<br><tt><font size=2>If there are any additional debugging steps/options
I can enable that would help, let me know.</font></tt>
<br><tt><font size=2>I haven't done anything with /dev/drdb0 yet this is
going to hold config files etc.</font></tt>
<br>
<br><font size=2 face="sans-serif">Background:</font>
<br><font size=2 face="sans-serif">Ubuntu 10.4 with recompiled linux-source
(2.6.32.15) kernel due to iscsi-scst patches.</font>
<br><font size=2 face="sans-serif">iscsi-scst as target engine</font>
<br><font size=2 face="sans-serif">heartbeat (not yet though just getting
the base working, drbd + scst) then I'll integrate heartbeat</font>
<br><font size=2 face="sans-serif">lvm2 on top of drbd</font>
<br>
<br><font size=2 face="sans-serif">root@storage00:/etc# cat drbd.conf</font>
<br><font size=2 face="sans-serif">global {</font>
<br><font size=2 face="sans-serif"> usage-count
no;</font>
<br><font size=2 face="sans-serif">}</font>
<br>
<br><font size=2 face="sans-serif">common {</font>
<br><font size=2 face="sans-serif"> syncer {
rate 110M; }</font>
<br><font size=2 face="sans-serif">}</font>
<br><font size=2 face="sans-serif">resource meta {</font>
<br><font size=2 face="sans-serif"> protocol
C;</font>
<br><font size=2 face="sans-serif"> handlers
{</font>
<br><font size=2 face="sans-serif"> pri-on-incon-degr
"echo O > /proc/sysrq-trigger ; halt -f";</font>
<br><font size=2 face="sans-serif"> pri-lost-after-sb
"echo O > /proc/sysrq-trigger ; halt -f";</font>
<br><font size=2 face="sans-serif"> local-io-error
"echo O > /proc/sysrq-trigger ; halt -f";</font>
<br><font size=2 face="sans-serif"> }</font>
<br>
<br><font size=2 face="sans-serif"> startup
{</font>
<br><font size=2 face="sans-serif"> #
wfc-timeout 0;</font>
<br><font size=2 face="sans-serif"> degr-wfc-timeout
120; # 2 minutes.</font>
<br><font size=2 face="sans-serif"> }</font>
<br><font size=2 face="sans-serif"> disk {</font>
<br><font size=2 face="sans-serif"> on-io-error
detach;</font>
<br><font size=2 face="sans-serif"> }</font>
<br>
<br><font size=2 face="sans-serif"> net {</font>
<br><font size=2 face="sans-serif"> after-sb-0pri
disconnect;</font>
<br><font size=2 face="sans-serif"> after-sb-1pri
disconnect;</font>
<br><font size=2 face="sans-serif"> after-sb-2pri
disconnect;</font>
<br><font size=2 face="sans-serif"> rr-conflict
disconnect;</font>
<br><font size=2 face="sans-serif"> }</font>
<br>
<br><font size=2 face="sans-serif"> syncer {</font>
<br><font size=2 face="sans-serif"> #
rate 110M;</font>
<br><font size=2 face="sans-serif"> #
after "r2";</font>
<br><font size=2 face="sans-serif"> al-extents
257;</font>
<br><font size=2 face="sans-serif"> }</font>
<br>
<br><font size=2 face="sans-serif"> on storage00
{</font>
<br><font size=2 face="sans-serif"> device
/dev/drbd0;</font>
<br><font size=2 face="sans-serif"> disk
/dev/sda3;</font>
<br><font size=2 face="sans-serif"> address
192.168.1.10:7788;</font>
<br><font size=2 face="sans-serif"> meta-disk
internal;</font>
<br><font size=2 face="sans-serif"> }</font>
<br>
<br><font size=2 face="sans-serif"> on storage01
{</font>
<br><font size=2 face="sans-serif"> device
/dev/drbd0;</font>
<br><font size=2 face="sans-serif"> disk
/dev/sda3;</font>
<br><font size=2 face="sans-serif"> address
192.168.1.11:7788;</font>
<br><font size=2 face="sans-serif"> meta-disk
internal;</font>
<br><font size=2 face="sans-serif"> }</font>
<br><font size=2 face="sans-serif">}</font>
<br>
<br><font size=2 face="sans-serif">resource data {</font>
<br><font size=2 face="sans-serif"> protocol
C;</font>
<br><font size=2 face="sans-serif"> startup
{</font>
<br><font size=2 face="sans-serif"> wfc-timeout
0; ## Infinite!</font>
<br><font size=2 face="sans-serif"> degr-wfc-timeout
120; ## 2 minutes.</font>
<br><font size=2 face="sans-serif"> }</font>
<br>
<br><font size=2 face="sans-serif"> disk {</font>
<br><font size=2 face="sans-serif"> on-io-error
detach;</font>
<br><font size=2 face="sans-serif"> }</font>
<br>
<br><font size=2 face="sans-serif"> net {</font>
<br><font size=2 face="sans-serif"> #
timeout 60;</font>
<br><font size=2 face="sans-serif"> #
connect-int 10;</font>
<br><font size=2 face="sans-serif"> #
ping-int 10;</font>
<br><font size=2 face="sans-serif"> #
max-buffers 2048;</font>
<br><font size=2 face="sans-serif"> #
max-epoch-size 2048;</font>
<br><font size=2 face="sans-serif"> }</font>
<br>
<br><font size=2 face="sans-serif"> syncer {</font>
<br><font size=2 face="sans-serif"> after
"meta";</font>
<br><font size=2 face="sans-serif"> }</font>
<br>
<br><font size=2 face="sans-serif"> on storage00
{</font>
<br><font size=2 face="sans-serif"> device
/dev/drbd1;</font>
<br><font size=2 face="sans-serif"> disk
/dev/sdb1;</font>
<br><font size=2 face="sans-serif"> address
192.168.1.10:7789;</font>
<br><font size=2 face="sans-serif"> meta-disk
internal;</font>
<br><font size=2 face="sans-serif"> }</font>
<br><font size=2 face="sans-serif"> on storage01
{</font>
<br><font size=2 face="sans-serif"> device
/dev/drbd1;</font>
<br><font size=2 face="sans-serif"> disk
/dev/sdb1;</font>
<br><font size=2 face="sans-serif"> address
192.168.1.11:7789;</font>
<br><font size=2 face="sans-serif"> meta-disk
internal;</font>
<br><font size=2 face="sans-serif"> }</font>
<br><font size=2 face="sans-serif">}</font>
<br>
<br><font size=2 face="sans-serif">root@storage00:/etc# fdisk -l</font>
<br>
<br><font size=2 face="sans-serif">Disk /dev/sda: 21.5 GB, 21474836480
bytes</font>
<br><font size=2 face="sans-serif">255 heads, 63 sectors/track, 2610 cylinders</font>
<br><font size=2 face="sans-serif">Units = cylinders of 16065 * 512 = 8225280
bytes</font>
<br><font size=2 face="sans-serif">Sector size (logical/physical): 512
bytes / 512 bytes</font>
<br><font size=2 face="sans-serif">I/O size (minimum/optimal): 512 bytes
/ 512 bytes</font>
<br><font size=2 face="sans-serif">Disk identifier: 0x00004968</font>
<br>
<br><font size=2 face="sans-serif"> Device Boot
Start End Blocks
Id System</font>
<br><font size=2 face="sans-serif">/dev/sda1 *
1 2432 19530752
83 Linux</font>
<br><font size=2 face="sans-serif">/dev/sda2
2432 2494 499712
82 Linux swap / Solaris</font>
<br><font size=2 face="sans-serif">/dev/sda3
2494 2611 939008
83 Linux</font>
<br>
<br><font size=2 face="sans-serif">Disk /dev/sdb: 42.9 GB, 42949672960
bytes</font>
<br><font size=2 face="sans-serif">255 heads, 63 sectors/track, 5221 cylinders</font>
<br><font size=2 face="sans-serif">Units = cylinders of 16065 * 512 = 8225280
bytes</font>
<br><font size=2 face="sans-serif">Sector size (logical/physical): 512
bytes / 512 bytes</font>
<br><font size=2 face="sans-serif">I/O size (minimum/optimal): 512 bytes
/ 512 bytes</font>
<br><font size=2 face="sans-serif">Disk identifier: 0x00064540</font>
<br>
<br><font size=2 face="sans-serif"> Device Boot
Start End Blocks
Id System</font>
<br><font size=2 face="sans-serif">/dev/sdb1
1 5222 41940992
8e Linux LVM</font>
<br>
<br><font size=2 face="sans-serif">Regards,<br>
Adam Niedzwiedzki<br>
<br>
c: eye media australia pty ltd<br>
a: suite 109, 685 burke rd, camberwell, victoria, 3124, au, earth<br>
p: +61 (0)3 8080 5850<br>
d: +61 (0)3 8080 5674<br>
f: +61 (0)3 8080 5840<br>
m: +61 (0)439 646 941<br>
w: </font><a href=http://www.eyemedia.com.au/><font size=2 face="sans-serif">http://www.eyemedia.com.au</font></a><font size=2 face="sans-serif"><br>
pgp: </font><a href=http://www.eyemedia.com.au/adamn.asc><font size=2 face="sans-serif">http://www.eyemedia.com.au/adamn.asc</font></a>
<br>
<br>
<br>
<table width=100%>
<tr valign=top>
<td><font size=1 color=#5f5f5f face="sans-serif">From:</font>
<td><font size=1 face="sans-serif">Lars Ellenberg <lars.ellenberg@linbit.com></font>
<tr valign=top>
<td><font size=1 color=#5f5f5f face="sans-serif">To:</font>
<td><font size=1 face="sans-serif">drbd-user@lists.linbit.com</font>
<tr valign=top>
<td><font size=1 color=#5f5f5f face="sans-serif">Date:</font>
<td><font size=1 face="sans-serif">14/07/2010 23:17</font>
<tr valign=top>
<td><font size=1 color=#5f5f5f face="sans-serif">Subject:</font>
<td><font size=1 face="sans-serif">Re: [DRBD-user] 1 Primary Node</font>
<tr valign=top>
<td><font size=1 color=#5f5f5f face="sans-serif">Sent by:</font>
<td><font size=1 face="sans-serif">drbd-user-bounces@lists.linbit.com</font></table>
<br>
<hr noshade>
<br>
<br>
<br><tt><font size=2>On Wed, Jul 14, 2010 at 03:54:48PM +1000, adamn@eyemedia.com.au
wrote:<br>
> Hi all,<br>
> <br>
> I have a physical server that I'm setting up as a SAN, the second
node <br>
> won't be available to put online for at least a week. (migrating FROM
it <br>
> to the NEW SAN setup)<br>
> <br>
> How do I tell DRBD to I guess stop trying to synchronise? I get pages
and <br>
> pages of<br>
> <br>
> [28609.791929] block drbd1: al_complete_io() called on inactive extent
623<br>
> [28609.797320] block drbd1: al_complete_io() called on inactive extent
623<br>
> [28609.801638] block drbd1: al_complete_io() called on inactive extent
623<br>
> [28609.807021] block drbd1: al_complete_io() called on inactive extent
623<br>
> [28609.811691] block drbd1: al_complete_io() called on inactive extent
623<br>
> [28609.816680] block drbd1: al_complete_io() called on inactive extent
623<br>
> [28609.821531] block drbd1: al_complete_io() called on inactive extent
623<br>
> [28609.826190] block drbd1: al_complete_io() called on inactive extent
623<br>
> [28609.829968] block drbd1: al_complete_io() called on inactive extent
623<br>
> [28609.833730] block drbd1: al_complete_io() called on inactive extent
623<br>
> [28609.837759] block drbd1: al_complete_io() called on inactive extent
623<br>
<br>
Is that the only message that gets logged there?<br>
Nothing before?<br>
<br>
"That should not happen", and actually if it does happen, either<br>
something is broken in your setup, or DRBD has a bug.<br>
<br>
> I'm running version: 8.3.8.1 (api:88/proto:86-94)<br>
> <br>
> So in short I'm wanting to put my primary node online, migrate a bunch
of <br>
> data from a "current" SAN (it's NOT running DRBD, around
7TB of data) to <br>
> the primary, format rebuild the current THEN sync.<br>
<br>
That plan sounds ok, and should just work.<br>
<br>
-- <br>
: Lars Ellenberg<br>
: LINBIT | Your Way to High Availability<br>
: DRBD/HA support and consulting </font></tt><a href=http://www.linbit.com/><tt><font size=2>http://www.linbit.com</font></tt></a><tt><font size=2><br>
<br>
DRBD® and LINBIT® are registered trademarks of LINBIT, Austria.<br>
__<br>
please don't Cc me, but send to list -- I'm subscribed<br>
_______________________________________________<br>
drbd-user mailing list<br>
drbd-user@lists.linbit.com<br>
</font></tt><a href="http://lists.linbit.com/mailman/listinfo/drbd-user"><tt><font size=2>http://lists.linbit.com/mailman/listinfo/drbd-user</font></tt></a><tt><font size=2><br>
</font></tt>
<br>