From: Tomasz Chmielewski <mangoo@wpkg.org>
To: LVM general discussion and development <linux-lvm@redhat.com>
Subject: Re: [linux-lvm] "cannot allocate memory" when trying to do a snapshot?
Date: Mon, 27 Aug 2007 18:08:53 +0200 [thread overview]
Message-ID: <46D2F715.9000308@wpkg.org> (raw)
In-Reply-To: <46CEE6FF.1090000@wpkg.org>
Tomasz Chmielewski schrieb:
> I have a server with ~1.5T PV, on which I have several logial volumes
> (LVs).
>
> I decided to do a snapshot for five of these LVs, and it succeeded, but
> only few times.
>
> dom-dc1 san1 owi-ao 8.00G
> dom-oss1 san1 owi-ao 16.00G
> dom-sql1 san1 owi-ao 8.00G
> dom-sql1-2 san1 owi-ao 50.00G
> dom-ts1 san1 owi-ao 16.00G
>
> For each of the LVs, I made 5G snapshots.
> I could make three snapshots for all of them, but the fourth snapshot
> failed for some LVs (in all, I could only make 18 * 5GB snapshots).
>
> Why?
>
> I'm using Debian Etch, with its 2.6.18 64 bit kernel.
> The machine has 512 MB RAM, and 3 GB swap:
Some more info on that.
Apparently, this whole snapshotting thing is not very stable, and there
are bugs in it.
I just played a bit more with creating snapshots.
Below, although creating a snapshot fails, a new logical volume is created:
# lvcreate -L100G -s -n backup-snapshot /dev/san1/backup
File descriptor 3 left open
File descriptor 5 left open
File descriptor 7 left open
device-mapper: reload ioctl failed: Cannot allocate memory
Failed to suspend origin backup
# lvs
File descriptor 3 left open
File descriptor 5 left open
File descriptor 7 left open
LV VG Attr LSize Origin Snap%
Move Log Copy%
backup san1 -wi-ao 628.28G
backup-snapshot san1 -wi-d- 100.00G
(...)
So, if it fails, at least it shouldn't create any phantom volumes.
Does lvm snapshotting work any better with newer kernels?
--
Tomasz Chmielewski
http://wpkg.org
next prev parent reply other threads:[~2007-08-27 16:09 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-08-24 14:11 [linux-lvm] "cannot allocate memory" when trying to do a snapshot? Tomasz Chmielewski
2007-08-27 16:08 ` Tomasz Chmielewski [this message]
2007-08-27 16:14 ` Brian J. Murrell
2007-08-27 16:25 ` Tomasz Chmielewski
2007-08-27 16:34 ` Brian J. Murrell
2007-09-01 20:39 ` Tomasz Chmielewski
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=46D2F715.9000308@wpkg.org \
--to=mangoo@wpkg.org \
--cc=linux-lvm@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.