From: Wensheng Wang Subject: can not lvcreate after lvm snapshot and "xm mem-set" and lvremove Date: Thu, 5 Jan 2006 03:27:28 -0600 Message-ID: <7b22037d0601050127i2ecbf8edrc248dc90ec8072d7@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Return-path: Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org I am not sure if it's a xen bug or lvm bug, or just my bad hardware, but here's how to reproduce: /dev/vg0/centos1 is lvm block used by a domainU, it's 8G in size. #lvcreate -L8192M -s -n snap1 vg0 #mount /dev/vg0/snap1 /mnt do some copying files here #umount /mnt #lvremove /dev/vg0/snap1 not removed! it says can't allocated memory #xm mem-set 0 512 #lvremove /dev/vg0/snap1 now it removed successfully #lvcreate -L4096M -n fedora1 vg0 System lockup at this point. I have to login from another terminal.=20 I couldn't kill the lvcreate process, couln't do anything lvm. I have to reboot the machine. My vg0 is on /dev/md1, which is a software raid 1. My dom0 os is fedora core 4. Xen version is 3.0-testing So what causes this? What's my work around I can use to do lvm snapshot. Wensheng