* [linux-lvm] Patching my kernel.
@ 2001-05-08 23:11 Rupert Heesom
2001-05-09 6:51 ` Luca Berra
2001-05-09 11:55 ` David Vidal Rodriguez
0 siblings, 2 replies; 13+ messages in thread
From: Rupert Heesom @ 2001-05-08 23:11 UTC (permalink / raw)
To: Mauelshagen; +Cc: linux-lvm
I had previously patched the kernel (stock 2.4.3) with the beta 6 patch.
Now I'm trying to update to beta 7. I tried patching the kernel is
exactly the same way as before (maybe a mistake). Most of the output is
pasted in here (at the end). I'm concerned about the prompts I got -
"Reversed (or previously applied) patch detected! Assume -R? [n]"
As you can see, I decided to reply "Y". Was that a correct assumption?
Afterwards I read the man page on "patch" and am now even less sure that
I did the right thing.
I don't want to compile the kernel modules (I have lvm as a module)
until I know that the source is in good condition.
patching file drivers/md/Makefile
Reversed (or previously applied) patch detected! Assume -R? [n] y
The next patch would delete the file drivers/md/lvm-snap.h,
which does not exist! Assume -R? [n] y
patching file drivers/md/lvm-snap.h
patching file Documentation/ioctl-number.txt
Reversed (or previously applied) patch detected! Assume -R? [n] y
Hunk #1 succeeded at 187 (offset 1 line).
I've now just tried compiling the kernel modules anyway (not the main
kernel file), using make modules, make modules_install.
At the end of the "make modules_install", I got these msgs -
find kernel -path '*/pcmcia/*' -name '*.o' | xargs -i -r ln -sf ../{}
pcmcia
if [ -r System.map ]; then /sbin/depmod -ae -F System.map 2.4.3; fi
depmod: *** Unresolved symbols in
/lib/modules/2.4.3/kernel/drivers/md/lvm-mod.odepmod: lvm_init_fs
depmod: lvm_fs_remove_vg
depmod: lvm_fin_fs
depmod: lvm_fs_remove_lv
depmod: lvm_fs_remove_pv
depmod: lvm_fs_create_vg
depmod: lvm_fs_create_lv
depmod: lvm_fs_create_pv
Do I assume that I did the wrong thing if the lvm-mod file is now (I
assume) incorrectly built?
How do I patch the kernel correctly???
--
regs
rupert
^ permalink raw reply [flat|nested] 13+ messages in thread* Re: [linux-lvm] Patching my kernel.
2001-05-08 23:11 [linux-lvm] Patching my kernel Rupert Heesom
@ 2001-05-09 6:51 ` Luca Berra
2001-05-09 8:29 ` Joe Thornber
2001-05-09 10:39 ` Rupert Heesom
2001-05-09 11:55 ` David Vidal Rodriguez
1 sibling, 2 replies; 13+ messages in thread
From: Luca Berra @ 2001-05-09 6:51 UTC (permalink / raw)
To: linux-lvm
On Tue, May 08, 2001 at 07:11:14PM -0400, Rupert Heesom wrote:
> I had previously patched the kernel (stock 2.4.3) with the beta 6 patch.
>
> Now I'm trying to update to beta 7. I tried patching the kernel is
> exactly the same way as before (maybe a mistake). Most of the output is
> pasted in here (at the end). I'm concerned about the prompts I got -
>
> "Reversed (or previously applied) patch detected! Assume -R? [n]"
are you starting with a clean kernel or with the kernel you previously
patched with b6?
the former is the correvt approach,
the latter....
L.
--
Luca Berra -- bluca@comedia.it
Communication Media & Services S.r.l.
/"\
\ / ASCII RIBBON CAMPAIGN
X AGAINST HTML MAIL
/ \
^ permalink raw reply [flat|nested] 13+ messages in thread* Re: [linux-lvm] Patching my kernel.
2001-05-09 6:51 ` Luca Berra
@ 2001-05-09 8:29 ` Joe Thornber
2001-05-09 10:39 ` Rupert Heesom
1 sibling, 0 replies; 13+ messages in thread
From: Joe Thornber @ 2001-05-09 8:29 UTC (permalink / raw)
To: linux-lvm
On Wed, May 09, 2001 at 08:51:10AM +0200, Luca Berra wrote:
> On Tue, May 08, 2001 at 07:11:14PM -0400, Rupert Heesom wrote:
> > I had previously patched the kernel (stock 2.4.3) with the beta 6 patch.
> >
> > Now I'm trying to update to beta 7. I tried patching the kernel is
> > exactly the same way as before (maybe a mistake). Most of the output is
> > pasted in here (at the end). I'm concerned about the prompts I got -
> >
> > "Reversed (or previously applied) patch detected! Assume -R? [n]"
> are you starting with a clean kernel or with the kernel you previously
> patched with b6?
> the former is the correvt approach,
> the latter....
The problem is that the patches mentioned in the fragments file
(LVM/PATCHES/fragments-*) for your kernel should only be applied once.
So either do as Luca says and go back to a clean kernel. Or just
empty the fragments file (do not delete it, and do keep a back up in
case you go back to a clean kernel at some point).
- Joe
>
>
> L.
> --
> Luca Berra -- bluca@comedia.it
> Communication Media & Services S.r.l.
> /"\
> \ / ASCII RIBBON CAMPAIGN
> X AGAINST HTML MAIL
> / \
> _______________________________________________
> linux-lvm mailing list
> linux-lvm@sistina.com
> http://lists.sistina.com/mailman/listinfo/linux-lvm
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [linux-lvm] Patching my kernel.
2001-05-09 6:51 ` Luca Berra
2001-05-09 8:29 ` Joe Thornber
@ 2001-05-09 10:39 ` Rupert Heesom
2001-05-09 14:43 ` Patrick Caulfield
2001-05-09 15:03 ` Joe Thornber
1 sibling, 2 replies; 13+ messages in thread
From: Rupert Heesom @ 2001-05-09 10:39 UTC (permalink / raw)
To: linux-lvm
On 09 May 2001 08:51:10 +0200, Luca Berra wrote:
> On Tue, May 08, 2001 at 07:11:14PM -0400, Rupert Heesom wrote:
> > I had previously patched the kernel (stock 2.4.3) with the beta 6 patch.
> >
> > Now I'm trying to update to beta 7. I tried patching the kernel is
> > exactly the same way as before (maybe a mistake). Most of the output is
> > pasted in here (at the end). I'm concerned about the prompts I got -
> >
> > "Reversed (or previously applied) patch detected! Assume -R? [n]"
> are you starting with a clean kernel or with the kernel you previously
> patched with b6?
> the former is the correvt approach,
> the latter....
I was not using a clean kernel. I'll try that.
BTW, I know there's a way to keep the config from the "used kernel", so
that I don't have to guess the settings again for my system (I made
several config errors last time). Can you remind me how to migrate the
.config file across to a new source tree? I'll try & find some docs on
how to do this, but have forgotten where I last read about it.
--
regs
rupert
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [linux-lvm] Patching my kernel.
2001-05-09 10:39 ` Rupert Heesom
@ 2001-05-09 14:43 ` Patrick Caulfield
2001-05-09 15:03 ` Joe Thornber
1 sibling, 0 replies; 13+ messages in thread
From: Patrick Caulfield @ 2001-05-09 14:43 UTC (permalink / raw)
To: linux-lvm
On Wed, May 09, 2001 at 06:39:31AM -0400, Rupert Heesom wrote:
>
> BTW, I know there's a way to keep the config from the "used kernel", so
> that I don't have to guess the settings again for my system (I made
> several config errors last time). Can you remind me how to migrate the
> .config file across to a new source tree? I'll try & find some docs on
> how to do this, but have forgotten where I last read about it.
>
Copy the .config file from the old kernel tree into the new one and type
make oldconfig
You'll get asked questions about any new options that have appeared in this
kernel release.
patrick
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [linux-lvm] Patching my kernel.
2001-05-09 10:39 ` Rupert Heesom
2001-05-09 14:43 ` Patrick Caulfield
@ 2001-05-09 15:03 ` Joe Thornber
2001-05-09 11:43 ` Rupert Heesom
1 sibling, 1 reply; 13+ messages in thread
From: Joe Thornber @ 2001-05-09 15:03 UTC (permalink / raw)
To: linux-lvm
On Wed, May 09, 2001 at 06:39:31AM -0400, Rupert Heesom wrote:
> On 09 May 2001 08:51:10 +0200, Luca Berra wrote:
> > On Tue, May 08, 2001 at 07:11:14PM -0400, Rupert Heesom wrote:
> > > I had previously patched the kernel (stock 2.4.3) with the beta 6 patch.
> > >
> > > Now I'm trying to update to beta 7. I tried patching the kernel is
> > > exactly the same way as before (maybe a mistake). Most of the output is
> > > pasted in here (at the end). I'm concerned about the prompts I got -
> > >
> > > "Reversed (or previously applied) patch detected! Assume -R? [n]"
> > are you starting with a clean kernel or with the kernel you previously
> > patched with b6?
> > the former is the correvt approach,
> > the latter....
>
> I was not using a clean kernel. I'll try that.
>
> BTW, I know there's a way to keep the config from the "used kernel", so
> that I don't have to guess the settings again for my system (I made
> several config errors last time). Can you remind me how to migrate the
> .config file across to a new source tree? I'll try & find some docs on
> how to do this, but have forgotten where I last read about it.
Just keep a copy of the .config file, when you untar a new kernel
tree copy the .config file back and do a 'make oldconfig', you will be
prompted for any new options.
I tend to have a few of these .config's for different setups. eg.
config-2.2-new_raid-lvm-kdb
config-2.2-lvm-kdb
etc.
- Joe
>
> --
> regs
> rupert
>
> _______________________________________________
> linux-lvm mailing list
> linux-lvm@sistina.com
> http://lists.sistina.com/mailman/listinfo/linux-lvm
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [linux-lvm] Patching my kernel.
2001-05-09 15:03 ` Joe Thornber
@ 2001-05-09 11:43 ` Rupert Heesom
2001-05-09 18:58 ` Joe Thornber
0 siblings, 1 reply; 13+ messages in thread
From: Rupert Heesom @ 2001-05-09 11:43 UTC (permalink / raw)
To: linux-lvm; +Cc: hornber
On 09 May 2001 16:03:19 +0100, Joe Thornber wrote:
> On Wed, May 09, 2001 at 06:39:31AM -0400, Rupert Heesom wrote:
> > On 09 May 2001 08:51:10 +0200, Luca Berra wrote:
> > > On Tue, May 08, 2001 at 07:11:14PM -0400, Rupert Heesom wrote:
> > BTW, I know there's a way to keep the config from the "used kernel", so
> > that I don't have to guess the settings again for my system (I made
> > several config errors last time). Can you remind me how to migrate the
> > .config file across to a new source tree? I'll try & find some docs on
> > how to do this, but have forgotten where I last read about it.
>
> Just keep a copy of the .config file, when you untar a new kernel
> tree copy the .config file back and do a 'make oldconfig', you will be
> prompted for any new options.
>
> I tend to have a few of these .config's for different setups. eg.
>
> config-2.2-new_raid-lvm-kdb
> config-2.2-lvm-kdb
> etc.
Joe: I've untarred a new kernel archive & sorted the linux symlink to
"kernel-2.4.3", etc. Copied the .config file to the linux directory.
Then ran the patch -p1 < <path to patch file> from the linux directory.
I got a whole lot of errors -
[root@localhost linux]#patch -p1 <
/usr/src/patch_gen_7/PATCHES/lvm-0.9.1_beta7-2.4.3.patch
patching file include/linux/lvm.h
Hunk #1 FAILED at 67.
Hunk #2 FAILED at 75.
Hunk #3 FAILED at 616.
Hunk #4 FAILED at 639.
4 out of 4 hunks FAILED -- saving rejects to file
include/linux/lvm.h.rej
patching file drivers/md/lvm.c
Hunk #1 FAILED at 194.
Hunk #2 FAILED at 359.
Hunk #3 succeeded at 459 with fuzz 2 (offset 11 lines).
Hunk #4 FAILED at 1126.
Hunk #5 FAILED at 1166.
Hunk #6 FAILED at 1204.
Hunk #7 FAILED at 1310.
Hunk #8 FAILED at 1350.
Hunk #9 FAILED at 2314.
8 out of 9 hunks FAILED -- saving rejects to file drivers/md/lvm.c.rej
can't find file to patch@input line 229
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|--- linux/drivers/md/lvm-fs.c.orig Wed Apr 11 23:49:20 2001
|+++ linux/drivers/md/lvm-fs.c Mon May 7 18:40:26 2001
--------------------------
File to patch:
What am I doing wrong?? I next tried to run the "make oldconfig" from
the linux directory. It didn't ask for any input, just did it's thing.
Then I reran the patch command, but with the same result.
What a learning curve!! What next?
--
regs
rupert
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [linux-lvm] Patching my kernel.
2001-05-09 11:43 ` Rupert Heesom
@ 2001-05-09 18:58 ` Joe Thornber
2001-05-10 22:48 ` Rupert Heesom
0 siblings, 1 reply; 13+ messages in thread
From: Joe Thornber @ 2001-05-09 18:58 UTC (permalink / raw)
To: linux-lvm
On Wed, May 09, 2001 at 07:43:14AM -0400, Rupert Heesom wrote:
> Joe: I've untarred a new kernel archive & sorted the linux symlink to
> "kernel-2.4.3", etc. Copied the .config file to the linux directory.
>
> Then ran the patch -p1 < <path to patch file> from the linux directory.
>
> I got a whole lot of errors -
>
> [root@localhost linux]#patch -p1 <
> /usr/src/patch_gen_7/PATCHES/lvm-0.9.1_beta7-2.4.3.patch
> patching file include/linux/lvm.h
> Hunk #1 FAILED at 67.
<snip>
hmmmm... not sure what you've done here. It looks like the patch
generation has gone astray. My advice is to start with a fresh LVM dir:
untar clean kernel
untar LVM_beta7
cd LVM
./configure
cd PATCHES
make
cd /usr/src/linux
patch -p1 < <where ever>/LVM/PATCHES/lvm-0.9.1_beta7-2.4.3.patch
If this doesn't work please send me (off list) the LVM patch so I can
see what has gone wrong.
Also please be aware that beta7 needs an extra little patch to fix the
get_hardblocksize -> hardsectsize name change. Search this mailing
list for it, or grab code from CVS.
> What a learning curve!! What next?
Please persevere, it gets easy once you've done it a couple of times.
- Joe
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [linux-lvm] Patching my kernel.
2001-05-09 18:58 ` Joe Thornber
@ 2001-05-10 22:48 ` Rupert Heesom
0 siblings, 0 replies; 13+ messages in thread
From: Rupert Heesom @ 2001-05-10 22:48 UTC (permalink / raw)
To: linux-lvm
Well, Joe:
It worked this time. As I write this, the kernel is compiling itself
after the patch install.
I think I know what went wrong last time......I'd just finished
discussing with someone how to retain the kernel config settings from
the previously used source tree. What I did last time was to copy the
old .config file into /usr/src/linux. Do the "make oldconfig" command,
THEN do the patch install.
Obviously from what I've seen now, I need to to the patch install before
the "make oldconfig". I should have mentioned it in my post to you,
but I probably didn't think of it!
On 09 May 2001 19:58:43 +0100, Joe Thornber wrote:
> On Wed, May 09, 2001 at 07:43:14AM -0400, Rupert Heesom wrote:
>
> hmmmm... not sure what you've done here. It looks like the patch
> generation has gone astray. My advice is to start with a fresh LVM dir:
>
> untar clean kernel
> untar LVM_beta7
> cd LVM
> ./configure
> cd PATCHES
> make
> cd /usr/src/linux
> patch -p1 < <where ever>/LVM/PATCHES/lvm-0.9.1_beta7-2.4.3.patch
>
> If this doesn't work please send me (off list) the LVM patch so I can
> see what has gone wrong.
>
> Also please be aware that beta7 needs an extra little patch to fix the
> get_hardblocksize -> hardsectsize name change. Search this mailing
> list for it, or grab code from CVS.
I forgot about this.... but looking at the msgs regarding what you
mentioned here, looks like it's s/390 code, so not something that will
affect my intel processor.
>
> > What a learning curve!! What next?
>
> Please persevere, it gets easy once you've done it a couple of times.
Yes, I didn't mean that to come across sharply. I *ALWAYS* persevere!
When I first started with Linux, it took me 2 WEEKS to get diald working
on my PC so that I could use the internet the way I wanted (2 days
because of a pw typed into the config file wrong!).
--
regs
rupert
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [linux-lvm] Patching my kernel.
2001-05-08 23:11 [linux-lvm] Patching my kernel Rupert Heesom
2001-05-09 6:51 ` Luca Berra
@ 2001-05-09 11:55 ` David Vidal Rodriguez
2001-05-09 13:11 ` Joe Thornber
1 sibling, 1 reply; 13+ messages in thread
From: David Vidal Rodriguez @ 2001-05-09 11:55 UTC (permalink / raw)
To: linux-lvm
>
> depmod: *** Unresolved symbols in
> /lib/modules/2.4.3/kernel/drivers/md/lvm-mod.odepmod: lvm_init_fs
> depmod: lvm_fs_remove_vg
> depmod: lvm_fin_fs
> depmod: lvm_fs_remove_lv
> depmod: lvm_fs_remove_pv
> depmod: lvm_fs_create_vg
> depmod: lvm_fs_create_lv
> depmod: lvm_fs_create_pv
I have the same type of problem (unresolved symbols), but with a _clean_
2.4.0 kernel and LVM v0.9.1_beta<x>, having blindly followed the steps in
the INSTALL file...
--
------------------------------------------------------------------------
David Vidal R. (vidalrod@in.tum.de)
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [linux-lvm] Patching my kernel.
2001-05-09 11:55 ` David Vidal Rodriguez
@ 2001-05-09 13:11 ` Joe Thornber
2001-05-09 14:21 ` David Vidal Rodriguez
0 siblings, 1 reply; 13+ messages in thread
From: Joe Thornber @ 2001-05-09 13:11 UTC (permalink / raw)
To: linux-lvm
On Wed, May 09, 2001 at 01:55:48PM +0200, David Vidal Rodriguez wrote:
> >
> > depmod: *** Unresolved symbols in
> > /lib/modules/2.4.3/kernel/drivers/md/lvm-mod.odepmod: lvm_init_fs
> > depmod: lvm_fs_remove_vg
> > depmod: lvm_fin_fs
> > depmod: lvm_fs_remove_lv
> > depmod: lvm_fs_remove_pv
> > depmod: lvm_fs_create_vg
> > depmod: lvm_fs_create_lv
> > depmod: lvm_fs_create_pv
>
> I have the same type of problem (unresolved symbols), but with a _clean_
> 2.4.0 kernel and LVM v0.9.1_beta<x>, having blindly followed the steps in
> the INSTALL file...
The fragments file for 2.4.0 seems to be out of date. Try appending
the following lines to LVM/PATCHES/fragments-2.4.0
fragments/add_lvm_fs_2.4.patch
fragments/remove_lvm_snap_h_2.4.patch
Once you've patched your kernel make sure you do a 'make dep' again.
Out of interest, is there any reason that you are sticking with 2.4.0 ?
- Joe
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [linux-lvm] Patching my kernel.
2001-05-09 13:11 ` Joe Thornber
@ 2001-05-09 14:21 ` David Vidal Rodriguez
2001-05-09 17:29 ` Luca Berra
0 siblings, 1 reply; 13+ messages in thread
From: David Vidal Rodriguez @ 2001-05-09 14:21 UTC (permalink / raw)
To: linux-lvm
> Out of interest, is there any reason that you are sticking with 2.4.0 ?
Yes, it's because a clean Linus 2.4.x (where x > 0) doesn't compile correctly.
�?�?
--
------------------------------------------------------------------------
David Vidal R. (vidalrod@in.tum.de)
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [linux-lvm] Patching my kernel.
2001-05-09 14:21 ` David Vidal Rodriguez
@ 2001-05-09 17:29 ` Luca Berra
0 siblings, 0 replies; 13+ messages in thread
From: Luca Berra @ 2001-05-09 17:29 UTC (permalink / raw)
To: linux-lvm
On Wed, May 09, 2001 at 04:21:21PM +0200, David Vidal Rodriguez wrote:
> > Out of interest, is there any reason that you are sticking with 2.4.0 ?
>
> Yes, it's because a clean Linus 2.4.x (where x > 0) doesn't compile correctly.
> �?�?
strange which error are you getting?
L.
--
Luca Berra -- bluca@comedia.it
Communication Media & Services S.r.l.
/"\
\ / ASCII RIBBON CAMPAIGN
X AGAINST HTML MAIL
/ \
^ permalink raw reply [flat|nested] 13+ messages in thread
end of thread, other threads:[~2001-05-10 22:48 UTC | newest]
Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-05-08 23:11 [linux-lvm] Patching my kernel Rupert Heesom
2001-05-09 6:51 ` Luca Berra
2001-05-09 8:29 ` Joe Thornber
2001-05-09 10:39 ` Rupert Heesom
2001-05-09 14:43 ` Patrick Caulfield
2001-05-09 15:03 ` Joe Thornber
2001-05-09 11:43 ` Rupert Heesom
2001-05-09 18:58 ` Joe Thornber
2001-05-10 22:48 ` Rupert Heesom
2001-05-09 11:55 ` David Vidal Rodriguez
2001-05-09 13:11 ` Joe Thornber
2001-05-09 14:21 ` David Vidal Rodriguez
2001-05-09 17:29 ` Luca Berra
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.