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

James Sumners james.sumners at gmail.com
Tue Mar 20 08:30:11 EDT 2012


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



More information about the Ale mailing list