* [linux-lvm] LV only detected when using "lvscan -D" on amd64 kernel
@ 2003-10-24 11:10 Felix Domke
2003-10-25 2:09 ` Heinz J . Mauelshagen
0 siblings, 1 reply; 8+ messages in thread
From: Felix Domke @ 2003-10-24 11:10 UTC (permalink / raw)
To: linux-lvm
Hi,
i have an amd64-based machine, upgraded from a normal one. I'm using
debian, right now still the 32bit version (except for compiling the kernel).
I'm using
Linux opt 2.4.22-bk38 #4 SMP Wed Oct 22 06:44:13 UTC 2003 x86_64 GNU/Linux
using
# dmesg | grep "LVM"
LVM version 1.0.7(28/03/2003)
The LVM consists of 4 disks, two 40GB, one 20GB and one 120GB, gives a
total of roughly 220GB. All disks seem to work properly,
pvscan gives
# pvscan
pvscan -- reading all physical volumes (this may take a while...)
pvscan -- ACTIVE PV "/dev/hdg" of VG "fast" [115.03 GB / 0 free]
pvscan -- ACTIVE PV "/dev/hdf" of VG "fast" [19.16 GB / 0 free]
pvscan -- ACTIVE PV "/dev/hdc" of VG "fast" [38.16 GB / 0 free]
pvscan -- ACTIVE PV "/dev/hdd" of VG "fast" [38.16 GB / 0 free]
pvscan -- total: 4 [210.54 GB] / in use: 4 [210.54 GB] / in no VG: 0 [0]
vgscan gives
# vgscan
vgscan -- reading all physical volumes (this may take a while...)
vgscan -- found active volume group "fast"
vgscan -- "/etc/lvmtab" and "/etc/lvmtab.d" successfully created
vgscan -- WARNING: This program does not do a VGDA backup of your volume
group
so everything looks fine. The logical volume worked fine with the old
kernel (2.4.20 or something like this, for ia32.).
but
# lvscan
lvscan -- no logical volumes found
and
# vgdisplay
--- Volume group ---
VG Name fast
VG Access read/write
VG Status available/resizable
VG # 0
MAX LV 256
Cur LV 0
Open LV 0
MAX LV Size 255.99 GB
Max PV 256
Cur PV 4
Act PV 4
VG Size 210.52 GB
PE Size 4 MB
Total PE 53893
Alloc PE / Size 0 / 0
Free PE / Size 53893 / 210.52 GB
VG UUID NiBxzC-W5zF-Mb37-5ajN-ljE9-5k53-Fzc26O
So the logical volume seems to be gone :/
HOWEVER,
# lvscan -D
lvscan -- reading all physical volumes (this may take a while...)
lvscan -- inactive "/dev/fast/lvol1" [210.52 GB]
lvscan -- 1 logical volumes with 210.52 GB total in 1 volume group
lvscan -- 1 inactive logical volumes
and
# vgdisplay -D
--- Volume group ---
VG Name fast
VG Access read/write
VG Status NOT available/resizable
VG # 0
MAX LV 256
Cur LV 1
Open LV 0
MAX LV Size 255.99 GB
Max PV 256
Cur PV 4
Act PV 4
VG Size 210.52 GB
PE Size 4 MB
Total PE 53893
Alloc PE / Size 53893 / 210.52 GB
Free PE / Size 0 / 0
VG UUID NiBxzC-W5zF-Mb37-5ajN-ljE9-5k53-Fzc26O
so i think there must be still some hope. Looks like the kernel LVM
stuff is somehow broken. Can this be a 64bit issue? Is there anything i
could test/upgrade/whatever? Do you need more outputs?
Or did i simply forget to do anything?
thanks,
Felix
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [linux-lvm] LV only detected when using "lvscan -D" on amd64 kernel
2003-10-24 11:10 [linux-lvm] LV only detected when using "lvscan -D" on amd64 kernel Felix Domke
@ 2003-10-25 2:09 ` Heinz J . Mauelshagen
2003-10-26 11:54 ` Felix Domke
0 siblings, 1 reply; 8+ messages in thread
From: Heinz J . Mauelshagen @ 2003-10-25 2:09 UTC (permalink / raw)
To: linux-lvm
Felix,
this definitely looks like a 64bit ioctl related problem.
I don't have the equipment to test here so help (is external access to
your machine possible ?) is needed.
Regards,
Heinz -- The LVM Guy --
On Fri, Oct 24, 2003 at 06:12:56PM +0200, Felix Domke wrote:
> Hi,
>
> i have an amd64-based machine, upgraded from a normal one. I'm using
> debian, right now still the 32bit version (except for compiling the kernel).
>
> I'm using
> Linux opt 2.4.22-bk38 #4 SMP Wed Oct 22 06:44:13 UTC 2003 x86_64 GNU/Linux
>
> using
> # dmesg | grep "LVM"
> LVM version 1.0.7(28/03/2003)
>
> The LVM consists of 4 disks, two 40GB, one 20GB and one 120GB, gives a
> total of roughly 220GB. All disks seem to work properly,
> pvscan gives
> # pvscan
> pvscan -- reading all physical volumes (this may take a while...)
> pvscan -- ACTIVE PV "/dev/hdg" of VG "fast" [115.03 GB / 0 free]
> pvscan -- ACTIVE PV "/dev/hdf" of VG "fast" [19.16 GB / 0 free]
> pvscan -- ACTIVE PV "/dev/hdc" of VG "fast" [38.16 GB / 0 free]
> pvscan -- ACTIVE PV "/dev/hdd" of VG "fast" [38.16 GB / 0 free]
> pvscan -- total: 4 [210.54 GB] / in use: 4 [210.54 GB] / in no VG: 0 [0]
>
> vgscan gives
> # vgscan
> vgscan -- reading all physical volumes (this may take a while...)
> vgscan -- found active volume group "fast"
> vgscan -- "/etc/lvmtab" and "/etc/lvmtab.d" successfully created
> vgscan -- WARNING: This program does not do a VGDA backup of your volume
> group
>
> so everything looks fine. The logical volume worked fine with the old
> kernel (2.4.20 or something like this, for ia32.).
>
> but
> # lvscan
> lvscan -- no logical volumes found
>
> and
> # vgdisplay
> --- Volume group ---
> VG Name fast
> VG Access read/write
> VG Status available/resizable
> VG # 0
> MAX LV 256
> Cur LV 0
> Open LV 0
> MAX LV Size 255.99 GB
> Max PV 256
> Cur PV 4
> Act PV 4
> VG Size 210.52 GB
> PE Size 4 MB
> Total PE 53893
> Alloc PE / Size 0 / 0
> Free PE / Size 53893 / 210.52 GB
> VG UUID NiBxzC-W5zF-Mb37-5ajN-ljE9-5k53-Fzc26O
>
> So the logical volume seems to be gone :/
>
> HOWEVER,
>
> # lvscan -D
> lvscan -- reading all physical volumes (this may take a while...)
> lvscan -- inactive "/dev/fast/lvol1" [210.52 GB]
> lvscan -- 1 logical volumes with 210.52 GB total in 1 volume group
> lvscan -- 1 inactive logical volumes
>
> and
>
> # vgdisplay -D
> --- Volume group ---
> VG Name fast
> VG Access read/write
> VG Status NOT available/resizable
> VG # 0
> MAX LV 256
> Cur LV 1
> Open LV 0
> MAX LV Size 255.99 GB
> Max PV 256
> Cur PV 4
> Act PV 4
> VG Size 210.52 GB
> PE Size 4 MB
> Total PE 53893
> Alloc PE / Size 53893 / 210.52 GB
> Free PE / Size 0 / 0
> VG UUID NiBxzC-W5zF-Mb37-5ajN-ljE9-5k53-Fzc26O
>
> so i think there must be still some hope. Looks like the kernel LVM
> stuff is somehow broken. Can this be a 64bit issue? Is there anything i
> could test/upgrade/whatever? Do you need more outputs?
> Or did i simply forget to do anything?
>
>
> thanks,
> Felix
>
>
> _______________________________________________
> linux-lvm mailing list
> linux-lvm@sistina.com
> http://lists.sistina.com/mailman/listinfo/linux-lvm
> read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/
*** Software bugs are stupid.
Nevertheless it needs not so stupid people to solve them ***
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Heinz Mauelshagen Sistina Software Inc.
Senior Consultant/Developer Am Sonnenhang 11
56242 Marienrachdorf
Germany
Mauelshagen@Sistina.com +49 2626 141200
FAX 924446
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [linux-lvm] LV only detected when using "lvscan -D" on amd64 kernel
2003-10-25 2:09 ` Heinz J . Mauelshagen
@ 2003-10-26 11:54 ` Felix Domke
2003-10-27 5:00 ` Heinz J . Mauelshagen
0 siblings, 1 reply; 8+ messages in thread
From: Felix Domke @ 2003-10-26 11:54 UTC (permalink / raw)
To: linux-lvm
Heinz J . Mauelshagen wrote:
>Felix,
>
>this definitely looks like a 64bit ioctl related problem.
>I don't have the equipment to test here so help (is external access to
>your machine possible ?) is needed.
>
>
Hi,
i could setup external access to the machine, but be aware that it
consists of a chroot'ed 64bit hacked-together debian, so compiling
something with 64bit isn't any fun at all. The 32bit userspace however
is fine.
I tried to compile the lvmtools as 64bit, but the result didn't change.
are there any points where i can put some debug printfs/printks in the
sources to work out where it fails? I never looked at the LVM internals,
so i don't know what happens where. Does the kernel space reads and
parses the metadata? Or does the userspace parses it and passes it to
the kernel?
Felix
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [linux-lvm] LV only detected when using "lvscan -D" on amd64 kernel
2003-10-26 11:54 ` Felix Domke
@ 2003-10-27 5:00 ` Heinz J . Mauelshagen
2003-10-27 8:55 ` Felix Domke
0 siblings, 1 reply; 8+ messages in thread
From: Heinz J . Mauelshagen @ 2003-10-27 5:00 UTC (permalink / raw)
To: linux-lvm
On Sun, Oct 26, 2003 at 06:56:25PM +0100, Felix Domke wrote:
> Heinz J . Mauelshagen wrote:
>
> >Felix,
> >
> >this definitely looks like a 64bit ioctl related problem.
> >I don't have the equipment to test here so help (is external access to
> >your machine possible ?) is needed.
> >
> >
> Hi,
>
> i could setup external access to the machine, but be aware that it
> consists of a chroot'ed 64bit hacked-together debian, so compiling
> something with 64bit isn't any fun at all. The 32bit userspace however
> is fine.
>
> I tried to compile the lvmtools as 64bit, but the result didn't change.
> are there any points where i can put some debug printfs/printks in the
> sources to work out where it fails? I never looked at the LVM internals,
> so i don't know what happens where. Does the kernel space reads and
> parses the metadata? Or does the userspace parses it and passes it to
> the kernel?
User space parses and passes it via ioctls to the kernel.
Please look at lvm.h for the ioctls defined and the structures involved.
Grep the LVM1 library source in tools/lib/ for "ioctl" to get you started.
>
> Felix
>
>
> _______________________________________________
> linux-lvm mailing list
> linux-lvm@sistina.com
> http://lists.sistina.com/mailman/listinfo/linux-lvm
> read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/
--
Regards,
Heinz -- The LVM Guy --
*** Software bugs are stupid.
Nevertheless it needs not so stupid people to solve them ***
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Heinz Mauelshagen Sistina Software Inc.
Senior Consultant/Developer Am Sonnenhang 11
56242 Marienrachdorf
Germany
Mauelshagen@Sistina.com +49 2626 141200
FAX 924446
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [linux-lvm] LV only detected when using "lvscan -D" on amd64 kernel
2003-10-27 5:00 ` Heinz J . Mauelshagen
@ 2003-10-27 8:55 ` Felix Domke
2003-10-27 9:09 ` Heinz J . Mauelshagen
0 siblings, 1 reply; 8+ messages in thread
From: Felix Domke @ 2003-10-27 8:55 UTC (permalink / raw)
To: linux-lvm
Hi,
>User space parses and passes it via ioctls to the kernel.
>Please look at lvm.h for the ioctls defined and the structures involved.
>Grep the LVM1 library source in tools/lib/ for "ioctl" to get you started.
>
>
Where exactly is the LV information passed to the kernel? is it
"LV_CREATE"?
The kernel seems to don't know the LV, the LV_STATUS_BYINDEX on the
"/dev/fast/group" returns "No such device or address" (ENXIO) for each
index, including 0, which should be the LV in question.
It looks as "lvm_do_lv_status_byindex" in the kernel returns -ENXIO
because vg_ptr->lv[lv_status_byindex_req.lv_index] is zero. Where is the
point where this array is written? I only found LV_CREATE, but that's
only called in vgimport, vgmerge and lvcreate, so it looks as there is
another place.
Can you point me in the direction?
Felix
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [linux-lvm] LV only detected when using "lvscan -D" on amd64 kernel
2003-10-27 8:55 ` Felix Domke
@ 2003-10-27 9:09 ` Heinz J . Mauelshagen
2003-10-27 9:37 ` Felix Domke
0 siblings, 1 reply; 8+ messages in thread
From: Heinz J . Mauelshagen @ 2003-10-27 9:09 UTC (permalink / raw)
To: linux-lvm
On Mon, Oct 27, 2003 at 03:58:04PM +0100, Felix Domke wrote:
> Hi,
>
> >User space parses and passes it via ioctls to the kernel.
> >Please look at lvm.h for the ioctls defined and the structures involved.
> >Grep the LVM1 library source in tools/lib/ for "ioctl" to get you started.
> >
> >
> Where exactly is the LV information passed to the kernel? is it
> "LV_CREATE"?
Yes.
>
> The kernel seems to don't know the LV, the LV_STATUS_BYINDEX on the
> "/dev/fast/group" returns "No such device or address" (ENXIO) for each
> index, including 0, which should be the LV in question.
>
> It looks as "lvm_do_lv_status_byindex" in the kernel returns -ENXIO
> because vg_ptr->lv[lv_status_byindex_req.lv_index] is zero. Where is the
> point where this array is written? I only found LV_CREATE, but that's
> only called in vgimport, vgmerge and lvcreate, so it looks as there is
See lvm_do_vg_create() and lvm_do_lv_create() functions in the driver.
> another place.
>
>
> Can you point me in the direction?
>
>
> Felix
>
>
>
> _______________________________________________
> linux-lvm mailing list
> linux-lvm@sistina.com
> http://lists.sistina.com/mailman/listinfo/linux-lvm
> read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/
--
Regards,
Heinz -- The LVM Guy --
*** Software bugs are stupid.
Nevertheless it needs not so stupid people to solve them ***
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Heinz Mauelshagen Sistina Software Inc.
Senior Consultant/Developer Am Sonnenhang 11
56242 Marienrachdorf
Germany
Mauelshagen@Sistina.com +49 2626 141200
FAX 924446
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [linux-lvm] LV only detected when using "lvscan -D" on amd64 kernel
2003-10-27 9:09 ` Heinz J . Mauelshagen
@ 2003-10-27 9:37 ` Felix Domke
2003-10-28 3:36 ` Heinz J . Mauelshagen
0 siblings, 1 reply; 8+ messages in thread
From: Felix Domke @ 2003-10-27 9:37 UTC (permalink / raw)
To: linux-lvm
Hi,
oh well, i just used 64bit versions of vgscan and vgchange, and it works
then. must be definitely a 32/64bit problem. (i didn't realized that i
had of course to re-run vgscan and vgchange before :/ ).
as i don't understand the 32bit->64bit ioctl wrapping (with pointers) i
don't know how it is supposed to work with 32bit userspace tools. If you
still want to have access to the machine, contact me.
Felix
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [linux-lvm] LV only detected when using "lvscan -D" on amd64 kernel
2003-10-27 9:37 ` Felix Domke
@ 2003-10-28 3:36 ` Heinz J . Mauelshagen
0 siblings, 0 replies; 8+ messages in thread
From: Heinz J . Mauelshagen @ 2003-10-28 3:36 UTC (permalink / raw)
To: linux-lvm
On Mon, Oct 27, 2003 at 04:39:55PM +0100, Felix Domke wrote:
> Hi,
>
> oh well, i just used 64bit versions of vgscan and vgchange, and it works
> then. must be definitely a 32/64bit problem. (i didn't realized that i
> had of course to re-run vgscan and vgchange before :/ ).
>
You better do ;)
So the solution is to work in a 64bit clean kernel/tool environment.
>
> as i don't understand the 32bit->64bit ioctl wrapping (with pointers) i
> don't know how it is supposed to work with 32bit userspace tools. If you
> still want to have access to the machine, contact me.
Thanks for the offer.
We'll probably have Itaniums pretty soon.
>
>
> Felix
>
>
> _______________________________________________
> linux-lvm mailing list
> linux-lvm@sistina.com
> http://lists.sistina.com/mailman/listinfo/linux-lvm
> read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/
--
Regards,
Heinz -- The LVM Guy --
*** Software bugs are stupid.
Nevertheless it needs not so stupid people to solve them ***
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Heinz Mauelshagen Sistina Software Inc.
Senior Consultant/Developer Am Sonnenhang 11
56242 Marienrachdorf
Germany
Mauelshagen@Sistina.com +49 2626 141200
FAX 924446
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2003-10-28 3:36 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-10-24 11:10 [linux-lvm] LV only detected when using "lvscan -D" on amd64 kernel Felix Domke
2003-10-25 2:09 ` Heinz J . Mauelshagen
2003-10-26 11:54 ` Felix Domke
2003-10-27 5:00 ` Heinz J . Mauelshagen
2003-10-27 8:55 ` Felix Domke
2003-10-27 9:09 ` Heinz J . Mauelshagen
2003-10-27 9:37 ` Felix Domke
2003-10-28 3:36 ` Heinz J . Mauelshagen
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.