cant mount second drive

Rick Stevens rstevens at vitalstream.com
Mon Jan 22 18:52:59 UTC 2007


On Fri, 2007-01-19 at 20:55 -0500, jack wallen wrote:
> On Fri, 2007-01-19 at 16:23 -0800, Rick Stevens wrote:
> > vgcreate VolGroup01 /dev/hdb2
> 
> did not work. i get:
> 
>   WARNING: Duplicate VG name VolGroup00: Existing
> 4O0f0O-fFa4-6Qfo-KRBh-knvO-WYsC-v3uVHK (created here) takes precedence
> over CifEpP-vH2h-fb16-XERE-EmJA-HqWu-pDkiUW
>   Physical volume '/dev/hdb2' is already in volume group 'VolGroup00'
>   Unable to add physical volume '/dev/hdb2' to volume group
> 'VolGroup01'.


Very odd.  I created a PV on a new drive:

	# pvcreate /dev/sda1

Then I created a VG and used it:

	# vgcreate TestVG /dev/sda1
	# vgchange -a y TestVG

I created an LV on it, formatted it and mounted it:

	# lvcreate -n TestLV -l (number of extents) TestVG
	# mke2fs -j -L TestDisk /dev/TestVG/TestLV
	# mkdir /media/test
	# mount /dev/TestVG/TestLV /media/test

Then I unmounted it and split it off to a new VG, activated the new VG
and mounted the old filesystem:

	# umount /media/test
	# vgchange -a n TestVG
	# vgsplit TestVG TestVG1 /dev/sda1
	# lvchange -ay TestVG1
	# mount /dev/TestVG1/TestLV /media/test

The trick here is that the original VG must be inactive before you do
the split.  AFAIK, the only way you can do that with your stuff now is
to boot off the rescue CD, let it mount the stuff, then follow the steps
I did starting with "vgchange -a n ..."

----------------------------------------------------------------------
- Rick Stevens, Senior Systems Engineer     rstevens at vitalstream.com -
- VitalStream, Inc.                       http://www.vitalstream.com -
-                                                                    -
-  Tempt not the dragons of fate, since thou art crunchy and taste   -
-                         good with ketchup.                         -
----------------------------------------------------------------------




More information about the fedora-list mailing list