From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 7B9491381F3 for ; Tue, 23 Apr 2013 16:35:08 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id E0143E09C8; Tue, 23 Apr 2013 16:35:01 +0000 (UTC) Received: from out3-smtp.messagingengine.com (out3-smtp.messagingengine.com [66.111.4.27]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id BC57DE0977 for ; Tue, 23 Apr 2013 16:35:00 +0000 (UTC) Received: from compute5.internal (compute5.nyi.mail.srv.osa [10.202.2.45]) by gateway1.nyi.mail.srv.osa (Postfix) with ESMTP id 5491120BFE for ; Tue, 23 Apr 2013 12:35:00 -0400 (EDT) Received: from frontend1.nyi.mail.srv.osa ([10.202.2.160]) by compute5.internal (MEProxy); Tue, 23 Apr 2013 12:35:00 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=binarywings.net; h=message-id:date:from:mime-version:to:subject:references :in-reply-to:content-type; s=mesmtp; bh=kykaAF9C++pK80tXbSmVC1/o Yro=; b=VV17fukl0r9n+Js2YXf+eqc+blLIbKXUuMMEu3E9xG0AumKY/ujnPBoP 6T2e0oaING2Ns4a6/cv3kHeVvOGk1D6F2DUDqZw5W591RJJo+29ow4lHErDU+GV9 b3fDoMXu8JxJ0FB4TRSTItlcKqjFK5GAG+P8Bua4Kgy9dbDgof4= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=message-id:date:from:mime-version:to :subject:references:in-reply-to:content-type; s=smtpout; bh=kyka AF9C++pK80tXbSmVC1/oYro=; b=mgc26DCj7F8V/up9s886tFgs784Op4AFE06A K3t8KdlHzaJO8GAiU3gaJv3EUGdMosW8bZ0pHVaeED/xYNwnnDK+THhE8pzxSpP5 xMYKt2x55SLOThDVdJfRvPcnEIhKHED9Dfq6AD3/lclusbTAVAH4VJaZH4ymZu3E f0Px8+Q= X-Sasl-enc: V7M9Qx/0/jRnT+caBXO9mFGWMEocQn8+kxniX/T/ILnE 1366734897 Received: from [10.213.7.126] (unknown [46.115.50.7]) by mail.messagingengine.com (Postfix) with ESMTPA id 7AF23C8000D for ; Tue, 23 Apr 2013 12:34:57 -0400 (EDT) Message-ID: <5176B81E.8000805@binarywings.net> Date: Tue, 23 Apr 2013 18:34:38 +0200 From: Florian Philipp User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130413 Thunderbird/17.0.5 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Partitions - last questions... References: <51769E54.2050609@libertytrek.org> In-Reply-To: <51769E54.2050609@libertytrek.org> X-Enigmail-Version: 1.6a1pre Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="----enig2UKQSCEEXSWDRXHLDMBBX" X-Archives-Salt: 092e6c02-9723-48ef-9b96-46f1086f7bbf X-Archives-Hash: f5de61eee0cf359b56226304c6c40a0f This is an OpenPGP/MIME signed message (RFC 4880 and 3156) ------enig2UKQSCEEXSWDRXHLDMBBX Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Am 23.04.2013 16:44, schrieb Tanstaafl: > Ok, this is the last question I need to answer for myself before > installing a final version of my new virtualized gentoo server... >=20 > I'll be using the following partition layout: >=20 > /boot (ext2), 100M > /swap, 2G > / (ext4), 40G >=20 > then on LVM >=20 > /tmp (ext2), 5G? <- how big? > /var/tmp (ext2), 5G? <- how big? If this is a production server I wouldn't use ext2. In the case of a crash or reboot, you don't want to loose precious uptime just because of fsck or corrupted file systems. > /var/log (ext4) <- size? should I even have this separate? Doesn't need to be separate but could prevent a runaway process from filling /var just because it is spamming log entries. Could also be achieved with quotas. > /var (xfs), 750G > /snapshots (xfs), 10G? <- for lvm snapshots of /var for backups >=20 > I'm not using a separate /home because there are no system users beyond= > my admin user (and the system user accounts)... >=20 > So - first, is 5G way too big for the two /tmp dirs? I have lots of > space, but hate waste >=20 If you worry about waste consider bind-mounting both from the same partition and install quotas to avoid one filling up the other. A bit like poor-man's btrfs sub volumes. Since you are using LVM you should also keep some unallocated memory, start with smaller partitions and monitor usage. A cron job that looks at `df` and sends a mail when a partition is more than x% full helps a lo= t. > This mail server is not all that busy, and the backups only take about > an hour, so I guesstimate that there won't be more than about 100-300MB= > of changes at the *extreme* outside of the envelope, so the 10G is most= > likely extreme overkill... but I'll know soon enough, and besides, I've= > got plenty of disk space to play with. >=20 > One question... I have some MySQL databases running on this system too,= > for my userdbs, and on the new server, SOGo (groupware)... >=20 > Is it recommended to incorporate scripts to perform dumps of the dbs, o= r > is the lvm snapshot reliable enough for backing these up in their raw > state? >=20 Restoring from lvm snapshot is like restoring after a black out or similar crash. Having proper dumps is always a good idea. > Thanks as always for comments/suggestions/criticisms... >=20 Hope this helps, Florian Philipp ------enig2UKQSCEEXSWDRXHLDMBBX Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iEYEARECAAYFAlF2uCIACgkQqs4uOUlOuU8dxQCdF0nxiu6vhlZMR1nf4ISnASSw 1XsAn0mIn+TEwefuBOcbtIarj2x75Eln =xqbf -----END PGP SIGNATURE----- ------enig2UKQSCEEXSWDRXHLDMBBX--