Linux LVM users
 help / color / mirror / Atom feed
* [linux-lvm] "Cannot allocate memory" creating VGDA
@ 2004-10-16 10:05 Paul Warren
  2004-10-16 13:09 ` Alasdair G Kergon
  0 siblings, 1 reply; 4+ messages in thread
From: Paul Warren @ 2004-10-16 10:05 UTC (permalink / raw)
  To: linux-lvm

We've now downgraded our server to 2.4 so that we can use snapshotting
in lvm1.  Unfortunately:

woozle:~# lvcreate -s -L3000M -n rootsnapshot  /dev/mainvg/root 

lvcreate -- WARNING: the snapshot will be automatically disabled once it
gets full
lvcreate -- INFO: using default snapshot chunk size of 64 KB for
"/dev/mainvg/rootsnapshot"
lvcreate -- ERROR "Cannot allocate memory" creating VGDA for
"/dev/mainvg/rootsnapshot" in kernel

woozle:~# free
             total       used       free     shared    buffers cached
Mem:       4010688     149192    3861496          0       1824 22944
-/+ buffers/cache:     124424    3886264
Swap:            0          0          0

This is trying to create a snapshot of a 255GB LV.

Any ideas on this one?

cheers,

Paul

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [linux-lvm] "Cannot allocate memory" creating VGDA
  2004-10-16 10:05 [linux-lvm] "Cannot allocate memory" creating VGDA Paul Warren
@ 2004-10-16 13:09 ` Alasdair G Kergon
  2004-10-16 14:40   ` Paul Warren
  0 siblings, 1 reply; 4+ messages in thread
From: Alasdair G Kergon @ 2004-10-16 13:09 UTC (permalink / raw)
  To: LVM general discussion and development

On Sat, Oct 16, 2004 at 11:05:47AM +0100, Paul Warren wrote:
> lvcreate -- ERROR "Cannot allocate memory" creating VGDA for
> "/dev/mainvg/rootsnapshot" in kernel

> Any ideas on this one?
 
Ensure the LVM1 part of your kernel is fully patched (there
was a memory over-allocation bug IIRC, but I forget the details).
Try using larger chunk sizes.

Alasdair
-- 
agk@redhat.com

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [linux-lvm] "Cannot allocate memory" creating VGDA
  2004-10-16 13:09 ` Alasdair G Kergon
@ 2004-10-16 14:40   ` Paul Warren
  2004-10-16 19:49     ` Paul Warren
  0 siblings, 1 reply; 4+ messages in thread
From: Paul Warren @ 2004-10-16 14:40 UTC (permalink / raw)
  To: LVM general discussion and development

On Sat, Oct 16, 2004 at 02:09:29PM +0100, Alasdair G Kergon wrote:
> On Sat, Oct 16, 2004 at 11:05:47AM +0100, Paul Warren wrote:
> > lvcreate -- ERROR "Cannot allocate memory" creating VGDA for
> > "/dev/mainvg/rootsnapshot" in kernel
> 
> > Any ideas on this one?
>  
> Ensure the LVM1 part of your kernel is fully patched (there
> was a memory over-allocation bug IIRC, but I forget the details).
> Try using larger chunk sizes.

Varying the chunk size doesn't seem to help.  This appears to be the
HIGHMEM issue that has come up on the list before.  If we recompile the
kernel without HIGHMEM support, it works OK (apart from the
unavailability of 3/4 of the RAM).

We're running 2.4.27 - are there patches beyond that?

Has anyone had any success with getting snapshots to work on a machine
with > 1GB RAM?

cheers,

Paul

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [linux-lvm] "Cannot allocate memory" creating VGDA
  2004-10-16 14:40   ` Paul Warren
@ 2004-10-16 19:49     ` Paul Warren
  0 siblings, 0 replies; 4+ messages in thread
From: Paul Warren @ 2004-10-16 19:49 UTC (permalink / raw)
  To: LVM general discussion and development

On Sat, Oct 16, 2004 at 03:40:45PM +0100, Paul Warren wrote:
> Varying the chunk size doesn't seem to help.  This appears to be the
> HIGHMEM issue that has come up on the list before.  If we recompile the
> kernel without HIGHMEM support, it works OK (apart from the
> unavailability of 3/4 of the RAM).
> 
> We're running 2.4.27 - are there patches beyond that?
> 
> Has anyone had any success with getting snapshots to work on a machine
> with > 1GB RAM?

It seems that this works if you compile the kernel with HIGHMEM 64G
support or with HIGHMEM off, but not with 4G support.

Paul

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2004-10-16 19:49 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-10-16 10:05 [linux-lvm] "Cannot allocate memory" creating VGDA Paul Warren
2004-10-16 13:09 ` Alasdair G Kergon
2004-10-16 14:40   ` Paul Warren
2004-10-16 19:49     ` Paul Warren

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox