public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
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	[thread overview]
Message-ID: <201003021035.43235.wonko@wonkology.org> (raw)
In-Reply-To: <58965d8a1002260954v37bc6293xd4b92d82183bd346@mail.gmail.com>

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



  parent reply	other threads:[~2010-03-02 10:03 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-02-26 17:54 [gentoo-user] Advice/best practices for a new Gentoo installation Paul Hartman
2010-02-26 18:24 ` Kyle Bader
2010-03-05 21:37   ` Paul Hartman
2010-02-26 19:22 ` Willie Wong
2010-02-26 19:38 ` BRM
2010-02-26 20:30 ` roundyz
2010-03-02  6:31 ` Frank Steinmetzger
2010-03-02  9:35 ` Alex Schuster [this message]
2010-03-02 10:10   ` Neil Bothwick
2010-03-02 14:43     ` Mick
2010-03-03 11:52     ` Alex Schuster
2010-03-03 12:27       ` Willie Wong
2010-03-03 16:34         ` Alex Schuster
2010-03-04 12:50           ` Walter Dnes
2010-03-03 12:30       ` Neil Bothwick
2010-03-03 16:03         ` Alex Schuster
2010-03-04 14:16           ` Alex Schuster
2010-03-04 14:17           ` Alex Schuster
2010-03-04 14:26           ` Alex Schuster

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=201003021035.43235.wonko@wonkology.org \
    --to=wonko@wonkology.org \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox