Very long startup times of the lv*-tools
Hello [email protected],
I've just created a LVM here and the lv* commands are taking very long (lvcreate is working for 10 minutes and is keep on going). I used a 'strace -p PID' to get some more infos and I was amazed:
------------------------------------------------------------------------
stat64 ("/dev/discs/disc10/discs/disc10/discs/disc10/discs/disc10/discs/disc10/discs/disc10/discs/disc10/discs/disc10/discs/disc10/discs/disc10/discs/disc10/discs/disc10/discs/disc10/discs/disc10/discs/disc10/discs/disc10/discs/disc10/discs/disc10/discs/disc10/discs/disc10/discs/disc10/discs/disc10/discs/disc10/discs/disc10/discs/disc10/discs/disc10/discs/disc10/discs/disc10/discs/disc10/discs/disc10/discs/disc10/discs/disc10/discs/disc10/discs/disc10/discs/disc10/discs/disc10/discs/disc10/discs/disc10/discs/disc10/discs/disc125/ide/host0/bus0/target0/lun0/part1", 0xbfffe31c) = -1 ENOENT (No such file or directory)
stat64 ("/dev/discs/disc10/discs/disc10/discs/disc10/discs/disc10/discs/disc10/discs/disc10/discs/disc10/discs/disc10/discs/disc10/discs/disc10/discs/disc10/discs/disc10/discs/disc10/discs/disc10/discs/disc10/discs/disc10/discs/disc10/discs/disc10/discs/disc10/discs/disc10/discs/disc10/discs/disc10/discs/disc10/discs/disc10/discs/disc10/discs/disc10/discs/disc10/discs/disc10/discs/disc10/discs/disc10/discs/disc10/discs/disc10/discs/disc10/discs/disc10/discs/disc10/discs/disc10/discs/disc10/discs/disc10/discs/disc10/discs/disc160/ide/host0/bus0/target0/lun0/part1", 0xbfffe31c) = -1 ENOENT (No such file or directory)
[...]
There were thousand of lines with that or similar. Is that normal? Is it a bug?
------------------------------------------------------------------------
I've done the following (from the gentoo homepage:
http://www.gentoo.org/doc/en/lvm2.xml):
% mkdir -p /etc/lvm
% echo 'devices { filter=["r/cdrom/"] }' >/etc/lvm/lvm.conf % vgscan
% vgchange -a y
% pvcreate /dev/hde1 /dev/hdf1 /dev/hdg1
% vgcreate backup-raid /dev/hde1
% vgextend backup-raid /dev/hdf1
% vgextend backup-raid /dev/hdg1
% lvcreate -L566G -nmain backup-raid
I'm using lvm2 2.00.08 on a 'Linux fuzz 2.6.9-gentoo-r13 #1 Wed Dec 29 10:41:06 CET 2004 i686 AMD Athlon(tm) XP 2800+ AuthenticAMD GNU/Linux'
Is there is something known about this issue? What else can I check?
Signature · 1 line
So long... Fuzz
Quoted 4 lines · Erik Wasser
I'm using lvm2 2.00.08 on a 'Linux fuzz 2.6.9-gentoo-r13 #1 Wed Dec 29 10:41:06 CET 2004 i686 AMD Athlon(tm) XP 2800+ AuthenticAMD GNU/Linux'
Is there is something known about this issue? What else can I check?
Upgrade LVM2!
Anyone know why so many gentoo users find themselves using old versions like that and don't upgrade?
I don't see this with Debian or Fedora users.
Alasdair
Signature · 1 line
[email protected]
Quoted 11 lines · Alasdair G Kergon
Quoted 4 lines · Erik Wasser
I'm using lvm2 2.00.08 on a 'Linux fuzz 2.6.9-gentoo-r13 #1 Wed Dec 29 10:41:06 CET 2004 i686 AMD Athlon(tm) XP 2800+ AuthenticAMD GNU/Linux'
Is there is something known about this issue? What else can I check?
Upgrade LVM2!
Anyone know why so many gentoo users find themselves using old versions like that and don't upgrade?
I don't see this with Debian or Fedora users.
Because the gentoo developers are very timid in marking new versions of packages as stable. This philosophy works well for packages that are mostly stable. It doesn't work all that well with things that are being improved rapidly, such as lvm.
Putting the following lines in /etc/portage/package.keywords will cause gentoo to use the newest versions of these packages:
sys-libs/device-mapper ~x86
sys-fs/lvm2 ~x86
Interestingly, the kernel mentioned is rather update on the kernel patches.
Dave
Quoted 4 lines · Alasdair G Kergon
Upgrade LVM2!
Anyone know why so many gentoo users find themselves using old versions like that and don't upgrade?
At the moment gentoo list lvm2 as following:
lvm2-2.00.08: KEYWORDS="x86 ppc sparc amd64" lvm2-2.00.15: KEYWORDS="~x86 ppc ~sparc ~amd64 ppc64 ~alpha" lvm2-2.00.15-r1: KEYWORDS="~x86 ~ppc ~sparc ~amd64 ~ppc64 ~alpha" lvm2-2.00.25: KEYWORDS="~x86 ~ppc ~sparc ~amd64 ~ppc64 ~alpha hppa"
Where '~' meand "testing", and arch code w/o '~' means stable.
2.00.25 is the latest version offered by portage-system.
I am not any way accosiated to the those ebuilds, I just use them. If you like, I could file a bug about the current state of offers to the Gentoo's bugzilla.
BR, Jani
Signature · 1 line
Jani Averbach
Quoted 3 lines · Jani Averbach
lvm2-2.00.08: KEYWORDS="x86 ppc sparc amd64"
Where '~' meand "testing", and arch code w/o '~' means stable.
2.00.08 should not be regarded as stable.
Quoted 1 line
2.00.25 is the latest version offered by portage-system.
which is OK, but .32 contains more bug fixes and should be the most stable version for most people.
Alasdair
Signature · 1 line
[email protected]
Quoted 9 lines · Alasdair G Kergon
Quoted 6 lines · Erik Wasser
I'm using lvm2 2.00.08 on a 'Linux fuzz 2.6.9-gentoo-r13 #1 Wed Dec 29 10:41:06 CET 2004 i686 AMD Athlon(tm) XP 2800+ AuthenticAMD GNU/Linux'
Is there is something known about this issue? What else can I check?
Upgrade LVM2!
Thanks for your help. lvm 2.00.25 is now working here fine.
Quoted 3 lines
Anyone know why so many gentoo users find themselves using old versions like that and don't upgrade?
I don't see this with Debian or Fedora users.
Well I think we have to blame the distributation politics for this. B-)
Signature · 1 line
So long... Fuzz