Received: from maia.hub.org (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id 1A52A635585 for ; Tue, 9 Mar 2010 01:48:22 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 98043-03 for ; Tue, 9 Mar 2010 05:48:11 +0000 (UTC) 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 58909632EEE for ; Tue, 9 Mar 2010 01:48:11 -0400 (AST) Received: by wwa36 with SMTP id 36so3810327wwa.19 for ; Mon, 08 Mar 2010 21:48:10 -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; bh=4N5W1DCUWef5LJ6xJQXaM9wQm997rnNUoCLCl6yvP/w=; b=lbNbJLE7T31ZjOearspCdICQk9m3NccKXRumKGtXUbCtMll+Gcn2YzGGLY3Pv6lv71 H8khsHjGQmfN/fBy0TAC1Yf5WM2dsvDwUnQJWhLtZXHq7Oe6bpSmPcvhHoktzhEfc8rV Lt2jIEGcQr5ZSrMSR/lbRIMwMH3LxpPdJHjeU= 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; b=Wv6co/D3BNxjgXEDTdGFyfmsy0KY9vg/gQTOmLJ9SuzMHeSatCVFaj0NuJXkn5Ycj+ eQzV/wxryLTe/uzTXrvpOlondeYGQ1bcwgsroqtOvslKkFkmtluoGLVtZtJAZ5qLF37h BdXTa8GqAo2qCCIliRefffEuoPaPn46FZznj4= MIME-Version: 1.0 Received: by 10.216.165.146 with SMTP id e18mr3346232wel.54.1268113689493; Mon, 08 Mar 2010 21:48:09 -0800 (PST) In-Reply-To: References: Date: Mon, 8 Mar 2010 22:48:09 -0700 Message-ID: Subject: Re: linux standard layout From: Scott Marlowe To: Ben Kim Cc: pgsql-admin@postgresql.org Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-2.599 tagged_above=-10 required=5 tests=BAYES_00=-2.599 X-Spam-Level: X-Archive-Number: 201003/52 X-Sequence-Number: 33851 On Mon, Mar 8, 2010 at 10:31 PM, Ben Kim wrote: > Dear list, > > I have about 20 postgresql databases, about 3-4 GB in total. > > We are moving them from Solaris/SPARC to a linux based virtual machine. > > I don't like the VMWare environment, but it's not my choice, and assuming > the cpu load is ok, will there be any benefits if I put each database on > separate partitions, vs. simply using the one data directory? What reasoning was given for putting your database server in a virutalizeed environment? > Also, how is using standard rpm, with its standard layout (/var/lib/pgsql, > /usr/lib/pgsql, ...), generally regarded? ( vs. compiling everything ?) Does > anyone think using the rpm is unprofessional or something that only > beginners will do? > > I have someone who opposes the use of standard rpms (even yums) for this > reason. I thought I'd check out how it is received professionally. Sounds like a religious argument. I mostly used packages, unless I can't. (i.e. two different versions on RH at the same time) > I ask the question because sometimes I feel uneasy mixing rpms and source > compilation. Worry more about accidentally having two different versions of the same lib linked to various executables. It's easy to do with things like mysql and apache and php and zlib. > If I compile something from the source, sometimes I see a boundary condition > - like, if I already have DBI from a standard rpm, it expects postgresql > library at a certain location - making me wonder whether I should remove the > DBI rpm and compile it also from the source, or whether I should use > standard rpms for postgresql as well. (DBI may not be a good example.) > > In general I didn't have any problems yet with standard rpms and I can make > the rpms work if there's a problem, but I may be missing something. My advice: put postgresql on its own, powerful, reliable non-virtualized server. Demand that the person who wants to virtualize it justify their decision with more than hand-wavy methodologies. Use packages unless you're on RPM and you need > 1 version of pgsql. Even if you need to compile some tarball against the packages, it's still easier to maintain than to install it all from source.