All of lore.kernel.org
 help / color / mirror / Atom feed
From: Theo Van Dinter <felicity@kluge.net>
To: linux-lvm@sistina.com
Subject: Re: [linux-lvm] Mandrake 8.1 and LVM
Date: Fri Nov 30 10:47:01 2001	[thread overview]
Message-ID: <20011130114912.K26718@kluge.net> (raw)
In-Reply-To: <20011130020118.C17482@wookimus.net>; from chewie@wookimus.net on Fri, Nov 30, 2001 at 02:01:18AM -0600

[-- Attachment #1: Type: text/plain, Size: 3498 bytes --]

On Fri, Nov 30, 2001 at 02:01:18AM -0600, Chad C. Walstrom wrote:
> Reason #1:  Mount /usr as read-only.  There is only one reason why you
> should mount /usr read/write: to install software.  Upon completion of
> this one task, remount the drive as read-only.  Lock it down with kernel
> capabilities tools, and be done with it.  [apt-get has a nice way to
> auto-remount the drive in apt.conf(5) when installing/upgrading
> software.]

That depends on how paranoid you are regarding security.  My feeling
is that if someone can get enough access to write to pieces of / and
/usr that they shouldn't, they will likely have enough access to damage
the system anyway (fdisk/dd/lilo/grub/etc.)  So you really only protect
yourself from accidental damage (which shouldn't happen on a properly
configured box) and attackers who aren't creative.  ;)

I don't know much about the kernel capabilities facility, but if you
can mount the partition read-write to install apps without rebooting,
you haven't bought yourself anything.  If you can't (I assume that's
the benefit,) then you'll have to take a downtime whenever you want to
upgrade something which may or may not be a problem in your environment.

The "no reason" bit was more aimed at the carry-over from OSes like
SunOS where it was suggested (although I forget why at the moment) that
/ and /usr be on different partitions.  I think it was something about
partition location on disk, but that's another discussion.  :)

> Reason #2:  With LVM, you don't have to worry about exceeding the
> standard "allowed" harddrive partitions.  So, create logical volumes to
> your heart's (*ahem*) extent.  With filesystem and logical volume
> resizing, the flexibility and convenience outweight the small
> "overhead."

You're right about the exceeding available space, but /usr in LVM also
means that given a problem with LVM, you're unlikely to be able to get
your box to single-user mode.  Even if you do (I haven't tested this),
you're going to find a very limited environment without /usr.

With / on LVM, you're definately unable to boot if LVM has problems.

This is a problem I've seen a number of times on HPUX.  The OS disk is
under LVM in vg00.  People want more disk space and so they add another
disk to vg00 and go make new logical volumes (or worse, extend OS lvs.)
It's not a problem until this new disk fails (or isn't powered on before
bootup, or ...)  Then the volume group can't be started and the machine
won't boot.  If you've extended a core OS lv (/, /usr, /var, etc,) you've
just won yourself a restore/reinstall.  All that while having the main OS
disk still running perfectly.

At least with / and /usr outside of LVM, it'd likely be easier to recover
from the failure.

> Reason #3: It's just plain strange to have / share space with /usr.

Matter of opinion. :)

> Reason #4: For someone new to Linux, LVM provides you with the
> opportunity to correct a mistake without having to reinstall your system
> because you'd prefer a different harddrive partition layout.

True, but it also adds more complexity to setting up and maintaining the
system.

> Experiment, have fun.  With LVM, you can afford to play in order to find
> that "perfect" balance of partitioning and practicality.

:)

-- 
Randomly Generated Tagline:
"UNIX was not designed to stop you from doing stupid things, because
 that would also stop you from doing clever things." - Larry Wall

[-- Attachment #2: Type: application/pgp-signature, Size: 232 bytes --]

  parent reply	other threads:[~2001-11-30 10:47 UTC|newest]

Thread overview: 36+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-11-29 15:53 [linux-lvm] Mandrake 8.1 and LVM Sarwer Zafiruddin
2001-11-29 16:01 ` mitch
2001-11-29 16:06   ` Steve Wray
2001-11-29 18:07   ` Theo Van Dinter
2001-11-30  1:59     ` Chad C. Walstrom
2001-11-30  2:40       ` Steve Wray
2001-11-30 14:18         ` Chad C. Walstrom
2001-11-30 15:53           ` mitch
2001-11-30 19:31             ` Chad C. Walstrom
2001-12-01  0:15               ` mitch
2001-11-30 16:00           ` Petro
2001-11-30 19:27             ` Chad C. Walstrom
2001-11-30 16:04           ` Steve Wray
2001-11-30 19:24             ` Chad C. Walstrom
2001-11-30 10:47       ` Theo Van Dinter [this message]
2001-11-30 11:37         ` Luca Berra
2001-11-30 12:02           ` svetljo
2001-12-02  8:24             ` Luca Berra
2001-12-01 10:30     ` Wolfgang Weisselberg
  -- strict thread matches above, loose matches on Subject: below --
2001-12-02  8:55 Luca Berra
2001-12-02  9:22 ` galia
     [not found] <Pine.LNX.4.21.0111291810070.435-100000@sol.rune.org>
2001-11-29 17:12 ` Sarwer Zafiruddin
     [not found] <Pine.LNX.4.21.0111291704150.435-100000@sol.rune.org>
2001-11-29 16:14 ` Sarwer Zafiruddin
2001-11-29 16:44   ` Steve Wray
2001-11-30  2:35     ` Luca Berra
2001-12-01 10:17       ` Brian J. Murrell
2001-11-29  7:58 Sarwer Zafiruddin
2001-11-29 11:15 ` Luca Berra
2001-11-29 15:04   ` Steve Wray
2001-11-29 15:16     ` Lars Kellogg-Stedman
2001-11-29 15:42       ` mitch
2001-11-29 15:56         ` Steve Wray
2001-11-29 19:09         ` Lars Kellogg-Stedman
2001-12-03 20:12         ` Mark van Walraven
2001-11-30  2:28     ` Luca Berra
2001-12-01 10:58       ` Brian J. Murrell

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=20011130114912.K26718@kluge.net \
    --to=felicity@kluge.net \
    --cc=linux-lvm@sistina.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.