* [linux-lvm] multi-disk vg?
@ 2004-01-28 10:48 Chris Conn
2004-02-05 22:05 ` Bradley Alexander
0 siblings, 1 reply; 3+ messages in thread
From: Chris Conn @ 2004-01-28 10:48 UTC (permalink / raw)
To: linux-lvm
I've finally finished setting up my Slackware 9.1 box
with LVM and ReiserFS, here's what I've got:
disk 0 (one partition)
/dev/mainvg/root /
(and swap space)
disk 1 (two partitions)
/dev/rootvg/usr /usr
/dev/rootvg/var /var
/dev/rootvg/tmp /tmp
/dev/datavg/home /home
/dev/datavg/data /data
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?
BTW I left /etc in / because I had trouble mounting it
as a seperate filesystem with /etc/fstab.
Thanks for any advice,
=====
Chris Conn
cmcgoat@swbell.net http://storm.cadcam.iupui.edu/~cmcgoat
Austin, TX
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [linux-lvm] multi-disk vg?
2004-01-28 10:48 [linux-lvm] multi-disk vg? Chris Conn
@ 2004-02-05 22:05 ` Bradley Alexander
0 siblings, 0 replies; 3+ messages in thread
From: Bradley Alexander @ 2004-02-05 22:05 UTC (permalink / raw)
To: linux-lvm
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* [linux-lvm] multi-disk vg?
@ 2004-01-27 18:13 Chris Conn
0 siblings, 0 replies; 3+ messages in thread
From: Chris Conn @ 2004-01-27 18:13 UTC (permalink / raw)
To: linux-lvm
I've finally finished setting up my Slackware 9.1 box
with LVM and ReiserFS, here's what I've got:
disk 0 (one partition)
/dev/mainvg/root /
(and swap space)
disk 1 (two partitions)
/dev/rootvg/usr /usr
/dev/rootvg/var /var
/dev/rootvg/tmp /tmp
/dev/datavg/home /home
/dev/datavg/data /data
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?
BTW I left /etc in / because I had trouble mounting it
as a seperate filesystem with /etc/fstab.
Thanks for any advice,
=====
Chris Conn
cmcgoat@swbell.net http://storm.cadcam.iupui.edu/~cmcgoat
Austin, TX
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2004-02-05 22:05 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-01-28 10:48 [linux-lvm] multi-disk vg? Chris Conn
2004-02-05 22:05 ` Bradley Alexander
-- strict thread matches above, loose matches on Subject: below --
2004-01-27 18:13 Chris Conn
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.