Received: from maia.hub.org (unknown [200.46.208.211]) by mail.postgresql.org (Postfix) with ESMTP id 4407D632EEE; Tue, 2 Mar 2010 15:54:42 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.208.211]) (amavisd-maia, port 10024) with ESMTP id 03698-08; Tue, 2 Mar 2010 19:54:28 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-ww0-f46.google.com (mail-ww0-f46.google.com [74.125.82.46]) by mail.postgresql.org (Postfix) with ESMTP id 0EF3F632416; Tue, 2 Mar 2010 15:54:30 -0400 (AST) Received: by wwa36 with SMTP id 36so335003wwa.19 for ; Tue, 02 Mar 2010 11:54:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=aCYlK5pnpk8GWMZkwDorsu0j1n5KCuLyXWtrsCZlI5k=; b=mVS2ouAmtG84Ehht5JFp8ayBmSmQf64mpbHm3W1fqvsqb1M8JcghDdZyFmId2bQ1LG fKVtan+U8o9PiMCV3RAeGez3O8fz1ljvBJTYumjudB0G8PrwnORNu7UR8vNnu6bri+k7 oJ3f/JegJfZEvKkXU81QcnvhUWQjGTIYHjUZI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=MfF5TDB/GsToWVUjVctQAMLceiJyEVuur0Bk5xj1pj2rDVnTDgnCkZW0N46t8vgT6q 1Y7PkPPYLuwiS9kMNxvq+4pXOZOMRYiNorYJlo4Jinp2YWxLvKGQccPd2OXId6qFD1Xh YbaXeIItJmON6P/AZrrSl8t/JNmki59gWmmQI= MIME-Version: 1.0 Received: by 10.216.91.76 with SMTP id g54mr4647963wef.2.1267559669735; Tue, 02 Mar 2010 11:54:29 -0800 (PST) In-Reply-To: References: <54E5385D47A89542BC678F5426799F3904961EF60F@OSTIEX01.osti.gov> Date: Tue, 2 Mar 2010 12:54:29 -0700 Message-ID: Subject: Re: The OS Command for pg_hotbackup -- Use lvmsnapshot instead of tar cvzf From: Scott Marlowe To: "Arnold, Sandra" Cc: "pgsql-general@postgresql.org" , "pgsql-admin@postgresql.org" Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.452 tagged_above=-10 required=5 tests=AWL=-0.712, BAYES_20=-0.74 X-Spam-Level: X-Archive-Number: 201003/20 X-Sequence-Number: 33819 On Tue, Mar 2, 2010 at 12:20 PM, Scott Marlowe wr= ote: > On Tue, Mar 2, 2010 at 8:43 AM, Arnold, Sandra wrote: >> I am currently using the pg_hotbackup Perl script to backup my productio= n >> PostgreSQL database.=A0 However, the next production database is going t= o be >> close to a terrabyte in size.=A0 We feel that a tar cvzf command is not = the >> correct OS backup solution to use.=A0 Instead we would like to use >> lvmsnapshot.=A0 Is anyone using the pg_hotbackup script but instead of= =A0the tar >> cvzf OS command are they using lvmsnapshot? >> >> Or, is anyone using lvmsnapshot and doing point-in-time recoveries? > > I do not run my databases on LVM because, at least in the past, LVM > did not properly honor fsync / write barrier commands. =A0I don't know > if this has since =A0been fixed. =A0 If your transaction rate on LVM is > unnaturally higher than it should / could be, then suspect it is not > fsyncing, and putting your data on it is putting it at risk.