From: "W.Kenworthy" <billk@iinet.net.au>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] lvm2/external partitions question
Date: Tue, 30 Aug 2005 14:49:09 +0800 [thread overview]
Message-ID: <1125384549.20471.113.camel@localhost> (raw)
In-Reply-To: <200508300749.55166.ext-dirk.heinrichs@nokia.com>
Comments inline:
moriah ~ # df -h
Filesystem Size Used Avail Use% Mounted on
/dev/hda5 3.8G 2.2G 1.6G 59% /
udev 252M 2.6M 249M 2% /dev
cachedir 3.8G 2.2G 1.6G 59% /lib/splash/cache
/dev/vg1/usr 32G 5.9G 27G 19% /usr
/dev/vg1/var 48G 2.3G 46G 5% /var
/dev/vg1/tmp 16G 33M 16G 1% /tmp
/dev/vg1/opt 4.0G 169M 3.9G 5% /opt
/dev/vg1/home 77G 26G 52G 34% /home
none 252M 0 252M 0% /dev/shm
/dev/hda1 92M 18M 69M 21% /boot
/dev/hda3 3.8G 1.7G 2.1G 46% /mnt/hda3
On Tue, 2005-08-30 at 07:49 +0200, Dirk Heinrichs wrote:
> 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.
only if you are using for nothing else but kernels - as mentioned in my
prev. I intended using it for storage as well as booting.
> > /dev/hda2 - swap - 2G
>
> Can be on a logical volume, too.
>
I have seen warnings against doing this due to poor performance
> > /dev/hda3 - NOT CLEAR - the backup/rescue install?
>
> Why? Use the LiveCD.
>
Some machines dont have a CD. A liveCD also doesnt run squid with my
setup, a mailfiltering gateway or my particular firewall configuration
and so on so its either useless, or means extensive downtime to
reconfigure. For pure rescue, or a limited desktop a liveCD is fine
(and generally knoppix is superior anyway for a desktop)
only if you are using for nothing else but kernels - as mentioned in my
prev. I intended using it for storage as well as booting.
> > /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.
>
As you can see, I already use 2.2G of the root (and 2.9G on another
system), and sometimes much more - so 256M isnt going to get me far!
Set it to your own particular requirements. I dont use initrd's - too
flakey, extra work thats not needed in most cases. I decided in my
early experiments to limit LVM for data on the partitions that cause me
grief with space so most of the root partitions including /etc and /lib
are on a base filesystem (/) This can simplify working on the system.
It is possible to use LVM for nearly everything, but there's extra
complexity, and warnings about some configurations.
Small roots used to be the way in the old days, but the number of
machines that crashed due to running out of root space were legion!
> > 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
--
gentoo-user@gentoo.org mailing list
next prev parent reply other threads:[~2005-08-30 6:53 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-08-30 0:50 [gentoo-user] lvm2/external partitions question Mark Knecht
2005-08-30 2:07 ` W.Kenworthy
2005-08-30 4:28 ` Mark Knecht
2005-08-30 4:44 ` W.Kenworthy
2005-08-30 5:49 ` Dirk Heinrichs
2005-08-30 6:49 ` W.Kenworthy [this message]
2005-08-30 7:38 ` Dirk Heinrichs
2005-08-30 8:25 ` W.Kenworthy
2005-08-30 8:55 ` Dirk Heinrichs
2005-08-30 5:21 ` Chris Cox
2005-08-30 12:34 ` Alvin A ONeal Jr
2005-08-30 8:03 ` Neil Bothwick
2005-08-30 22:03 ` Mark Knecht
2005-08-30 23:13 ` Neil Bothwick
2005-08-30 23:53 ` Mark Knecht
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=1125384549.20471.113.camel@localhost \
--to=billk@iinet.net.au \
--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