Hi all,
I need to add a drive with the same LVM labels (i.e. system) to a machine with a drive with the same label. How can I access the data on both drive's LVM partitions at the same time?
On Sun, 2008-11-09 at 23:30 +0200, Rudi Ahlers wrote:
I need to add a drive with the same LVM labels (i.e. system) to a machine with a drive with the same label. How can I access the data on both drive's LVM partitions at the same time?
You can't. Use vgrename on one of them.
On Mon, Nov 10, 2008 at 12:08 AM, Ignacio Vazquez-Abrams ivazqueznet@gmail.com wrote:
On Sun, 2008-11-09 at 23:30 +0200, Rudi Ahlers wrote:
I need to add a drive with the same LVM labels (i.e. system) to a machine with a drive with the same label. How can I access the data on both drive's LVM partitions at the same time?
You can't. Use vgrename on one of them.
-- Ignacio Vazquez-Abrams ivazqueznet@gmail.com
PLEASE don't CC me; I'm already subscribed
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
This is what I have:
sh-3.2# root@saturn:[~]$ pvscan PV /dev/md1 VG System lvm2 [148.94 GB / 8.94 GB free] Total: 1 [148.94 GB] / in use: 1 [148.94 GB] / in no VG: 0 [0 ] root@saturn:[~]$ vgscan Reading all physical volumes. This may take a while... l Found volume group "System" using metadata type lvm2 root@saturn:[~]$ lvscan ACTIVE '/dev/System/root' [10.00 GB] inherit ACTIVE '/dev/System/swap' [4.00 GB] inherit ACTIVE '/dev/System/home' [10.00 GB] inherit ACTIVE '/dev/System/data' [20.00 GB] inherit ACTIVE '/dev/System/andrew_vmswap' [1.00 GB] inherit ACTIVE '/dev/System/andrew_rootimg' [20.00 GB] inherit ACTIVE '/dev/System/wiseguy' [11.00 GB] inherit ACTIVE '/dev/System/pluto_rootimg' [20.00 GB] inherit ACTIVE '/dev/System/wiseguy_vmswap' [1.00 GB] inherit ACTIVE '/dev/System/wiseguy_rootimg' [20.00 GB] inherit ACTIVE '/dev/System/keith_vmswap' [1.00 GB] inherit ACTIVE '/dev/System/keith_rootimg' [20.00 GB] inherit ACTIVE '/dev/System/pluto_vmswap' [2.00 GB] inherit root@saturn:[~]$
Basically, most HDD's are setup the same, but I want to add another HDD to the same server, and use data on both HDD's.
So, do I rename System with vgrename then?
On Mon, 2008-11-10 at 00:25 +0200, Rudi Ahlers wrote:
On Mon, Nov 10, 2008 at 12:08 AM, Ignacio Vazquez-Abrams ivazqueznet@gmail.com wrote:
On Sun, 2008-11-09 at 23:30 +0200, Rudi Ahlers wrote:
I need to add a drive with the same LVM labels (i.e. system) to a machine with a drive with the same label. How can I access the data on both drive's LVM partitions at the same time?
You can't. Use vgrename on one of them.
This is what I have:
root@saturn:[~]$ lvscan ACTIVE '/dev/System/root' [10.00 GB] inherit
[snip]
Basically, most HDD's are setup the same, but I want to add another HDD to the same server, and use data on both HDD's.
So, do I rename System with vgrename then?
Yes. Don't forget to edit grub.conf and fstab and recreate your initrd.
Rudi Ahlers wrote:
Basically, most HDD's are setup the same, but I want to add another HDD to the same server, and use data on both HDD's.
So, do I rename System with vgrename then?
If your wanting to add a new disk to the same volume group and use it then no you don't need to rename anything, you can use the vgextend command after running pvcreate on the new disk to extend the existing volume group to the new disk.
If your wanting to add an existing disk to a system that already has a conflicting volume group name in it, then yes you'll need to vgrename one of them so they do not conflict.
nate
On Sun, 2008-11-09 at 23:51 -0800, nate wrote:
Rudi Ahlers wrote:
Basically, most HDD's are setup the same, but I want to add another HDD to the same server, and use data on both HDD's.
So, do I rename System with vgrename then?
If your wanting to add a new disk to the same volume group and use it then no you don't need to rename anything, you can use the vgextend command after running pvcreate on the new disk to extend the existing volume group to the new disk.
If your wanting to add an existing disk to a system that already has a conflicting volume group name in it, then yes you'll need to vgrename one of them so they do not conflict.
Hmmm. I've not seen vgexport/vgimport mentioned. Will this be needed? I'm not sure for this particular situation.
nate
<snip sig stuff>