From mboxrd@z Thu Jan  1 00:00:00 1970
Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org)
	by finch.gentoo.org with esmtp (Exim 4.60)
	(envelope-from <gentoo-user+bounces-108414-garchives=archives.gentoo.org@lists.gentoo.org>)
	id 1NmOx4-00059n-2V
	for garchives@archives.gentoo.org; Tue, 02 Mar 2010 10:03:42 +0000
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id 0C230E0A5A
	for <garchives@archives.gentoo.org>; Tue,  2 Mar 2010 10:03:41 +0000 (UTC)
Received: from mail.askja.de (mail.askja.de [83.137.103.136])
	by pigeon.gentoo.org (Postfix) with ESMTP id C03F7E07F5
	for <gentoo-user@lists.gentoo.org>; Tue,  2 Mar 2010 09:35:50 +0000 (UTC)
Received: from static-87-79-89-40.netcologne.de ([87.79.89.40] helo=zone.wonkology.org)
	by mail.askja.de with esmtpsa (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32)
	(Exim 4.69)
	(envelope-from <wonko@wonkology.org>)
	id 1NmOW6-0007IE-0w
	for gentoo-user@lists.gentoo.org; Tue, 02 Mar 2010 10:35:50 +0100
Received: from localhost (localhost [127.0.0.1])
  (uid 1000)
  by zone.wonkology.org with local; Tue, 02 Mar 2010 10:35:47 +0100
  id 00011B87.4B8CDBF3.0000411E
From: Alex Schuster <wonko@wonkology.org>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Advice/best practices for a new Gentoo installation
Date: Tue, 2 Mar 2010 10:35:42 +0100
User-Agent: KMail/1.13.0 (Linux/2.6.32-tuxonice-r5; KDE/4.4.0; i686; ; )
References: <58965d8a1002260954v37bc6293xd4b92d82183bd346@mail.gmail.com>
In-Reply-To: <58965d8a1002260954v37bc6293xd4b92d82183bd346@mail.gmail.com>
Precedence: bulk
List-Post: <mailto:gentoo-user@lists.gentoo.org>
List-Help: <mailto:gentoo-user+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-user+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-user+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-user.gentoo.org>
X-BeenThere: gentoo-user@lists.gentoo.org
Reply-to: gentoo-user@lists.gentoo.org
MIME-Version: 1.0
Content-Type: Text/Plain;
  charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
Message-Id: <201003021035.43235.wonko@wonkology.org>
X-Archives-Salt: a5e1b29a-7d69-43b9-a4d6-ea319ae44259
X-Archives-Hash: 6e9ccf9cd3377ed58cfdc319bb315307

Paul Hartman writes:

> - utilizing device labels and/or volume labels instead of hoping
> /dev/sda stays /dev/sda always

Good idea. Or use LVM.

> - better partitioning scheme than my current root, boot, home (need
> portage on its own, maybe /var as well?)

I like to have many partitions. When my /usr/portage/distfiles or /tmp 
gets full, I do not want this to affect my system.

> - some kind of small linux emergency/recovery partition? equivalent to
> a liveCD maybe.

Maybe, but a liveCD is also fine and can be used elsewhere, too.

> - best filesystem for portage? something compressed or with small
> cluster size maybe.

I think reiserfs with the notail option is recommended.

> - omit/reduce number of reserved-for-root blocks on partitions where
> it's not necessary.

I reduce it for large partitions, but do not set it to 0 in order to 
prevent fragmentation.

> - I have never used LVM and don't really know about it. Should I use
> it? will it make life easier someday? or more difficult?

A little more difficult in the first place, until you get used to it. But 
if you need to change things later, it makes this much easier. /var is too 
small? Well, enter lvresize -L +1G /dev/myvg/var && resize2fs 
/dev/myvg/var and you have 1G more of space after half a minute. No need 
to take the system down, boot a rescue system and use parted.

Short how-to:
- create some partitions you will use for LVM (/dev/sda[56789])
- make them physical volumes: pvcreate /dev/sda[56789]
- make them a volume group:   vgcreate myvg /dev/sda[56789]
- create logical volumes:     lvcreate -L 5G -n usr myvg (/usr partition)
- create file system:         mke2fs -j -L usr /dev/myvg/usr

> - Is RAID5 still a good balance for disk cost vs usable space vs data
> safety? I can't/don't want to pay for full mirroring of all disks.

Probably, if you need RAID. But I'd say RAID is not a real backup, so you 
would need even more disks space for that. I prefer to use a 2nd disk for 
backups I make frequently with rdiff-backup. They have the same structure 
as the original, only that each partition has an additional 'rdiff-backup-
data' directory that stores the data of older snapshots.
Some months ago my main drive started having errors, so I took it out, 
booted with a CD, renamed the volume group of the backup disk to that of 
the original one ("vgrename backup system"), and that was all. Using RAID 
would have been even easier, but does not help when I accidentally remove 
a file, or want a file as it was a whiel ago.
Keeping the older snapshots needs some extra space, but this is 
compensated by not having to backup everything including 
/usr/portage/distfiles, /var/tmp/portage etc.

	Wonko