* [linux-lvm] System locks solid under LVM
@ 1999-04-16 15:20 Tony Rogers
1999-04-17 0:59 ` Heinz Mauelshagen
0 siblings, 1 reply; 4+ messages in thread
From: Tony Rogers @ 1999-04-16 15:20 UTC (permalink / raw)
To: linux-lvm
Hello everyone,
My difficulties with LVM
========================
Overview
--------
I have been playing with LVM for some time now, with mixed results. I
have a machine at work which has LVM 0.6 installed. Although this is
not utilised heavily, it works fine.
On the other hand, I have a machine at home, also using LVM 0.6, which
has SERIOUS problems. In simple terms, the computer locks solid when
it comes under moderate load. I can trigger this VERY easily, but
don`t know how best to debug the situation.
I have just joined the mailing list, and noticed some mention of lock
ups, but the feeling seemed to be that if the underlying system was
OK, the LVM should be fine. I`m not convinced that this is true in my
case.
As is usual with hobby configurations, I have lots of I/O cards installed,
and have done my best to eliminate hardware / other system causes as a
source of the problem.
My configuration
----------------
I am using Redhat 5.2, initially with Kernel 2.0.36, but have now
upgraded to 2.2.2 in an attempt to get the latest drivers for my hardware.
I have two Ethernet cards (ISA & PCI), two SCSI cards (ISA & PCI), a
sound card (ISA) and a video card (PCI).
The SCSI controller is a Diamond Fireport 40, and it is this
controller which hosts two partitioned Fireball 6.4G drives. It is
parts of these drives which have LVM configured for them.
Detailed description
--------------------
Because it is so easy to push the system over, I decided that I needed
to find out how to make the system stable again!
I now have two Kernels to play with. Both are 2.2.2, one with LVM
built in, and the other without the LVM patches.
This allows the following three scenarios:
1) Clean kernel - No LVM of any kind.
2) LVM Kernel - Not using LVM.
3) LVM Kernel - Using LVM.
In order to load the system, all I do is copy the contents of one
filesystem to that on another partition, either native ext2 or ext2 on
a Logical Volume (depending on the test).
My LVM configuration is as follows:
One Volume Group comprising 4 PVs on 2 SCSI drives. There are 7
Logical volumes in this group, but I do my testing on one of ~1.5G capacity.
I experimented with striping the LVs, but decided to settle on a
`straight` linear LV for the purposes of the tests.
The results of my testing (over a couple of weeks) seem to show the
following:
Case 1 - Clean Kernel. Solid, even with two simultaneous bulk copies
AND an archive to tape, at the same time.
Case 2 - LVM Kernel - Not using LVM. Pretty solid. A couple of lock ups.
Case 3 - LVM Kernel - Using LVM. Falls over almost every time within
seconds or minutes. It lasted over an hour once only.
Plea for help
-------------
I really want to keep using LVM (it is the way forward!), and am
prepared to make quite some effort to make it work for me.
The problem I have, is that the machine seems to lock SOLID with no
warning, and there are no errors (that I can see) available to look
at.
I really am stuck. Is there any debugging that I can enable?
Any help will be appreciated, and I am willing to post any fix, for
the benefit of the list.
Thanks in advance, and sorry for the long mail!
Tony Rogers
===========
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [linux-lvm] System locks solid under LVM
1999-04-16 15:20 [linux-lvm] System locks solid under LVM Tony Rogers
@ 1999-04-17 0:59 ` Heinz Mauelshagen
1999-04-17 15:40 ` Tony Rogers
0 siblings, 1 reply; 4+ messages in thread
From: Heinz Mauelshagen @ 1999-04-17 0:59 UTC (permalink / raw)
To: Tony Rogers; +Cc: mge, linux-lvm
>
> Hello everyone,
>
Hello Tony.
I'll ask some questions about issues i don't quite understand and i'll try
to give you some hints/statements which might be helpfull to find
the problem(s).
> My difficulties with LVM
> ========================
> Overview
> --------
> I have been playing with LVM for some time now, with mixed results. I
> have a machine at work which has LVM 0.6 installed. Although this is
> not utilised heavily, it works fine.
Which Linux version do you have on this work machine?
Did you install LVM patch lvm_0.6-patch-15031999a.gz with
each LVM installation?
>
> On the other hand, I have a machine at home, also using LVM 0.6, which
> has SERIOUS problems. In simple terms, the computer locks solid when
> it comes under moderate load. I can trigger this VERY easily, but
> don`t know how best to debug the situation.
>
> I have just joined the mailing list, and noticed some mention of lock
> ups, but the feeling seemed to be that if the underlying system was
> OK, the LVM should be fine. I`m not convinced that this is true in my
> case.
>
> As is usual with hobby configurations, I have lots of I/O cards installed,
> and have done my best to eliminate hardware / other system causes as a
> source of the problem.
>
> My configuration
> ----------------
> I am using Redhat 5.2, initially with Kernel 2.0.36, but have now
> upgraded to 2.2.2 in an attempt to get the latest drivers for my hardware.
>
2.2.x stresses hardware more than 2.0.x did and can therefore show
up problems which didn't show up with 2.0.x.
> I have two Ethernet cards (ISA & PCI), two SCSI cards (ISA & PCI), a
> sound card (ISA) and a video card (PCI).
>
> The SCSI controller is a Diamond Fireport 40, and it is this
> controller which hosts two partitioned Fireball 6.4G drives. It is
> parts of these drives which have LVM configured for them.
>
> Detailed description
> --------------------
> Because it is so easy to push the system over, I decided that I needed
> to find out how to make the system stable again!
>
> I now have two Kernels to play with. Both are 2.2.2, one with LVM
> built in, and the other without the LVM patches.
>
> This allows the following three scenarios:
> 1) Clean kernel - No LVM of any kind.
> 2) LVM Kernel - Not using LVM.
> 3) LVM Kernel - Using LVM.
>
> In order to load the system, all I do is copy the contents of one
> filesystem to that on another partition, either native ext2 or ext2 on
> a Logical Volume (depending on the test).
>
> My LVM configuration is as follows:
>
> One Volume Group comprising 4 PVs on 2 SCSI drives. There are 7
> Logical volumes in this group, but I do my testing on one of ~1.5G capacity.
Is this LV spread over more than one PV and if so over more than one disk?
You can check that for eg. with "lvdisplay -v /dev/YourVG/YourLV".
>
> I experimented with striping the LVs, but decided to settle on a
> `straight` linear LV for the purposes of the tests.
>
> The results of my testing (over a couple of weeks) seem to show the
> following:
>
> Case 1 - Clean Kernel. Solid, even with two simultaneous bulk copies
> AND an archive to tape, at the same time.
>
> Case 2 - LVM Kernel - Not using LVM. Pretty solid. A couple of lock ups.
???
This should be fully transparent and shouldn't cause any harm.
If now LV access takes place at all, the code in ll_rw_block.c is
not used at all.
>
> Case 3 - LVM Kernel - Using LVM. Falls over almost every time within
> seconds or minutes. It lasted over an hour once only.
If you spread the test LV(s) over more than one PV and/or more
than one disk, you might have more I/O per second to different disks
pushing your configuration over the edge. This would be a problem of the
scsi subsystem which is only forced to the surface by the imposed
load. With older kernels, i was able to force solid locks by doing
mke2fs on large LVs (>15G). This problem never showed up with smaller
disk partitions of 2G.
Could you please check, if for eg. there is to rigid memory timing
setup in your test box.
It is possible, that you do have some kind of interrupt conflict, which
only shows up at a specific high I/O rate?
>
> Plea for help
> -------------
> I really want to keep using LVM (it is the way forward!), and am
> prepared to make quite some effort to make it work for me.
>
> The problem I have, is that the machine seems to lock SOLID with no
> warning, and there are no errors (that I can see) available to look
> at.
>
> I really am stuck. Is there any debugging that I can enable?
Not that i am aware of.
>
> Any help will be appreciated, and I am willing to post any fix, for
> the benefit of the list.
>
> Thanks in advance, and sorry for the long mail!
>
Regards,
Heinz
--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Systemmanagement C/S Deutsche Telekom AG
Entwicklungszentrum Darmstadt
Heinz Mauelshagen Otto-Roehm-Strasse 71c
Senior Systems Engineer Postfach 10 05 41
64205 Darmstadt
mge@ez-darmstadt.telekom.de Germany
+49 6151 886-425
FAX-386
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: [linux-lvm] System locks solid under LVM
1999-04-17 0:59 ` Heinz Mauelshagen
@ 1999-04-17 15:40 ` Tony Rogers
0 siblings, 0 replies; 4+ messages in thread
From: Tony Rogers @ 1999-04-17 15:40 UTC (permalink / raw)
To: Heinz Mauelshagen; +Cc: mge, linux-lvm
On Sat, 17 Apr 1999, Heinz Mauelshagen wrote:
> >
> > Hello everyone,
> >
>
> Hello Tony.
>
> I'll ask some questions about issues i don't quite understand and i'll try
> to give you some hints/statements which might be helpfull to find
> the problem(s).
>
>
Hello,
Thanks for your prompt reply.
My Work machine is using Redhat 5.1 with kernel 2.0.34.
I have not applied the patches to either machine. I will try this on
my home machine ASAP. It didn't look important, as I didn't get the
invalid protocol message.
My test LV is as reported by lvdisplay. There are more than 1 PVs AND
more than 1 disk:
--- Logical volume ---
LV Name /dev/vg1/lv2
VG Name vg1
LV Write Access read/write
LV Status available
LV # 2
# open 0
LV Size 1.46 GB
Current LE 375
Allocated LE 375
Allocation next free
Read ahead sectors 120
Block device 58:0
--- Distribution of logical volume on 4 physical volumes ---
PV Name PE on PV reads writes
/dev/sdb9 125 0 0
/dev/sdc9 66 0 0
/dev/sdb10 172 0 0
/dev/sdc10 12 0 0
<snip of detailed report>
======== E N D O F L V D I S P L A Y ==========================
I think the memory timing is OK, it's not been a problem before, and
as I mentioned it seems to be OK except under LVM.
As far as interrupts are concerned, there is always that possibility!
But again, it's OK except under LVM, and I have been careful to make
sure it is stable without the Volume Manager.
I used to want to stripe the data under one controller to try to get
some extra performance, but I would rather have the flexibility of
resizeable partitions, so I might try repartitioning my hard disk, to
enable me to use larger partitions, if that would make it more
reliable.
What do you think about this?
Many thanks, once again.
Tony Rogers
===========
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [linux-lvm] System locks solid under LVM
@ 1999-04-19 13:01 Tony Rogers
0 siblings, 0 replies; 4+ messages in thread
From: Tony Rogers @ 1999-04-19 13:01 UTC (permalink / raw)
To: stb; +Cc: linux-lvm
Hi there Klaus,
Many thanks for your comments.
I am a little confused. If I do 'gcc -v' on my work box (I am at work
now) it gives me:
[rogers@websrv rogers]$ gcc -v
Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/2.7.2.3/specs
gcc version 2.7.2.3
which is the version which you say gave you problems. If I do a 'man' on
egcs, it takes me to the gcc page.
Is there a difference between egcs and gcc these days?
I am reluctant to believe that the compiler is totally at fault, as the
rest of the system seems to be fine, and my 'work' box was left on soak
test over the weekend, and it was still rattling away this morning - very
satisfying.
Following a question from the list, I reconfigured my system so that I had
two VGs, each containing 1 PV. The interesting thing is that they are now
on different disks. One is quite reliable, the other is very unreliable.
Ordinarily I would say that this is hardware, but Win95 and non-LVM Linux
has no problem with this disk, which is heavily used.
It is looking more and more like LVM stresses the system just a little too
far, and that the base system is not quite right.
It might be interrupts - I don't know. It might be time to strip out all
the other cards (again!).
Unfortunately this does not help me much, as when LVM pushes it over the
edge, it locks totally, and I can't poke around to figure out what went
wrong.
Anyway, thanks again. I'm still plugging away.
Tony Rogers
===========
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~1999-04-19 13:01 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-04-16 15:20 [linux-lvm] System locks solid under LVM Tony Rogers
1999-04-17 0:59 ` Heinz Mauelshagen
1999-04-17 15:40 ` Tony Rogers
-- strict thread matches above, loose matches on Subject: below --
1999-04-19 13:01 Tony Rogers
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.