[ale] Looking for recommendations on LVM + soft Raid on home server

Lightner, Jeff JLightner at water.com
Tue Mar 20 09:02:35 EDT 2012


I disagree with NOT having separate /var, /usr, /home, /tmp etc...
Users can fill up root by writing huge things to /tmp or /var/tmp,  putting things in /usr/share or /usr/local (including logs).   /var can fill up due to things like yum cache or logs in /var/logs.   Keeping root (with /etc as part of root) separate from these other filesystems helps to keep from corrupting passwd and other files due to a full filesystem.

Oddly enough the reason why I make separate filesystems is the same you gave - disks are cheap so I don't need to try to avoid splitting things up in multiple LVs/filesystems in order to save space root might need someday.





-----Original Message-----
From: ale-bounces at ale.org [mailto:ale-bounces at ale.org] On Behalf Of James Sumners
Sent: Tuesday, March 20, 2012 8:30 AM
To: neal at mnopltd.com
Cc: Atlanta Linux Enthusiasts
Subject: Re: [ale] Looking for recommendations on LVM + soft Raid on home server

1) You do have to use a rescue disk (e.g. SysRescueCD).

2) The advantage is that you can add space later. Or you can subtract
space if you really need to (like I had to do yesterday). Clearly this
comes at a cost of uptime. But that's what scheduled maintenance is
for.

Also, as Jim Kinney mentioned, I don't even bother with creating
separate partitions for /home, /var, etc. anymore. Disk space is so
cheap now that it doesn't make sense in most situations. So being able
to add to the / pool at a whim is real nice.

Actually, I sort of take 2 back. You can expand / while it is online,
you just can't shrink it (of course, how did you get the new drive in
there without down time? Does your home server support hot swapping?).
If  a new drive is available then you can:

$ fdisk /dev/newdisk # create a partition on the new disk (e.g. /dev/sdb1)
$ pvcreate /dev/sdb1
$ vgextend /dev/LogVol00/root /dev/sdb1
$ lvresize -l +100%FREE -r /dev/LogVol00/root

On Tue, Mar 20, 2012 at 07:56, Neal Rhodes <neal at mnopltd.com> wrote:
> How is it that you can resize / without booting to a rescue disk?    And if
> you have to boot to a CD/Usb to resize root, well, is there any advantage to
> having / on LVM, or would it be safer to have / a regular non-lvm
> filesystem, so that the thing is more likely to survive a variety of events?



--
James Sumners
http://james.roomfullofmirrors.com/

"All governments suffer a recurring problem: Power attracts
pathological personalities. It is not that power corrupts but that it
is magnetic to the corruptible. Such people have a tendency to become
drunk on violence, a condition to which they are quickly addicted."

Missionaria Protectiva, Text QIV (decto)
CH:D 59

_______________________________________________
Ale mailing list
Ale at ale.org
http://mail.ale.org/mailman/listinfo/ale
See JOBS, ANNOUNCE and SCHOOLS lists at
http://mail.ale.org/mailman/listinfo




Athena®, Created for the Cause(tm)
Making a Difference in the Fight Against Breast Cancer

---------------------------------
CONFIDENTIALITY NOTICE: This e-mail may contain privileged or confidential information and is for the sole use of the intended recipient(s). If you are not the intended recipient, any disclosure, copying, distribution, or use of the contents of this information is prohibited and may be unlawful. If you have received this electronic transmission in error, please reply immediately to the sender that you have received the message in error, and delete it. Thank you.
----------------------------------




More information about the Ale mailing list