Gentoo Logo
Gentoo Spaceship




Note: Due to technical difficulties, the Archives are currently not up to date. GMANE provides an alternative service for most mailing lists.
c.f. bug 424647
List Archive: gentoo-user
Navigation:
Lists: gentoo-user: < Prev By Thread Next > < Prev By Date Next >
Headers:
To: gentoo-user@g.o
From: Dirk Heinrichs <ext-dirk.heinrichs@...>
Subject: Re: lvm2/external partitions question
Date: Tue, 30 Aug 2005 07:49:38 +0200
Am Dienstag, 30. August 2005 06:28 schrieb ext Mark Knecht:
>    That's very helpful. To test my understanding
>
> /dev/hda1 - boot - 100M

Way too much.

> /dev/hda2 - swap - 2G

Can be on a logical volume, too.

> /dev/hda3 - NOT CLEAR - the backup/rescue install?

Why? Use the LiveCD.

> /dev/hda4 - LVM - 200G

> /dev/hda5 - root - 4G

Can also be on a logical volume, but needs an initrd/initramfs. 4G is too 
large, IMHO. Mine is 256M.

> So you've placed pretty much the bulk of the machine in LVM and it's
> working well for you. That's cool.

I've even placed _all_ of my machines on logical volumes (using EVMS), and 
it also works well.

>    Could you possibly share a bit from your grub.conf file as well as
> your fstab file? I think with that info I'd be pretty confident when I
> do the build tomorrow morning.

Partition table:
# fdisk -l /dev/hda

Disk /dev/hda: 10.0 GB, 10005037056 bytes
240 heads, 63 sectors/track, 1292 cylinders
Units = cylinders of 15120 * 512 = 7741440 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/hda1   *           1           8       60448+  83  Linux
/dev/hda2               9        1292     9707040   83  Linux


Everything below resides on hda2.

/etc/fstab:

/dev/evms/root          /                       reiserfs        defaults,acl    
0 1
/dev/evms/usr           /usr                    reiserfs        defaults,acl    
0 2
/dev/evms/var           /var                    reiserfs        defaults,acl    
0 2
/dev/evms/opt           /opt                    reiserfs        defaults,acl    
0 2
/dev/evms/build         /gentoo/build           reiserfs        defaults,acl    
0 2
/dev/evms/distfiles     /gentoo/distfiles       reiserfs        defaults,acl    
0 2
/dev/evms/swap          none                    swap            sw              
0 0

Sizes:
# df -h|grep evms
/dev/evms/root        256M  132M  125M  52% /
/dev/evms/usr         3.0G  2.6G  452M  86% /usr
/dev/evms/var         384M  210M  174M  55% /var
/dev/evms/opt         512M  497M   16M  97% /opt
/dev/evms/build       2.7G  1.5G  1.2G  57% /gentoo/build
/dev/evms/distfiles   1.5G  1.4G  127M  92% /gentoo/distfiles

Note that this machine gets $HOME from NFS, so I don't list it here. I would 
usually create a separate volume for each users home dir, so that I don't 
have to care about quota (if needed).

grub.conf:
title Gentoo Linux 2.6
        kernel /vmlinuz-2.6.12.3 root=/dev/ram0 realroot=/dev/evms/root 
vga=794
        initrd=/initrd-2.6.12.3.gz

Note that I use a self-made initrd, which activates the EVMS volumes (needed 
because / is an EVMS volume, too), does a pivot_root from root to realroot 
and then starts up the real thing.

Bye...

	Dirk
-- 
Dirk Heinrichs          | Tel:  +49 (0)162 234 3408
Configuration Manager   | Fax:  +49 (0)211 47068 111
Capgemini Deutschland   | Mail: dirk.heinrichs@...
Hambornerstraße 55      | Web:  http://www.capgemini.com
D-40472 Düsseldorf      | ICQ#: 110037733
GPG Public Key C2E467BB | Keyserver: www.keyserver.net
Attachment:
pgpelzFBVRNrb.pgp (PGP signature)
Replies:
Re: lvm2/external partitions question
-- W.Kenworthy
References:
lvm2/external partitions question
-- Mark Knecht
Re: lvm2/external partitions question
-- W.Kenworthy
Re: lvm2/external partitions question
-- Mark Knecht
Navigation:
Lists: gentoo-user: < Prev By Thread Next > < Prev By Date Next >
Previous by thread:
Re: lvm2/external partitions question
Next by thread:
Re: lvm2/external partitions question
Previous by date:
Re: lvm2/external partitions question
Next by date:
mldonkey wants a gui, but I don't want a GUI....


Updated May 04, 2012

Summary: Archive of the gentoo-user mailing list.

Donate to support our development efforts.

Copyright 2001-2013 Gentoo Foundation, Inc. Questions, Comments? Contact us.