From: lembark@wrkhors.com
To: linux-lvm@sistina.com
Subject: Re: [linux-lvm] 2 LVM questions
Date: Fri, 20 Jul 2001 09:20:20 -0500 [thread overview]
Message-ID: <56640000.995638820@duke.wrkhors.com> (raw)
In-Reply-To: <200107201334.QAA26563@easymail.hol.gr>
-- moka@hol.gr on 07/20/01 16:34:15 +0300
> 1) I have a system with 3 hard disks, and only one of
> them is presently used. This contains boot, root and
> swap plus a logical partition(not LVM) containing
> /var and /home.
>
> I have big database tables, so I would like
> to create one volume group consisting of the 2
> unused disks plus the /var. Is this possible
> without losing what is in /var?
> 2) The reason I need a lot of space is that mysql
> which I am using stores the database tables in /var.
> Can I somehow "name" the volume group /var
> so that mysql will not be confused?
Leave the partitions you need in single user off of
LVM. They may be necessary for fixing LVM at some
point (unless you enjoy booting from floppies). In
general the contents of / (excluding /usr), /var and
primary swap are a good bet to keep off of LVM.
Creating the volume groups to hold this data will
require blowing it off. Simplest fix is to:
Back the stuff up completely.
Create two PV's from the 2 "extra" drives.
Add the two PV'S into a single VG.
Build your file systems (striping might
be a useful idea or mirroring if you
need the availability).
Mount the new LV's under wherever the old
partitions were mounted.
Restore the data.
You probably aren't using all of "/var" for the
MySQL database. Whatever the directory you now
are using (e.g., /var/MySQL) can easily become
a mount point without the database even knowing
about it.
sl
next prev parent reply other threads:[~2001-07-20 14:20 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-07-20 13:34 [linux-lvm] 2 LVM questions moka
2001-07-20 14:20 ` lembark [this message]
2001-07-20 14:28 ` Eric M. Hopper
2001-07-20 14:38 ` Patrick Boutilier
2001-07-20 15:34 ` Joe Thornber
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=56640000.995638820@duke.wrkhors.com \
--to=lembark@wrkhors.com \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox