From: Bradley Alexander <storm@tux.org>
To: linux-lvm@sistina.com
Subject: Re: [linux-lvm] multi-disk vg?
Date: Thu Feb 5 22:05:02 2004 [thread overview]
Message-ID: <20040205220234.210ddd2f.storm@tux.org> (raw)
In-Reply-To: <20040127231104.52100.qmail@web80402.mail.yahoo.com>
On Tue, 27 Jan 2004 15:11:04 -0800 (PST)
Chris Conn <cmcgoat@yahoo.com> wrote:
> I set up rootvg and datavg first and then last night
> I followed the LVM How-To and converted the setup the
> mainvg VG with root. All works well.
>
> Now I'm wondering if I can merge mainvg and rootvg
> as one VG though they're on two seperate disks. Is this
> possible? And if so is it a good idea?
As the tanker says in StarCraft, "Ab-so-lutely." I actually have but a
single VG spread across 3 PVs:
[defiant /home/storm]# vgdisplay -v
[SNIP]
--- Physical volumes ---
PV Name (#) /dev/ide/host0/bus1/target0/lun0/disc (2)
PV Status available / allocatable
Total PE / Free PE 3575 / 2223
PV Name (#) /dev/ide/host0/bus0/target0/lun0/part3 (1)
PV Status available / allocatable
Total PE / Free PE 3341 / 0
PV Name (#) /dev/ide/host0/bus0/target1/lun0/disc (3)
PV Status available / allocatable
Total PE / Free PE 4884 / 3721
When I add a disk, its as easy as putting the drive in and doing a
pvcreate...
As for the actual combining, I believe you would (assuming you have space
in mainvg) lvcreate for each LV in rootvg, mount to a directory (say,
/mnt), cp -avx everything over and mount in place of the current volume
(from single user mode, of course). once complete, you should be free to
remove your PVs from rootvg, remove rootvg and add your PVs to mainvg.
--
--Brad
========================================================================
Bradley M. Alexander |
gTLD SysAdmin, Security Engineer | storm [at] tux.org
Debian/GNU Linux Developer | storm [at] debian.org
========================================================================
Key fingerprints:
DSA 0x54434E65: 37F6 BCA6 621D 920C E02E E3C8 73B2 C019 5443 4E65
RSA 0xC3BCBA91: 3F 0E 26 C1 90 14 AD 0A C8 9C F0 93 75 A0 01 34
========================================================================
Security times usability is a constant: The only secure system is one that
is unplugged from the network, powered off, packed in concrete, then fired
into the sun...But at that point, it isn't very usable, is it?
--Brad Alexander
next prev parent reply other threads:[~2004-02-05 22:05 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-01-28 10:48 [linux-lvm] multi-disk vg? Chris Conn
2004-02-05 22:05 ` Bradley Alexander [this message]
-- strict thread matches above, loose matches on Subject: below --
2004-01-27 18:13 Chris Conn
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=20040205220234.210ddd2f.storm@tux.org \
--to=storm@tux.org \
--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.