Skip to contentSkip to conversation

New: LVM volumes not detected

Bug 43359 [email protected] 2 participants 11 messages Jun 9, 2012 – Jun 14, 2012 2 messages not in the archive SCSI

lore
Share & tools
lore

[email protected]

author Acked-by Douglas Gilbert
#0 lore raw

https://bugzilla.kernel.org/show_bug.cgi?id=43359

Summary: LVM volumes not detected
Product: IO/Storage
Version: 2.5
Platform: All
OS/Version: Linux
Tree: Mainline
Status: NEW
Severity: normal
Priority: P1
Component: SCSI
AssignedTo: [email protected]
ReportedBy: [email protected]
Regression: No

With kernel 3.5-rc1, LVM volumes are not detected. A bisection leads to the following commit:

commit 794c10fa0fa4d1781c5651c31e3d4d0b71629128

Author: Jörn Engel <[email protected]>
Date:   Thu Apr 12 17:32:48 2012 -0400

[SCSI] sg: remove while (1) non-loop

The while (1) construct isn't actually a loop at all. So let's not pretent and obfuscate the code.

Unfortunately, I cannot revert it on top of 3.5-rc1 or 3.5-rc2 to confirm this. My harddisk is using the AHCI drivers. Can somebody explains what's happening ?

Signature · 6 lines
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.--
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
#1 lore raw

[Bug 43359] LVM volumes not detected

https://bugzilla.kernel.org/show_bug.cgi?id=43359

François Valenduc <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

     Kernel Version|                            |3.5-rc1
         Regression|No                          |Yes
Signature · 6 lines
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.--
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
#2 lore raw

[Bug 43359] LVM volumes not detected

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=43359

--- Comment #1 from François Valenduc <[email protected]> 2012-06-10 06:12:06 --- This problem seems impossible to bisect. The first run (794c10fa0fa4d) was the result of the bisection limited to drivers and fs directories. A second run where I also added the block directory lead to a commit related to watchdog, which is impossible since I don't use watchdog on my computer.
A 3rd run on the whole kernel tree leads to this commit:

From 4523e1458566a0e8ecfaff90f380dd23acc44d27 Mon Sep 17 00:00:00 2001
From: Dave Hansen <[email protected]>
Date: Wed, 30 May 2012 07:51:07 -0700
Subject: [PATCH] mm: fix vma_resv_map() NULL pointer

hugetlb_reserve_pages() can be used for either normal file-backed hugetlbfs mappings, or MAP_HUGETLB. In the MAP_HUGETLB, semi-anonymous mode, there is not a VMA around. The new call to resv_map_put() assumed that there was, and resulted in a NULL pointer dereference:

This is also strange because I don't use hugetlb. I can revert this commit but it doesn't change anything. Does anybody have an idea on what I could do to further investigate this problem.

Signature · 6 lines
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.--
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

A message that is not in the archive (sent off-list or not yet received): 20120610061206.E0E081205DA-590EEB7GvNiWaY/[email protected]

#4 lore raw

Re: [Bug 43359] LVM volumes not detected

I am using CentOS 6.x and I hit this bug with 3.5-rc2. I tried to look in to the boot process and found that the initramfs generated from 3.5.-rc2 is not good for lvm root. It was missing /lib/modules/<uname -r>/kernel/drivers/md/*". Also /sbin/ doesn't have lvm_scan and was missing a bunch of other files too.

CCing initramfs folks. Any help?

Quoted 34 lines · On Sat, Jun 9, 2012 at 11:12 PM, <bugzilla-daemon-590EEB7GvNiWaY/ihj7yzEB+6BGk…

https://bugzilla.kernel.org/show_bug.cgi?id=43359

--- Comment #1 from François Valenduc <[email protected]>  2012-06-10 06:12:06 --- This problem seems impossible to bisect. The first run (794c10fa0fa4d) was the result of the bisection limited to drivers and fs directories. A second run where I also added the block directory lead to a commit related to watchdog, which is impossible since I don't use watchdog on my computer.
A 3rd run on the whole kernel tree leads to this commit:

From 4523e1458566a0e8ecfaff90f380dd23acc44d27 Mon Sep 17 00:00:00 2001
From: Dave Hansen <[email protected]>
Date: Wed, 30 May 2012 07:51:07 -0700
Subject: [PATCH] mm: fix vma_resv_map() NULL pointer

hugetlb_reserve_pages() can be used for either normal file-backed hugetlbfs mappings, or MAP_HUGETLB.  In the MAP_HUGETLB, semi-anonymous mode, there is not a VMA around.  The new call to resv_map_put() assumed that there was, and resulted in a NULL pointer dereference:

This is also strange because I don't use hugetlb. I can revert this commit but it doesn't change anything. Does anybody have an idea on what I could do to further investigate this problem.

--
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.--
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to [email protected] More majordomo info at  http://vger.kernel.org/majordomo-info.html

A message that is not in the archive (sent off-list or not yet received): CAFR8uefjqTqbg545BExg1F_QR7cwyzOgF1x0WA61iH11bbMo5w-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org

#6 lore raw

Re: [Bug 43359] LVM volumes not detected

Thanks to Harald and Bryn, I narrowed it to local changes in my system.

Quoted 45 lines · Muthu Kumar

I am using CentOS 6.x and I hit this bug with 3.5-rc2. I tried to look in to the boot process and found that the initramfs generated from 3.5.-rc2 is not good for lvm root. It was missing /lib/modules/<uname -r>/kernel/drivers/md/*". Also /sbin/ doesn't have lvm_scan and was missing a bunch of other files too.

CCing initramfs folks. Any help?

Quoted 34 lines · On Sat, Jun 9, 2012 at 11:12 PM,  <bugzilla-daemon-590EEB7GvNiWaY/ihj7yzA@publi…

https://bugzilla.kernel.org/show_bug.cgi?id=43359

--- Comment #1 from François Valenduc <[email protected]>  2012-06-10 06:12:06 --- This problem seems impossible to bisect. The first run (794c10fa0fa4d) was the result of the bisection limited to drivers and fs directories. A second run where I also added the block directory lead to a commit related to watchdog, which is impossible since I don't use watchdog on my computer.
A 3rd run on the whole kernel tree leads to this commit:

From 4523e1458566a0e8ecfaff90f380dd23acc44d27 Mon Sep 17 00:00:00 2001
From: Dave Hansen <[email protected]>
Date: Wed, 30 May 2012 07:51:07 -0700
Subject: [PATCH] mm: fix vma_resv_map() NULL pointer

hugetlb_reserve_pages() can be used for either normal file-backed hugetlbfs mappings, or MAP_HUGETLB.  In the MAP_HUGETLB, semi-anonymous mode, there is not a VMA around.  The new call to resv_map_put() assumed that there was, and resulted in a NULL pointer dereference:

This is also strange because I don't use hugetlb. I can revert this commit but it doesn't change anything. Does anybody have an idea on what I could do to further investigate this problem.

--
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.--
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to [email protected] More majordomo info at  http://vger.kernel.org/majordomo-info.html

#7 lore raw

[Bug 43359] LVM volumes not detected

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=43359

Alan <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |[email protected]

--- Comment #2 from Alan <[email protected]> 2012-06-13 13:07:49 --- Might be worth attaching a dmesg of both a working and failing boot

Signature · 3 lines
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#8 lore raw

[Bug 43359] LVM volumes not detected

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=43359

François Valenduc <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

             Status|NEW                         |RESOLVED
         Resolution|                            |UNREPRODUCIBLE

--- Comment #3 from François Valenduc <[email protected]> 2012-06-14 04:32:27 --- I don't understand at all what has happened but the problem is gone. I recompiled my kernel without using ccache and it works correctly. I use ccache since a very long time and it's the first time I encounter such a problem.

Signature · 6 lines
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.--
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
#9 lore raw

[Bug 43359] LVM volumes not detected

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=43359

Alan <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |CLOSED

--- Comment #4 from Alan <[email protected]> 2012-06-14 08:58:29 --- Thanks for trying.

Signature · 3 lines
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#10 lore raw

[Bug 43359] LVM volumes not detected

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=43359

--- Comment #5 from Anonymous Emailer <[email protected]> 2012-06-14 16:16:35 ---
Reply-To: [email protected]

I am using CentOS 6.x and I hit this bug with 3.5-rc2. I tried to look in to the boot process and found that the initramfs generated from 3.5.-rc2 is not good for lvm root. It was missing /lib/modules/<uname -r>/kernel/drivers/md/*". Also /sbin/ doesn't have lvm_scan and was missing a bunch of other files too.

CCing initramfs folks. Any help?

Quoted 34 lines · On Sat, Jun 9, 2012 at 11:12 PM, <[email protected]> wrote:

https://bugzilla.kernel.org/show_bug.cgi?id=43359

--- Comment #1 from François Valenduc <[email protected]>  2012-06-10 06:12:06 --- This problem seems impossible to bisect. The first run (794c10fa0fa4d) was the result of the bisection limited to drivers and fs directories. A second run where I also added the block directory lead to a commit related to watchdog, which is impossible since I don't use watchdog on my computer.
A 3rd run on the whole kernel tree leads to this commit:

From 4523e1458566a0e8ecfaff90f380dd23acc44d27 Mon Sep 17 00:00:00 2001
From: Dave Hansen <[email protected]>
Date: Wed, 30 May 2012 07:51:07 -0700
Subject: [PATCH] mm: fix vma_resv_map() NULL pointer

hugetlb_reserve_pages() can be used for either normal file-backed hugetlbfs mappings, or MAP_HUGETLB.  In the MAP_HUGETLB, semi-anonymous mode, there is not a VMA around.  The new call to resv_map_put() assumed that there was, and resulted in a NULL pointer dereference:

This is also strange because I don't use hugetlb. I can revert this commit but it doesn't change anything. Does anybody have an idea on what I could do to further investigate this problem.

--
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.--
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Signature · 6 lines
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.--
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
#11 lore raw

[Bug 43359] LVM volumes not detected

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=43359

--- Comment #6 from Alan <[email protected]> 2012-06-14 16:39:06 --- Ok so that's a centos initrd bug. Probably best to open a centos bug for it.

Signature · 3 lines
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#12 lore raw

[Bug 43359] LVM volumes not detected

In reply to [email protected]

https://bugzilla.kernel.org/show_bug.cgi?id=43359

Bryn M. Reeves <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |[email protected]

--- Comment #7 from Bryn M. Reeves <[email protected]> 2012-06-14 17:01:48 --- CentOS 6 dracut doesn't support 3.x kernels (probably easy to persuade it to but not sure that they'd want a bug on that).

I talked to Muthu off-list and his problem turned out to be with a local blkid build that was breaking dracut's LVM module check script.

Signature · 3 lines
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.