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: [EMAIL PROTECTED]
Hambornerstraße 55      | Web:  http://www.capgemini.com
D-40472 Düsseldorf      | ICQ#: 110037733
GPG Public Key C2E467BB | Keyserver: www.keyserver.net

Attachment: pgpQvhTwn9LS3.pgp
Description: PGP signature

Reply via email to