[CentOS] can I use 2 HDD's with the same LVM labels at the same time?
Rudi Ahlers
rudiahlers at gmail.com
Sun Nov 9 22:25:27 UTC 2008
On Mon, Nov 10, 2008 at 12:08 AM, Ignacio Vazquez-Abrams
<ivazqueznet at 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 at gmail.com>
>
> PLEASE don't CC me; I'm already subscribed
>
> _______________________________________________
> CentOS mailing list
> CentOS at centos.org
> http://lists.centos.org/mailman/listinfo/centos
>
>
This is what I have:
sh-3.2# root at 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 at saturn:[~]$ vgscan
Reading all physical volumes. This may take a while...
l Found volume group "System" using metadata type lvm2
root at 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 at 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?
--
Kind Regards
Rudi Ahlers
More information about the CentOS
mailing list