All of lore.kernel.org
 help / color / mirror / Atom feed
* [linux-lvm] lvm snapshot fails
@ 2002-01-09 16:42 Daniel Sully
  2002-01-09 17:31 ` Andreas Dilger
  0 siblings, 1 reply; 3+ messages in thread
From: Daniel Sully @ 2002-01-09 16:42 UTC (permalink / raw)
  To: linux-lvm

I'm attempting to create a snapshot volume for a 50GB partition, however
the lvcreate fails with the following error:

$ lvcreate -L1G -s -n wwwsnap /dev/vg00/www
lvcreate -- WARNING: the snapshot will be automatically disabled once it gets full
lvcreate -- INFO: using default snapshot chunk size of 64.00 KB for "/dev/vg00/wwwsnap"
File size limit exceeded

strace shows it's getting a EFBIG error -

open("/dev/sdc1", O_WRONLY)             = 4
_llseek(4, 214756169728, [214756169728], SEEK_SET) = 0
write(4, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 512) = -1 EFBIG (File too large)
--- SIGXFSZ (File size limit exceeded) ---
+++ killed by SIGXFSZ +++

This is with 2.4.17, patched with 1.0.1 and 1.0.1 userland tools.

Here's my pvscan:

pvscan -- reading all physical volumes (this may take a while...)
pvscan -- ACTIVE   PV "/dev/sdc1" of VG "vg00" [457.98 GB / 257.98 GB free]
pvscan -- total: 1 [457.99 GB] / in use: 1 [457.99 GB] / in no VG: 0 [0]

Is there a special 64bit flag I need to set somewhere to allow the
lvmtools to deal with a device that large?

-D
--
When Hell freezes over, I'll snowboard there too.

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

* Re: [linux-lvm] lvm snapshot fails
  2002-01-09 16:42 [linux-lvm] lvm snapshot fails Daniel Sully
@ 2002-01-09 17:31 ` Andreas Dilger
  2002-01-09 17:35   ` Daniel Sully
  0 siblings, 1 reply; 3+ messages in thread
From: Andreas Dilger @ 2002-01-09 17:31 UTC (permalink / raw)
  To: Daniel Sully; +Cc: linux-lvm

On Jan 09, 2002  14:41 -0800, Daniel Sully wrote:
> I'm attempting to create a snapshot volume for a 50GB partition, however
> the lvcreate fails with the following error:
> 
> $ lvcreate -L1G -s -n wwwsnap /dev/vg00/www
> lvcreate -- WARNING: the snapshot will be automatically disabled once it gets full
> lvcreate -- INFO: using default snapshot chunk size of 64.00 KB for "/dev/vg00/wwwsnap"
> File size limit exceeded
> 
> strace shows it's getting a EFBIG error -

This is a kernel problem, added since 2.4.10, and fixed in 2.4.18-pre1.
You need to log into this system directly as root (no "su" or "sudo")
because it seems you are trying to set a ulimit somewhere, and the
kernel also prevents you from setting a real ulimit with glibc-2.1.

Cheers, Andreas
--
Andreas Dilger
http://sourceforge.net/projects/ext2resize/
http://www-mddsp.enel.ucalgary.ca/People/adilger/

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

* Re: [linux-lvm] lvm snapshot fails
  2002-01-09 17:31 ` Andreas Dilger
@ 2002-01-09 17:35   ` Daniel Sully
  0 siblings, 0 replies; 3+ messages in thread
From: Daniel Sully @ 2002-01-09 17:35 UTC (permalink / raw)
  To: linux-lvm

Once upon a time Andreas Dilger shaped the electrons to say...

> This is a kernel problem, added since 2.4.10, and fixed in 2.4.18-pre1.
> You need to log into this system directly as root (no "su" or "sudo")
> because it seems you are trying to set a ulimit somewhere, and the
> kernel also prevents you from setting a real ulimit with glibc-2.1.

Thanks. That fixed the problem.

-D
--
Cracking toast Gromit!

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

end of thread, other threads:[~2002-01-09 17:35 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-01-09 16:42 [linux-lvm] lvm snapshot fails Daniel Sully
2002-01-09 17:31 ` Andreas Dilger
2002-01-09 17:35   ` Daniel Sully

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.