Received: from maia.hub.org (unknown [200.46.208.211]) by mail.postgresql.org (Postfix) with ESMTP id 713C7632505; Tue, 2 Mar 2010 15:20:24 -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 98614-07; Tue, 2 Mar 2010 19:20:09 +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 1CD926322EF; Tue, 2 Mar 2010 15:20:11 -0400 (AST) Received: by wwa36 with SMTP id 36so316912wwa.19 for ; Tue, 02 Mar 2010 11:20:11 -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=cdE7OYgP++x7+30gVWkDvzk/mwB80vpwUbHzJxZQXYM=; b=uL/mcoDoShZHs6evBHmPwP/aOMwaokh0x9zzjrtCc2QA6flpXs6ypaccn32Zgi8UD3 Pyocd5CvBAsOSdnB6L5AB4d/UGx6xZ7sIO3ufDpmfEg0txmdbkKVrR7VO/GbpGh2jbOr 2kkn6omHWsSn6cvXAQNBSVRgNP6NESUFqwhRs= 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=SI5yjWrE9TVb500xyvhwuSWxCycprUplq9RGdfMCjyFcpSHSd8T3J1hgvIwEgDukmv 6RMQGK0WoNJQ5J3uNA6YD+DJ7xhPlo3nfp/lFRE2Jq/DprMN8tgeYMXj1dtmuBHjeC9r hCLovY+PCRJscsguobj0nuEAFiWS2oOWwriaM= MIME-Version: 1.0 Received: by 10.216.87.16 with SMTP id x16mr4383681wee.27.1267557610875; Tue, 02 Mar 2010 11:20:10 -0800 (PST) In-Reply-To: <54E5385D47A89542BC678F5426799F3904961EF60F@OSTIEX01.osti.gov> References: <54E5385D47A89542BC678F5426799F3904961EF60F@OSTIEX01.osti.gov> Date: Tue, 2 Mar 2010 12:20:10 -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.465 tagged_above=-10 required=5 tests=AWL=-0.725, BAYES_20=-0.74 X-Spam-Level: X-Archive-Number: 201003/18 X-Sequence-Number: 33817 On Tue, Mar 2, 2010 at 8:43 AM, Arnold, Sandra wrote: > I am currently using the pg_hotbackup Perl script to backup my production > PostgreSQL database.=A0 However, the next production database is going to= be > close to a terrabyte in size.=A0 We feel that a tar cvzf command is not t= he > 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=A0= the 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. I don't know if this has since been fixed. 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.