All of lore.kernel.org
 help / color / mirror / Atom feed
* [linux-lvm] upgrade from kernel 2.4 to 2.6
@ 2004-02-23 22:13 Derrick 'dman' Hudson
  2004-02-24  2:24 ` Luca Berra
  0 siblings, 1 reply; 8+ messages in thread
From: Derrick 'dman' Hudson @ 2004-02-23 22:13 UTC (permalink / raw)
  To: linux-lvm

[-- Attachment #1: Type: text/plain, Size: 1104 bytes --]

The FAQ doesn't mention this hurdle.  I found that upgrading from
kernel 2.4.23+lvm1 to 2.4.23+lvm2 is really quite trivial
(particularly with debian - I didn't have to do anything).  However,
the 2.6 kernel won't boot because lvm can't find any volume groups.
I've tried 2.6.0, 2.6.2 and most recently 2.6.3.  In each case, the
device mapper (dm-mod) is loaded and /dev/mapper/control exists
(I'm using devfsd).  What did I miss?

TIA,
-D

-- 
\begin{humor}
Disclaimer:
If I receive a message from you, you are agreeing that:
   1. I am by definition, "the intended recipient"
   2. All information in the email is mine to do with as I see fit and make
        such financial profit, political mileage, or good joke as it lends
        itself to. In particular, I may quote it on USENET or the WWW.
   3. I may take the contents as representing the views of your company.
   4. This overrides any disclaimer or statement of confidentiality that may
        be included on your message
\end{humor}
 
www: http://dman13.dyndns.org/~dman/            jabber: dman@dman13.dyndns.org

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [linux-lvm] upgrade from kernel 2.4 to 2.6
  2004-02-23 22:13 [linux-lvm] upgrade from kernel 2.4 to 2.6 Derrick 'dman' Hudson
@ 2004-02-24  2:24 ` Luca Berra
  2004-02-24  8:11   ` [linux-lvm] " Derrick 'dman' Hudson
  0 siblings, 1 reply; 8+ messages in thread
From: Luca Berra @ 2004-02-24  2:24 UTC (permalink / raw)
  To: linux-lvm

On Mon, Feb 23, 2004 at 10:16:33PM -0500, Derrick 'dman' Hudson wrote:
>The FAQ doesn't mention this hurdle.  I found that upgrading from
>kernel 2.4.23+lvm1 to 2.4.23+lvm2 is really quite trivial
>(particularly with debian - I didn't have to do anything).  However,
>the 2.6 kernel won't boot because lvm can't find any volume groups.
>I've tried 2.6.0, 2.6.2 and most recently 2.6.3.  In each case, the
>device mapper (dm-mod) is loaded and /dev/mapper/control exists
>(I'm using devfsd).  What did I miss?
>
logs.



-- 
Luca Berra -- bluca@comedia.it
        Communication Media & Services S.r.l.
 /"\
 \ /     ASCII RIBBON CAMPAIGN
  X        AGAINST HTML MAIL
 / \

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [linux-lvm] Re: upgrade from kernel 2.4 to 2.6
  2004-02-24  2:24 ` Luca Berra
@ 2004-02-24  8:11   ` Derrick 'dman' Hudson
  2004-02-24 17:24     ` Luca Berra
  0 siblings, 1 reply; 8+ messages in thread
From: Derrick 'dman' Hudson @ 2004-02-24  8:11 UTC (permalink / raw)
  To: linux-lvm

[-- Attachment #1: Type: text/plain, Size: 1386 bytes --]

On Tue, Feb 24, 2004 at 08:26:03AM +0100, Luca Berra wrote:
| On Mon, Feb 23, 2004 at 10:16:33PM -0500, Derrick 'dman' Hudson wrote:
| >The FAQ doesn't mention this hurdle.  I found that upgrading from
| >kernel 2.4.23+lvm1 to 2.4.23+lvm2 is really quite trivial
| >(particularly with debian - I didn't have to do anything).  However,
| >the 2.6 kernel won't boot because lvm can't find any volume groups.
| >I've tried 2.6.0, 2.6.2 and most recently 2.6.3.  In each case, the
| >device mapper (dm-mod) is loaded and /dev/mapper/control exists
| >(I'm using devfsd).  What did I miss?
|
| logs.

Hmm.  How can I get logs?  /var is an lvm lv, and since lvm isn't
working nothing can be written to /var/log.  (/usr and /home are also
on lvm, so when I try booting 2.6 all I have is /)  The output I get
from running vgscan interactively is that no volume groups could be
found.  Likewise from pvscan and lvscan.  (if it would make a
difference, I can provide all the output, verbatim, later when I get
back to that machine's console)

-D

PS  Shame on me - I did forget to check /var/log/{messages,syslog} in
    the first place to see if they had any info.

-- 
If you want to know what God thinks about money,
just look at the people He gives it to.
    -- Old Irish Saying
 
www: http://dman13.dyndns.org/~dman/            jabber: dman@dman13.dyndns.org

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [linux-lvm] Re: upgrade from kernel 2.4 to 2.6
  2004-02-24  8:11   ` [linux-lvm] " Derrick 'dman' Hudson
@ 2004-02-24 17:24     ` Luca Berra
  2004-02-24 20:44       ` Derrick 'dman' Hudson
  0 siblings, 1 reply; 8+ messages in thread
From: Luca Berra @ 2004-02-24 17:24 UTC (permalink / raw)
  To: linux-lvm

On Tue, Feb 24, 2004 at 08:16:32AM -0500, Derrick 'dman' Hudson wrote:
>| >(I'm using devfsd).  What did I miss?
>| logs.
>Hmm.  How can I get logs?  /var is an lvm lv, and since lvm isn't
>working nothing can be written to /var/log.  (/usr and /home are also
look in /etc/lvm/lvm.conf
there is a log section, you can make lvm log to a different file, so
you can save and post logs from lvm activation commands.


L.

-- 
Luca Berra -- bluca@comedia.it
        Communication Media & Services S.r.l.
 /"\
 \ /     ASCII RIBBON CAMPAIGN
  X        AGAINST HTML MAIL
 / \

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [linux-lvm] Re: upgrade from kernel 2.4 to 2.6
  2004-02-24 17:24     ` Luca Berra
@ 2004-02-24 20:44       ` Derrick 'dman' Hudson
  2004-02-25 14:35         ` Luca Berra
  0 siblings, 1 reply; 8+ messages in thread
From: Derrick 'dman' Hudson @ 2004-02-24 20:44 UTC (permalink / raw)
  To: linux-lvm

[-- Attachment #1: Type: text/plain, Size: 940 bytes --]

On Tue, Feb 24, 2004 at 11:25:22PM +0100, Luca Berra wrote:
| On Tue, Feb 24, 2004 at 08:16:32AM -0500, Derrick 'dman' Hudson wrote:
| >| >(I'm using devfsd).  What did I miss?
| >| logs.
| >
| >Hmm.  How can I get logs?  /var is an lvm lv, and since lvm isn't
| >working nothing can be written to /var/log.  (/usr and /home are also
|
| look in /etc/lvm/lvm.conf
| there is a log section, you can make lvm log to a different file, so
| you can save and post logs from lvm activation commands.

Ok, I found that.

Here is the log file, in its entirety :

----
toollib.c:298 vgscan  No volume groups found
----

I did set verbosity=3 because the comments in lvm.conf said that is
the highest verbosity.

-D

-- 
Folly delights a man who lacks judgement,
but a man of understanding keeps a straight course.
        Proverbs 15:21
 
www: http://dman13.dyndns.org/~dman/            jabber: dman@dman13.dyndns.org

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [linux-lvm] Re: upgrade from kernel 2.4 to 2.6
  2004-02-24 20:44       ` Derrick 'dman' Hudson
@ 2004-02-25 14:35         ` Luca Berra
  2004-02-25 22:49           ` Derrick 'dman' Hudson
  0 siblings, 1 reply; 8+ messages in thread
From: Luca Berra @ 2004-02-25 14:35 UTC (permalink / raw)
  To: linux-lvm

On Tue, Feb 24, 2004 at 08:49:50PM -0500, Derrick 'dman' Hudson wrote:
>On Tue, Feb 24, 2004 at 11:25:22PM +0100, Luca Berra wrote:
>| look in /etc/lvm/lvm.conf
>| there is a log section, you can make lvm log to a different file, so
>| you can save and post logs from lvm activation commands.
>
>Ok, I found that.
>
>Here is the log file, in its entirety :
>
>----
>toollib.c:298 vgscan  No volume groups found
>----
>
>I did set verbosity=3 because the comments in lvm.conf said that is
>the highest verbosity.
try changing other parameters in the log {} section, eg 'level'

L.



-- 
Luca Berra -- bluca@comedia.it
        Communication Media & Services S.r.l.
 /"\
 \ /     ASCII RIBBON CAMPAIGN
  X        AGAINST HTML MAIL
 / \

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [linux-lvm] Re: upgrade from kernel 2.4 to 2.6
  2004-02-25 14:35         ` Luca Berra
@ 2004-02-25 22:49           ` Derrick 'dman' Hudson
  2004-03-06 11:02             ` Derrick 'dman' Hudson
  0 siblings, 1 reply; 8+ messages in thread
From: Derrick 'dman' Hudson @ 2004-02-25 22:49 UTC (permalink / raw)
  To: linux-lvm

[-- Attachment #1: Type: text/plain, Size: 3149 bytes --]

On Wed, Feb 25, 2004 at 08:36:31PM +0100, Luca Berra wrote:
| On Tue, Feb 24, 2004 at 08:49:50PM -0500, Derrick 'dman' Hudson wrote:
| >On Tue, Feb 24, 2004 at 11:25:22PM +0100, Luca Berra wrote:
| >| look in /etc/lvm/lvm.conf
| >| there is a log section, you can make lvm log to a different file, so
| >| you can save and post logs from lvm activation commands.
| >
| >Ok, I found that.
| >
| >Here is the log file, in its entirety :
| >
| >----
| >toollib.c:298 vgscan  No volume groups found
| >----
| >
| >I did set verbosity=3 because the comments in lvm.conf said that is
| >the highest verbosity.
| try changing other parameters in the log {} section, eg 'level'

Ah, finally I find some real information in the log!  Thanks for your
patience.

---- booting with kernel 2.6.3
filters/filter-composite.c:22 vgscan  Using /dev/hdb
device/dev-io.c:315 vgscan  Opened /dev/hdb
label/label.c:174 vgscan  /dev/hdb: No label detected
device/dev-io.c:339 vgscan  Closed /dev/hdb
label/label.c:266 vgscan  <backtrace>
filters/filter-composite.c:22 vgscan  Using /dev/hdb1
device/dev-io.c:315 vgscan  Opened /dev/hdb1
label/label.c:174 vgscan  /dev/hdb1: No label detected
device/dev-io.c:339 vgscan  Closed /dev/hdb1
label/label.c:266 vgscan  <backtrace>
toollib.c:298 vgscan  No volume groups found
filters/filter-persistent.c:170 vgscan  Dumping persistent device cache to /etc/lvm/.cache
----

The label wasn't found.  I guess that's a good enough reason to not
find the vg.

---- kernel 2.4.23
filters/filter-composite.c:22 vgscan  Using /dev/hdb
device/dev-io.c:315 vgscan  Opened /dev/hdb
label/label.c:174 vgscan  /dev/hdb: No label detected
device/dev-io.c:339 vgscan  Closed /dev/hdb
label/label.c:266 vgscan  <backtrace>
filters/filter-composite.c:22 vgscan  Using /dev/hdb1
device/dev-io.c:315 vgscan  Opened /dev/hdb1
label/label.c:156 vgscan  /dev/hdb1: lvm2 label detected
device/dev-io.c:339 vgscan  Closed /dev/hdb1
device/dev-io.c:315 vgscan  Opened /dev/hdb1
device/dev-io.c:339 vgscan  Closed /dev/hdb1
filters/filter-persistent.c:209 vgscan  /dev/initrd: Skipping (cached)
locking/file_locking.c:154 vgscan  Locking /var/lock/lvm/V_MaxtorDisk RB
toollib.c:309 vgscan  Finding volume group "MaxtorDisk"
device/dev-io.c:315 vgscan  Opened /dev/hdb1
label/label.c:156 vgscan  /dev/hdb1: lvm2 label detected
format_text/format-text.c:279 vgscan  Read MaxtorDisk metadata (1) from /dev/hdb1 at 2560 size 1469
vgscan.c:41 vgscan  Found volume group "MaxtorDisk" using metadata type lvm2
locking/file_locking.c:51 vgscan  Unlocking /var/lock/lvm/V_MaxtorDisk
device/dev-io.c:339 vgscan  Closed /dev/hdb1
filters/filter-persistent.c:170 vgscan  Dumping persistent device cache to /etc/lvm/.cache
----

The second log continues to find the lvs and works there.


Any ideas as to why it doesn't find the lvm label with kernel 2.6?
What should I do to try correcting it?

TIA,
-D

-- 
Pride only breeds quarrels,
but wisdom is found in those who take advice.
        Proverbs 13:10
 
www: http://dman13.dyndns.org/~dman/            jabber: dman@dman13.dyndns.org

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [linux-lvm] Re: upgrade from kernel 2.4 to 2.6
  2004-02-25 22:49           ` Derrick 'dman' Hudson
@ 2004-03-06 11:02             ` Derrick 'dman' Hudson
  0 siblings, 0 replies; 8+ messages in thread
From: Derrick 'dman' Hudson @ 2004-03-06 11:02 UTC (permalink / raw)
  To: linux-lvm

[-- Attachment #1: Type: text/plain, Size: 1116 bytes --]

On Wed, Feb 25, 2004 at 10:54:21PM -0500, Derrick 'dman' Hudson wrote:

[upgrading from 2.4+lvm2 to 2.6+lvm2, vg isn't found, boot fails]

| ---- booting with kernel 2.6.3
| filters/filter-composite.c:22 vgscan  Using /dev/hdb1
| device/dev-io.c:315 vgscan  Opened /dev/hdb1
| label/label.c:174 vgscan  /dev/hdb1: No label detected
| device/dev-io.c:339 vgscan  Closed /dev/hdb1
| label/label.c:266 vgscan  <backtrace>
| toollib.c:298 vgscan  No volume groups found
| ----

| Any ideas as to why it doesn't find the lvm label with kernel 2.6?
| What should I do to try correcting it?

Well, I blasted the disk and started over using 2.6 from the beginning
this time.  That really shouldn't be necessary.  Whatever.  I have
that machine working now.

-D

-- 
You have heard the saying that if you put a thousand monkeys in a room with a
thousand typewriters and waited long enough, eventually you would have a room
full of dead monkeys.
                                (Scott Adams - The Dilbert principle)
 
www: http://dman13.dyndns.org/~dman/            jabber: dman@dman13.dyndns.org

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2004-03-06 16:03 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-02-23 22:13 [linux-lvm] upgrade from kernel 2.4 to 2.6 Derrick 'dman' Hudson
2004-02-24  2:24 ` Luca Berra
2004-02-24  8:11   ` [linux-lvm] " Derrick 'dman' Hudson
2004-02-24 17:24     ` Luca Berra
2004-02-24 20:44       ` Derrick 'dman' Hudson
2004-02-25 14:35         ` Luca Berra
2004-02-25 22:49           ` Derrick 'dman' Hudson
2004-03-06 11:02             ` Derrick 'dman' Hudson

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.