[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [linux-lvm] Server hangs when writing to LVM volume due to LVM Snapshots

Hello Tomasz,
thank you much for the prompt reply.

The server has 6119216k of RAM in total.
And most of it is shown as used all the time (To my knowledge thats just how
linux utilizes ram). 

But from memory, the last time the server froze during copying (goes
back to normal once I kill the copy process) I didn't notice any extreme
RAM usage or swapping.

As I'm rotating LVM snapshots weekly, there are 7 snapshots on the system
at all times, and 1 of them is active(the last one taken).

The script that I use for creating the snapshots, checks the current day
of the week removes last weeks snapshot and creates new one.

On monday, check if snapshot.monday exists, lvremove it and lvcreate new
On tuesday, remove snapshot.tuesday if exists, then create new
And so on.

Do you see a flaw in this process that might be causing the issues?


On Mon, Jun 16, 2008 at 03:57:46PM +0200, Tomasz Chmielewski wrote:
> Veselin Kantsev schrieb:
>> Hello,
>> I'm using LVM snapshots on the following configuration:
>> Debian lenny (2.6.24-1-amd64)
>> LVM version:     2.02.33 (2008-01-31)
>> Library version: 1.02.24 (2007-12-20)
>> Driver version:  4.12.0
>> 3ware 9000 Storage Controller device driver for Linux v2.26.02.010
>> I have a Logical volume running off a RAID5 for all my data.
>> I recently started making daily LVM snapshots of this Logical volume.
>> The problem I'm experiencing now is that the server freezes if I try
>> write a big chunk of data to the LVM volume.
>> Writing is OK on the second RAID (which holds the Debian OS)
>> Is there some known problem with writing lots of data to LVs while using
>> LVM snapshots?
> What is your RAM usage as you write to the snapshot?
> Snapshots take some memory, and if you have lots of snapshots or they're  
> just big, you can run out of memory.
> Is it a possibility for you?
> -- 
> Tomasz Chmielewski
> http://wpkg.org
> _______________________________________________
> linux-lvm mailing list
> linux-lvm redhat com
> https://www.redhat.com/mailman/listinfo/linux-lvm
> read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]