* [linux-lvm] LVM backup server
@ 2003-12-03 7:42 George Campbell
2003-12-03 8:21 ` Patrick Caulfield
0 siblings, 1 reply; 4+ messages in thread
From: George Campbell @ 2003-12-03 7:42 UTC (permalink / raw)
To: linux-lvm; +Cc: Charlie Pasquariello
[-- Attachment #1: Type: text/plain, Size: 789 bytes --]
I followed the LVM HOW-TO to install and configure LVM on a Linux server. I defined a single volume group, a single logical volume, and about 14 separate physical extents on a SAN. It works fine.
My question is, what steps need to be done beyond the initial rpm install and activation to configure LVM on a second server that will only be used for backup if the first server goes down. I don't want to do anything that would wipe out any data on the logical volume, but I want the volume group and logical volume to be defined exactly as the original server has them defined.
It seems I should NOT do any pvcreates. Can I just do the vgcreate, followed by the lvcreate, skip doing the mk2fs, and do the mount of the logical volume?
Thanks,
George Campbell
Bus-Tech, Inc.
[-- Attachment #2: Type: text/html, Size: 6054 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [linux-lvm] LVM backup server
2003-12-03 7:42 [linux-lvm] LVM backup server George Campbell
@ 2003-12-03 8:21 ` Patrick Caulfield
0 siblings, 0 replies; 4+ messages in thread
From: Patrick Caulfield @ 2003-12-03 8:21 UTC (permalink / raw)
To: linux-lvm
On Wed, Dec 03, 2003 at 08:36:44AM -0500, George Campbell wrote:
> Link: File-List
>
> I followed the LVM HOW-TO to install and configure LVM on a Linux server.
> I defined a single volume group, a single logical volume, and about 14
> separate physical extents on a SAN. It works fine.
>
> My question is, what steps need to be done beyond the initial rpm install
> and activation to configure LVM on a second server that will only be used
> for backup if the first server goes down. I don't want to do anything that
> would wipe out any data on the logical volume, but I want the volume group
> and logical volume to be defined exactly as the original server has them
> defined.
>
> It seems I should NOT do any pvcreates. Can I just do the vgcreate,
> followed by the lvcreate, skip doing the mk2fs, and do the mount of the
> logical volume?
You don't need to do anything apart from vgscan/vgchange -ay when you need to
use the volumes, the mount them.
Don't redo vgcreate/lvcreate as that will mangle the metadata for the other
node.
--
patrick
^ permalink raw reply [flat|nested] 4+ messages in thread
* RE: [linux-lvm] LVM backup server
@ 2003-12-03 11:12 George Campbell
2003-12-03 11:24 ` Patrick Caulfield
0 siblings, 1 reply; 4+ messages in thread
From: George Campbell @ 2003-12-03 11:12 UTC (permalink / raw)
To: linux-lvm
I appreciate your reply. But, I'm confused. How can I do a mount /dev/lvg1/lvol1 /mnt/dvol1 command, when the logical volume group and logical volume have not been created on this server? Does the vgscan/vgchange ay build these entries in /dev?
-----Original Message-----
From: linux-lvm-admin@sistina.com [mailto:linux-lvm-admin@sistina.com]On Behalf Of Patrick Caulfield
Sent: Wednesday, December 03, 2003 9:20 AM
To: linux-lvm@sistina.com
Subject: Re: [linux-lvm] LVM backup server
On Wed, Dec 03, 2003 at 08:36:44AM -0500, George Campbell wrote:
> Link: File-List
>
> I followed the LVM HOW-TO to install and configure LVM on a Linux server.
> I defined a single volume group, a single logical volume, and about 14
> separate physical extents on a SAN. It works fine.
>
> My question is, what steps need to be done beyond the initial rpm install
> and activation to configure LVM on a second server that will only be used
> for backup if the first server goes down. I don't want to do anything that
> would wipe out any data on the logical volume, but I want the volume group
> and logical volume to be defined exactly as the original server has them
> defined.
>
> It seems I should NOT do any pvcreates. Can I just do the vgcreate,
> followed by the lvcreate, skip doing the mk2fs, and do the mount of the
> logical volume?
You don't need to do anything apart from vgscan/vgchange -ay when you need to
use the volumes, the mount them.
Don't redo vgcreate/lvcreate as that will mangle the metadata for the other
node.
--
patrick
_______________________________________________
linux-lvm mailing list
linux-lvm@sistina.com
http://lists.sistina.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [linux-lvm] LVM backup server
2003-12-03 11:12 George Campbell
@ 2003-12-03 11:24 ` Patrick Caulfield
0 siblings, 0 replies; 4+ messages in thread
From: Patrick Caulfield @ 2003-12-03 11:24 UTC (permalink / raw)
To: linux-lvm
On Wed, Dec 03, 2003 at 09:34:33AM -0500, George Campbell wrote:
> I appreciate your reply. But, I'm confused. How can I do a mount /dev/lvg1/lvol1 /mnt/dvol1 command, when the logical volume group and logical volume have not been created on this server? Does the vgscan/vgchange ay build these entries in /dev?
Yes. vgscan/vgchange reads the metadata off disk and creates the necessary volume
groups and device files.
--
patrick
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2003-12-03 11:24 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-12-03 7:42 [linux-lvm] LVM backup server George Campbell
2003-12-03 8:21 ` Patrick Caulfield
-- strict thread matches above, loose matches on Subject: below --
2003-12-03 11:12 George Campbell
2003-12-03 11:24 ` Patrick Caulfield
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.