Re: [Aoetools-discuss] Trouble with vblade
Brought to you by:
ecashin,
elcapitansam
From: Sam H. <sa...@co...> - 2006-11-22 15:20:38
|
Hello Adi, Please rerun the vblade test 2, but use tcpdump to capture the packet flow on the server running vblade: tcpdump -i eth0 -w aoe.tcpdump ether proto 0x88a2 If you can send me the aoe.tcpdump file I can examine whether the offset occurs before the vblade gets the packet, or after. Be sure to run tcpdump before starting vblade so I can see the whole communication. Cheers, Sam > Hi! > > I think I got closer to the root cause of the problem: write takes place with > an offset. > > How I tested that: > 1. create three 1MB images: > dd if=/dev/zero of=/tmp/disk0 bs=1024 count=1024 > dd if=/dev/zero of=/tmp/disk1 bs=1024 count=1024 > dd if=/dev/zero of=/tmp/disk2 bs=1024 count=1024 > > 2. export /tmp/disk0 via vblade on eth0: > vblade 0 0 eth0 /tmp/disk0 > 2a. (on the other server): > rmmod aoe; modprobe aoe ; aoe-discover > echo "ADIADIADI" > /dev/etherd/e0.0 > 2b. kill vblade > > 3. export /tmp/disk1 via vblade on lo: > vblade 0 0 lo /tmp/disk1 > 3a. (on the same server): > rmmod aoe ; modprobe aoe ; aoe-discover > echo "ADIADIADI" > /dev/etherd/e0.0 > 3b. kill vblade > > 4. create loop device and setup /tmp/disk2 as /dev/loop0: > modprobe loop > losetup /dev/loop0 /tmp/disk2 > 4a. echo "ADIADIADI" > /dev/loop0 > 4b. losetup -d /dev/loop0 > > The results: > /tmp/disk1 (vblade via loopback) and /tmp/disk2 (via loop device) are > identical: hexdump /tmp/disk[12]: > 0000000 4441 4149 4944 4441 0a49 0000 0000 0000 > 0000010 0000 0000 0000 0000 0000 0000 0000 0000 > * > 0100000 > > hexdump of /tmp/disk0 looks like the following: > 0000000 0000 0000 0000 0000 0000 0000 0000 0000 > 0000010 0000 0000 0000 0000 4441 4149 4944 4441 > 0000020 0a49 0000 0000 0000 0000 0000 0000 0000 > 0000030 0000 0000 0000 0000 0000 0000 0000 0000 > * > 0100000 > > So, the very same data (4441 4149 4944 4441 0a49) is being written to all > three disks. Via ethernet I got an unexplainable offset of some bytes. > Is there any possible reason for that? > > -- Adi > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Aoetools-discuss mailing list > Aoe...@li... > https://lists.sourceforge.net/lists/listinfo/aoetools-discuss |