Re: [Next3-devel] [Next3-users] Kernel bug..
Brought to you by:
amir73il
|
From: Kim H. <kh...@mu...> - 2012-05-05 15:55:06
|
<font face="Default Sans Serif,Verdana,Arial,Helvetica,sans-serif" size="2">Hi Amir,<br><br>The patch is attached.<br><br>Kind regards,<br><br>Kim<br><br><font color="#990099">-----Amir Goldstein <ami...@gm...> wrote: -----</font><div style="padding-left:5px;"><div style="padding-right:0px;padding-left:5px;border-left:solid black 2px;">To: Kim Hagen <kh...@mu...><br>From: Amir Goldstein <ami...@gm...><br>Date: 05/05/2012 02:34PM<br>Cc: next3 <nex...@li...><br>Subject: Re: [Next3-users] Kernel bug..<br><br><div dir="ltr">Hi Kim,<div><br></div><div>Glad to hear.</div><div>CC-ing next3-devel, where we should have has this discussion.</div><div>If you send me the generated patch I will upload it to the <a href="http://next3.sf.net" target="_blank">next3.sf.net</a> web site.</div> <div><br></div><div>Thanks,</div><div> Amir.<br><br><div class="gmail_quote">On Sat, May 5, 2012 at 12:54 PM, Kim Hagen <span dir="ltr"><<a href="mailto:kh...@mu..." target="_blank">kh...@mu...</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"> <font face="Default Sans Serif,Verdana,Arial,Helvetica,sans-serif">Hi Amir,<br><br>I could not get the clone of the stable branch so i downloaded each file individually<br>in the fs next3 folder :)<br><br>The build was without any problems, the module version now indeed is <font face="sans-serif">v1.0.13-8,<br> and is stable now for a few days, no error messages in dmesg and logs.<br><br>Thank you very much for your help.<br><br>Kind regards,<br><br>Kim Hagen<br></font><br><font color="#990099">-----Amir Goldstein <<a href="mailto:ami...@gm..." target="_blank">ami...@gm...</a>> wrote: -----</font><div style="padding-left:5px"> <div style="padding-right:0px;padding-left:5px;border-left:solid black 2px">To: Kim Hagen <<a href="mailto:kh...@mu..." target="_blank">kh...@mu...</a>><br>From: Amir Goldstein <<a href="mailto:ami...@gm..." target="_blank">ami...@gm...</a>><br> Date: 05/02/2012 04:03PM<br>Cc: <a href="mailto:nex...@li..." target="_blank">nex...@li...</a><div><div><br>Subject: Re: [Next3-users] Kernel bug..<br><br><div dir="ltr"> <div class="gmail_extra">Kim,</div><div class="gmail_extra"><br></div><div class="gmail_extra">I am not sure why clone -b doesn't work, and there is no need to grant read access,</div><div class="gmail_extra"> but if you manage to clone the repo, just checkout the next3-stable branch:</div><div class="gmail_extra"><br></div><div class="gmail_extra">cd ~/next3-utils/linux-2.6.35.9</div><div class="gmail_extra">git checkout -b next3-stable origin/next3-stable</div> <div class="gmail_extra"><br></div><div class="gmail_extra">Amir.<br><br><div class="gmail_quote">On Wed, May 2, 2012 at 4:56 PM, Kim Hagen <span dir="ltr"><<a href="mailto:kh...@mu..." target="_blank">kh...@mu...</a>></span> wrote:<br> <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><font face="sans-serif">Amir,</font> <br> <br><font face="sans-serif">Can you grant me access to clone branch?</font> <br><font face="sans-serif">or am i doing something wrong.</font> <br> <br><font face="sans-serif">root@nl-gouda-07:~# git clone -b next3-stable git://<a href="http://github.com/amir73il/ext4-snapshots.git" target="_blank">github.com/amir73il/ext4-snapshots.git</a> ~/next3-utils/linux-2.6.35.9</font> <br><div><font face="sans-serif">Cloning into /root/next3-utils/linux-2.6.35.9...</font> <br><font face="sans-serif">fatal: remote error: access denied or repository not exported: /0/nw/0f/29/37/17467/1022288.git</font> <br> <br></div><font face="sans-serif">Kim</font> <br> <br> <br> <br><font color="#5f5f5f" face="sans-serif" size="1">From: </font><font face="sans-serif" size="1">Kim Hagen <<a href="mailto:kh...@mu..." target="_blank">kh...@mu...</a>></font> <br><font color="#5f5f5f" face="sans-serif" size="1">To: </font><font face="sans-serif" size="1">Amir Goldstein <<a href="mailto:ami...@gm..." target="_blank">ami...@gm...</a>>, </font> <br><font color="#5f5f5f" face="sans-serif" size="1">Cc: </font><font face="sans-serif" size="1"><a href="mailto:nex...@li..." target="_blank">nex...@li...</a></font> <br><font color="#5f5f5f" face="sans-serif" size="1">Date: </font><font face="sans-serif" size="1">05/02/2012 03:03 PM</font> <br><div><div><font color="#5f5f5f" face="sans-serif" size="1">Subject: </font><font face="sans-serif" size="1">Re: [Next3-users] Kernel bug..</font> <br> <hr noshade="noshade"> <br> <br> <br><font face="sans-serif">Hi Amir,</font><font size="3"> <br> </font><font face="sans-serif"><br> Ok, the outcome:</font><font size="3"> </font><font face="sans-serif"><br> /root/next3-utils/linux-2.6.35.9/fs/next3/snapshot.h #define NEXT3_SNAPSHOT_VERSION "next3 snapshot v1.0.13-6 (2-May-2010)"</font><font size="3"> <br> inside generated patch</font><font face="sans-serif"> +#define NEXT3_SNAPSHOT_VERSION "next3 snapshot v1.0.13-6 (2-May-2010)"</font><font size="3"> <br> next3/snapshot.h</font><font face="sans-serif"> #define NEXT3_SNAPSHOT_VERSION "next3 snapshot v1.0.13-6 (2-May-2010)"</font><font size="3"> <br> </font><font face="sans-serif"><br> In </font><a href="https://github.com/amir73il/ext4-snapshots/blob/ext4-snapshots/fs/next3/snapshot.h" target="_blank"><font color="blue" face="sans-serif"><u>https://github.com/amir73il/ext4-snapshots/blob/ext4-snapshots/fs/next3/snapshot.h</u></font></a><font size="3"> </font><font face="sans-serif"><br> the version is also "next3 snapshot v1.0.13-6 (2-May-2010)".</font><font size="3"> <br> </font><font face="sans-serif"><br> I think i got the wrong branch with the git clone, i see the stable with version </font><tt><font face="Courier New,Courier,monospace">"next3 snapshot v1.0.13-8 (2-Aug-2011)"</font></tt><font face="sans-serif"> I will try the correct branch and let you know.</font><font size="3"> <br> </font><font face="sans-serif"><br> Kind regards, </font><font size="3"><br> </font><font face="sans-serif"><br> Kim</font><font size="3"> <br> <br> <br> </font><font color="#5f5f5f" face="sans-serif" size="1"><br> From: </font><font face="sans-serif" size="1">Amir Goldstein <<a href="mailto:ami...@gm..." target="_blank">ami...@gm...</a>></font><font size="3"> </font><font color="#5f5f5f" face="sans-serif" size="1"><br> To: </font><font face="sans-serif" size="1">Kim Hagen <<a href="mailto:kh...@mu..." target="_blank">kh...@mu...</a>>, </font><font color="#5f5f5f" face="sans-serif" size="1"><br> Cc: </font><font face="sans-serif" size="1"><a href="mailto:nex...@li..." target="_blank">nex...@li...</a></font><font size="3"> </font><font color="#5f5f5f" face="sans-serif" size="1"><br> Date: </font><font face="sans-serif" size="1">05/02/2012 02:40 PM</font><font size="3"> </font><font color="#5f5f5f" face="sans-serif" size="1"><br> Subject: </font><font face="sans-serif" size="1">Re: [Next3-users] Kernel bug..</font><font size="3"> <br> </font> <hr noshade="noshade"><font size="3"><br> <br> <br> Follow the bread crumbs... <br> check SNAPSHOT_VERSION inside linux-2.6.35.9/fs/next3/snapshot.h <br> check SNAPSHOT_VERSION inside generated patch<br> check SNAPSHOT_VERSION next3/snapshot.h in extracted patch after 'make module' <br> <br> On Wed, May 2, 2012 at 2:55 PM, Kim Hagen <</font><a href="mailto:kh...@mu..." target="_blank"><font color="blue" size="3"><u>kh...@mu...</u></font></a><font size="3">> wrote: </font><font face="sans-serif" size="3"><br> Hi Amir,</font><font size="3"> </font><font face="sans-serif" size="3"><br> <br> I have rmmod the next3 module, then replaced the module with the new compiled one, <br> than removed the initramfs and generated a new initramfs, than i rebooted.</font><font size="3"> </font><font face="sans-serif" size="3"><br> <br> the output of next3 version:</font><font size="3"> </font><font face="sans-serif" size="3"><br> snapshot-version = next3 snapshot v1.0.13-6 (2-May-2010)</font><font size="3"> <br> </font><font face="sans-serif" size="3"><br> I do not understand why it is still v1.0.13-6, i am 100 percent sure i am using the module i compiled with your steps!</font><font size="3"> </font><font face="sans-serif" size="3"><br> <br> Kim.</font><font size="3"> <br> <br> </font><font color="#5f5f5f" face="sans-serif" size="1"><br> <br> From: </font><font face="sans-serif" size="1">Amir Goldstein <</font><a href="mailto:ami...@gm..." target="_blank"><font color="blue" face="sans-serif" size="1"><u>ami...@gm...</u></font></a><font face="sans-serif" size="1">></font><font size="3"> </font><font color="#5f5f5f" face="sans-serif" size="1"><br> To: </font><font face="sans-serif" size="1">Kim Hagen <</font><a href="mailto:kh...@mu..." target="_blank"><font color="blue" face="sans-serif" size="1"><u>kh...@mu...</u></font></a><font face="sans-serif" size="1">>, </font><font color="#5f5f5f" face="sans-serif" size="1"><br> Cc: </font><a href="mailto:nex...@li..." target="_blank"><font color="blue" face="sans-serif" size="1"><u>nex...@li...</u></font></a><font size="3"> </font><font color="#5f5f5f" face="sans-serif" size="1"><br> Date: </font><font face="sans-serif" size="1">05/02/2012 01:28 PM</font><font size="3"> </font><font color="#5f5f5f" face="sans-serif" size="1"><br> Subject: </font><font face="sans-serif" size="1">Re: [Next3-users] Kernel bug..</font><font size="3"> <br> </font> <hr noshade="noshade"><font size="3"><br> <br> <br> Hi Kim, <br> <br> Nice work. <br> Can you please verify with command 'next3 version' that the latest code is installed. <br> <br> Thanks, <br> Amir.<br> <br> On Wed, May 2, 2012 at 1:42 PM, Kim Hagen <</font><a href="mailto:kh...@mu..." target="_blank"><font color="blue" size="3"><u>kh...@mu...</u></font></a><font size="3">> wrote: </font><font face="sans-serif" size="3"><br> Hi Amir,</font><font size="3"> </font><font face="sans-serif" size="3"><br> <br> I followed your guide, for the most part it is okay,</font><font size="3"> </font><font face="sans-serif" size="3"><br> this is what i did:</font><font size="3"> </font><font face="sans-serif" size="3"><br> 1. </font><font size="3">git clone git://</font><a href="http://github.com/amir73il/next3-utils.git" target="_blank"><font color="blue" size="3"><u>github.com/amir73il/next3-utils.git</u></font></a><font size="3"> -b next3-stable </font><font face="sans-serif" size="3"><br> That went ok.</font><font size="3"> </font><font face="sans-serif" size="3"><br> <br> 2. </font><font size="3">git clone git://</font><a href="http://github.com/amir73il/ext4-snapshots.git" target="_blank"><font color="blue" size="3"><u>github.com/amir73il/ext4-snapshots.git</u></font></a><font size="3"> -b next3-stable ~/next3-utils/linux-2.6.35.9 </font><font face="sans-serif" size="3"><br> That gave the error:</font><font size="3"> <br> Cloning into /root/next3-utils/linux-2.6.35.9... <br> fatal: remote error: access denied or repository not exported: /0/nw/0f/29/37/17467/1022288.git </font><font face="sans-serif" size="3"><br> <br> I changed "</font><font size="3">git clone git://</font><a href="http://github.com/amir73il/ext4-snapshots.git" target="_blank"><font color="blue" size="3"><u>github.com/amir73il/ext4-snapshots.git</u></font></a><font size="3"> -b next3-stable ~/next3-utils/linux-2.6.35.9</font><font face="sans-serif" size="3">" to " </font><font size="3">git clone https://</font><a href="http://github.com/amir73il/ext4-snapshots.git" target="_blank"><font color="blue" size="3"><u>github.com/amir73il/ext4... etc"</u></font></a><font size="3"> </font><font face="sans-serif" size="3"><br> than it downloaded the git.</font><font size="3"> </font><font face="sans-serif" size="3"><br> <br> 3. I downloaded the tar ball from </font><a href="http://kernel.org/" target="_blank"><font color="blue" face="sans-serif" size="3"><u>kernel.org</u></font></a><font face="sans-serif" size="3"> i hope that was the right place.</font><font size="3"> <br> Make next3_snapshot</font><font face="sans-serif" size="3"> went ok, and i copied the patch file to the correct dir.</font><font size="3"> </font><font face="sans-serif" size="3"><br> <br> on "make module" i get this error:</font><font size="3"> <br> /root/next3-utils/next3/inode.c: In function ‘next3_write_begin’: <br> /root/next3-utils/next3/inode.c:1983: error: redeclaration of ‘page_bufs’ with no linkage <br> /root/next3-utils/next3/inode.c:1981: error: previous declaration of ‘page_bufs’ was here <br> make[4]: *** [/root/next3-utils/next3/inode.o] Error 1 <br> make[3]: *** [_module_/root/next3-utils/next3] Error 2 <br> make[2]: *** [sub-make] Error 2 <br> make[1]: *** [all] Error 2 <br> make[1]: Leaving directory `/usr/src/linux-headers-2.6.32-5-amd64' <br> make: *** [module] Error 2 </font><font face="sans-serif" size="3"><br> <br> so in inode.c i removed line 1983 "struct buffer_head *page_bufs;" because it is double.</font><font size="3"> </font><font face="sans-serif" size="3"><br> after that it compiles correct.</font><font size="3"> </font><font face="sans-serif" size="3"><br> <br> sudo make test gives:</font><font size="3"> <br> (test -f test.img && (./bin/tunefs.next3 -l test.img | grep UUID)) || \ <br> ( touch test.img ; ./bin/truncate -s 4G test.img ; yes | ./bin/next3 mkfs test.img ) <br> /bin/sh: ./bin/truncate: not found <br> /bin/sh: ./bin/next3: Permission denied <br> make: *** [test] Error 126 </font><font face="sans-serif" size="3"><br> <br> so i did:</font><font size="3"> <br> chmod +x ./bin/next3 <br> cp /sbin/tunefs.next3 /root/next3-utils/bin/ <br> gcc ./bin/truncate.c -o ./bin/truncate <br> ./bin/next3 config /dev/loop0 /root/next3-utils/test </font><font face="sans-serif" size="3"><br> <br> than i did a make test again, this time it was ok.</font><font size="3"> </font><font face="sans-serif" size="3"><br> <br> I installed this module and tested for 2 days, but it crashed again with the kernel bug.</font><font size="3"> </font><font face="sans-serif" size="3"><br> there where no more errors on snapshot size... this is what i got:</font><font size="3"> <br> <br></font><font face="sans-serif" size="3"><br> <br> Kind regards,</font><font size="3"> </font><font face="sans-serif" size="3"><br> <br> Kim</font><font size="3"> <br> <br> <br> <br> </font><font color="#5f5f5f" face="sans-serif" size="1"><br> <br> <br> From: </font><font face="sans-serif" size="1">Amir Goldstein <</font><a href="mailto:ami...@gm..." target="_blank"><font color="blue" face="sans-serif" size="1"><u>ami...@gm...</u></font></a><font face="sans-serif" size="1">></font><font size="3"> </font><font color="#5f5f5f" face="sans-serif" size="1"><br> To: </font><font face="sans-serif" size="1">Kim Hagen <</font><a href="mailto:kh...@mu..." target="_blank"><font color="blue" face="sans-serif" size="1"><u>kh...@mu...</u></font></a><font face="sans-serif" size="1">>, </font><font color="#5f5f5f" face="sans-serif" size="1"><br> Cc: </font><a href="mailto:nex...@li..." target="_blank"><font color="blue" face="sans-serif" size="1"><u>nex...@li...</u></font></a><font size="3"> </font><font color="#5f5f5f" face="sans-serif" size="1"><br> Date: </font><font face="sans-serif" size="1">04/27/2012 08:34 PM</font><font size="3"> </font><font color="#5f5f5f" face="sans-serif" size="1"><br> Subject: </font><font face="sans-serif" size="1">Re: [Next3-users] Kernel bug..</font><font size="3"> <br> </font> <hr noshade="noshade"><font size="3"><br> <br> <br> Hi Kim, <br> <br> ext4 snapshots is not available for kernel 2.6.32, only for kernel 2.6.38 and above. <br> Also it is in a less stable state then next3. <br> So if you are going to use it for production, next3 is preferred. <br> ext4 snapshots would give you some performance benefits, since ext4 performs better than ext3 <br> in several benchmarks. <br> <br> Regarding the next3 release, I need to refresh my memory, so I'll give you initial pointers <br> and you can tell me what's missing. <br> <br> You will need to get (instructions assume you run this in your home dir): <br> <br> 1. The next3 utils: <br> ~$ git clone git://</font><a href="http://github.com/amir73il/next3-utils.git" target="_blank"><font color="blue" size="3"><u>github.com/amir73il/next3-utils.git</u></font></a><font size="3"> -b next3-stable <br> <br> 2. Linux tree with next3 sources. <br> The next3-stable branch is based off stable kernel 2.6.35.9, so check it out like this: <br> ~$ git clone git://</font><a href="http://github.com/amir73il/ext4-snapshots.git" target="_blank"><font color="blue" size="3"><u>github.com/amir73il/ext4-snapshots.git</u></font></a><font size="3"> -b next3-stable ~/next3-utils/linux-2.6.35.9 <br> <br> 3. a tar ball of linux-2.6.35.9 and place it at: <br> ~/kernel/2.6.35/</font><a href="http://linux-2.6.35.9.tar.bz/" target="_blank"><font color="blue" size="3"><u>linux-2.6.35.9.tar.bz</u></font></a><font size="3"> <br> <br> Then run: <br> ~$ cd ~/next3-utils/patch <br> ~/next3-utils/patch$ make next3_snapshot <br> <br> This may take some time to unpack files from kernel tar ball and should eventually create the patch file next3_snapshot.module.patch <br> and copy it to the ~/kernel/2.6.35/ dir. <br> <br> This is the same patch that is being downloaded from the web site for all supported kernels (2.6.31-35). <br> If you copy it to ~/next3-util and run 'make module' in that directory, it should build the latest next3 version <br> for your kernel (2.6.32), which you can test by running 'sudo make test'. <br> <br> I am pretty sure I missed something in the instructions, so please let me know how far you got <br> and we'll take it from there. <br> <br> Thanks, <br> Amir. <br> <br> <br> On Fri, Apr 27, 2012 at 3:07 PM, Kim Hagen <</font><a href="mailto:kh...@mu..." target="_blank"><font color="blue" size="3"><u>kh...@mu...</u></font></a><font size="3">> wrote: </font><font face="sans-serif" size="3"><br> Hi Amir,</font><font size="3"> </font><font face="sans-serif" size="3"><br> <br> I would like a walktrough please :), and what would you advice.... use next3 or next3_ext4 (and if next3_ext4 how must i make my file-systen?)</font><font size="3"> </font><font face="sans-serif" size="3"><br> <br> Kind regards,</font><font size="3"> </font><font face="sans-serif" size="3"><br> <br> Kim</font><font size="3"> <br> <br> <br> <br> <br> </font><font face="sans-serif" size="3"><br><br></font></div></div></blockquote></div></div></div></div></div></div></div></font></blockquote></div></div></div> </div></div></font><br> <br> <br> <span style="font-family:sans-serif,helvetica; font-size:10pt; color:#000000"><br> <br> This message contains information that may be priviliged or confidential and is intended only for use by the addressee(s).<br> You are not authorized to use or distribute this message or any part of it in any form, unless you are the intended recipient.<br> If you receive this communication unintentionally or in error, please inform the sender immediately by return e-mail and delete all copies of this message.<br> <br> If you do not want to receive any e-mail from Multi Corporation and/or its affiliates in the future, please send an e-mail to: no...@mu...<br> Multi Corporation B.V., Gouda, is registered with the trade register in the Netherlands under no. 34237857.<br> <br> -------------------------------------------------------------------------------------------------------------------------------<br> <br> Dit bericht bevat informatie die vertrouwelijk kan zijn en is uitsluitend bestemd voor de geadresseerde(n).<br> Het is u niet toegestaan dit bericht of delen ervan te gebruiken of te verspreiden in welke vorm dan ook, tenzij u de beoogde ontvanger bent.<br> Indien u dit bericht abusievelijk of onterecht ontvangt, wordt u verzocht de afzender direkt te informeren door het bericht te retourneren en alle kopieen van dit bericht direkt te verwijderen. <br> <br> Indien u geen email meer wilt ontvangen van Multi Corporation of haar groepsvennootschappen kunt u dit kenbaar maken door een email te sturen naar : no...@mu...<br> Multi Corporation B.V., Gouda, staat ingeschreven in de Kamer van Koophandel onder nr. 34237857.</span> |