Some questions after starting to use 1.1-rc1
Quoted 4 lines
Quoted 3 lines
1) I've been comparing the speed of LVM over RAID0 with striped LVM, using:
perl -e '$n=1900;$x="X"x(1024*1024);foreach $i(1..$n){print $x}'and I find that striped LVM takes 50% longer.
which stripe size did you use?
I don't think I specified -- so "the default" ?
Quoted 1 line
Were the PVs on non-saturated pathes?
What are "non-saturated pathes" ?
There were two PVs, each on an otherwise unused IDE bus.
Quoted 1 line
Did you compare LVM1 Raid0 to MD Raid0 on the very same hardware?
Yes.
Quoted 3 lines
Quoted 2 lines
2) When I tried to extend the striped partition, it failed when it used up the first two PVs, and will not start the next two. Ideas ?
That's a LVM1 constraint which will disapear with LVM2.
:-(
Is there an introductory document on device-mapper ?
Quoted 1 line
No need to vgexport to test it.
Hmmm ...
Quoted 1 line
Just stop one PV as you did
stop the RAID device while it's in use by LVM ?
Quoted 1 line
Quoted 1 line
b) should it be possible to export a VG if there is a PV of that VG
which
Quoted 1 line
Quoted 1 line
is still exported ?
?
Quoted 3 lines
Quoted 2 lines
5) is there some utility to display the contents of VGDA on disk,
/etc/lvm*, etc; show where the first PE is in a PV, etc ?Run "pvdata -a" on the particular PV.
Where does it say "PE 0 starts at byte offset <n> of the device" ?
Hi Piete.
Quoted 6 lines · Piete Brooks
Quoted 4 lines
Quoted 3 lines
1) I've been comparing the speed of LVM over RAID0 with striped LVM, using:
perl -e '$n=1900;$x="X"x(1024*1024);foreach $i(1..$n){print $x}'and I find that striped LVM takes 50% longer.
which stripe size did you use?
I don't think I specified -- so "the default" ?
That's 16k then.
Quoted 4 lines
Quoted 2 lines
Were the PVs on non-saturated pathes?
What are "non-saturated pathes" ?
Those with enough (free) bandwidth.
Quoted 7 lines
There were two PVs, each on an otherwise unused IDE bus.
Quoted 1 line
Did you compare LVM1 Raid0 to MD Raid0 on the very same hardware?
Yes.
Quoted 7 lines
Quoted 3 lines
Quoted 2 lines
2) When I tried to extend the striped partition, it failed when it used up the first two PVs, and will not start the next two. Ideas ?
That's a LVM1 constraint which will disapear with LVM2.
:-(
Is there an introductory document on device-mapper ?
Download the device-mapper code from
ftp://ftp.sistina.com/pub/LVM2/device-mapper/
and read the INTRO file.
Quoted 8 lines
Quoted 2 lines
No need to vgexport to test it.
Hmmm ...
Quoted 1 line
Just stop one PV as you did
stop the RAID device while it's in use by LVM ?
Well, if you do this while the extents on it are actively used, Linux will soon start to expose io errors. If you deactivate/activate the VG then it should still come up with "vgchange -qn".
If you want to avoid the io errors in your test case, deactivate the VG, deactivate the PV and "vgchange -qn" the VG again.
Quoted 5 lines
Quoted 2 lines
Quoted 2 lines
b) should it be possible to export a VG if there is a PV of that VG
which
Quoted 1 line
Quoted 1 line
is still exported ?
Quoted 7 lines
?
Quoted 3 lines
Quoted 2 lines
5) is there some utility to display the contents of VGDA on disk,
/etc/lvm*, etc; show where the first PE is in a PV, etc ?Run "pvdata -a" on the particular PV.
Where does it say "PE 0 starts at byte offset <n> of the device" ?
Sorry, my fault.
Use "pvdata -PP" and calculate "pe_on_disk.base" + "pe_on_disk_size", which gives you the offset of the first PE in bytes.
Or run "pvdisplay -v" on the PV, which lists the offsets for all PEs in sectors of 512 byte.
Quoted 7 lines
_______________________________________________
linux-lvm mailing list
[email protected]
http://lists.sistina.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://www.sistina.com/lvm/Pages/howto.html
Signature · 15 lines
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
[email protected] +49 2626 141200
FAX 924446
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-