Re: [CentOS] can I use 2 HDD's with the same LVM labels at the same time?

2008-11-10 Thread William L. Maltby

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
> 

-- 
Bill

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] can I use 2 HDD's with the same LVM labels at the same time?

2008-11-09 Thread nate
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

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] can I use 2 HDD's with the same LVM labels at the same time?

2008-11-09 Thread Ignacio Vazquez-Abrams
On Mon, 2008-11-10 at 00:25 +0200, Rudi Ahlers wrote:
> On Mon, Nov 10, 2008 at 12:08 AM, Ignacio Vazquez-Abrams
> <[EMAIL PROTECTED]> 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:

> [EMAIL PROTECTED]:[~]$ 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.

-- 
Ignacio Vazquez-Abrams <[EMAIL PROTECTED]>

PLEASE don't CC me; I'm already subscribed


signature.asc
Description: This is a digitally signed message part
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] can I use 2 HDD's with the same LVM labels at the same time?

2008-11-09 Thread Rudi Ahlers
On Mon, Nov 10, 2008 at 12:08 AM, Ignacio Vazquez-Abrams
<[EMAIL PROTECTED]> 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 <[EMAIL PROTECTED]>
>
> 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# [EMAIL PROTECTED]:[~]$ 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   ]
[EMAIL PROTECTED]:[~]$ vgscan
  Reading all physical volumes.  This may take a while...
l  Found volume group "System" using metadata type lvm2
[EMAIL PROTECTED]:[~]$ 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
[EMAIL PROTECTED]:[~]$





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?
-- 

Kind Regards
Rudi Ahlers
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] can I use 2 HDD's with the same LVM labels at the same time?

2008-11-09 Thread Ignacio Vazquez-Abrams
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 <[EMAIL PROTECTED]>

PLEASE don't CC me; I'm already subscribed


signature.asc
Description: This is a digitally signed message part
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] can I use 2 HDD's with the same LVM labels at the same time?

2008-11-09 Thread Rudi Ahlers
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?

-- 

Kind Regards
Rudi Ahlers
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos