Re: cant mount second drive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxx -
- VitalStream, Inc.                       http://www.vitalstream.com -
-                                                                    -
-  Tempt not the dragons of fate, since thou art crunchy and taste   -
-                         good with ketchup.                         -
----------------------------------------------------------------------

[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux