<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Mirror disk pvcreate -B error: The physical volume already belongs to a volume group in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/mirror-disk-pvcreate-b-error-the-physical-volume-already-belongs/m-p/4308909#M339074</link>
    <description>Hi&lt;BR /&gt;&lt;BR /&gt;I have been doing the task of rebuild a rp4440 server as OS went bad couple weeks ago. I have done the OE (HP-UX 11i v1) installation and complete install the Mirror_disk/UX. &lt;BR /&gt;There are two physical HDs in this box &lt;BR /&gt;0/1/1/0.1.0 /dev/rdsk/c2t1d0  -- primary boot root disk&lt;BR /&gt;0/1/1/0.0.0 /dev/rdsk/c2t0d0  -- wanna configure it as alternate boot root disk&lt;BR /&gt;I have configured c2t1d0 as primary root disk and installed the OE … into it. I'm going to configure c2t0d0 as alternate boot root disk. But when I run command # pvcreate -B /dev/rdsk/c2t0d0  I got below error message &lt;BR /&gt;"pvcreate: The physical volume already belongs to a volume group".&lt;BR /&gt;# vgscan&lt;BR /&gt;Following Physical Volumes belong to one Volume Group.&lt;BR /&gt;Unable to match these Physical Volumes to a Volume Group.&lt;BR /&gt;Use the vgimport command to complete the process.&lt;BR /&gt;/dev/dsk/c2t0d0&lt;BR /&gt;But when I run &lt;BR /&gt;# vgimport /dev/vg00 /dev/dsk/c2t0d0&lt;BR /&gt;vgimport: Volume group "/dev/vg00" already exists in the "/etc/lvmtab" file.&lt;BR /&gt;# vgextend /dev/vg00 /dev/dsk/c2t0d0&lt;BR /&gt;vgextend: Couldn't install the physical volume "/dev/dsk/c2t0d0".&lt;BR /&gt;Device busy&lt;BR /&gt;I have tried pvremove, it didn't work...&lt;BR /&gt;&lt;BR /&gt;How to remove old configurations of c2t0d0 and how to remove/delete all the data on c2t0d0? I need a fresh new c2t0d0 like a new HD in order to use it configure as AlterNet boot root disk.&lt;BR /&gt;&lt;BR /&gt;Thanks a lot any answers will be very appreciate.&lt;BR /&gt;&lt;BR /&gt;-Gary</description>
    <pubDate>Tue, 18 Nov 2008 23:16:41 GMT</pubDate>
    <dc:creator>Gary L</dc:creator>
    <dc:date>2008-11-18T23:16:41Z</dc:date>
    <item>
      <title>Mirror disk pvcreate -B error: The physical volume already belongs to a volume group</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mirror-disk-pvcreate-b-error-the-physical-volume-already-belongs/m-p/4308909#M339074</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;I have been doing the task of rebuild a rp4440 server as OS went bad couple weeks ago. I have done the OE (HP-UX 11i v1) installation and complete install the Mirror_disk/UX. &lt;BR /&gt;There are two physical HDs in this box &lt;BR /&gt;0/1/1/0.1.0 /dev/rdsk/c2t1d0  -- primary boot root disk&lt;BR /&gt;0/1/1/0.0.0 /dev/rdsk/c2t0d0  -- wanna configure it as alternate boot root disk&lt;BR /&gt;I have configured c2t1d0 as primary root disk and installed the OE … into it. I'm going to configure c2t0d0 as alternate boot root disk. But when I run command # pvcreate -B /dev/rdsk/c2t0d0  I got below error message &lt;BR /&gt;"pvcreate: The physical volume already belongs to a volume group".&lt;BR /&gt;# vgscan&lt;BR /&gt;Following Physical Volumes belong to one Volume Group.&lt;BR /&gt;Unable to match these Physical Volumes to a Volume Group.&lt;BR /&gt;Use the vgimport command to complete the process.&lt;BR /&gt;/dev/dsk/c2t0d0&lt;BR /&gt;But when I run &lt;BR /&gt;# vgimport /dev/vg00 /dev/dsk/c2t0d0&lt;BR /&gt;vgimport: Volume group "/dev/vg00" already exists in the "/etc/lvmtab" file.&lt;BR /&gt;# vgextend /dev/vg00 /dev/dsk/c2t0d0&lt;BR /&gt;vgextend: Couldn't install the physical volume "/dev/dsk/c2t0d0".&lt;BR /&gt;Device busy&lt;BR /&gt;I have tried pvremove, it didn't work...&lt;BR /&gt;&lt;BR /&gt;How to remove old configurations of c2t0d0 and how to remove/delete all the data on c2t0d0? I need a fresh new c2t0d0 like a new HD in order to use it configure as AlterNet boot root disk.&lt;BR /&gt;&lt;BR /&gt;Thanks a lot any answers will be very appreciate.&lt;BR /&gt;&lt;BR /&gt;-Gary</description>
      <pubDate>Tue, 18 Nov 2008 23:16:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mirror-disk-pvcreate-b-error-the-physical-volume-already-belongs/m-p/4308909#M339074</guid>
      <dc:creator>Gary L</dc:creator>
      <dc:date>2008-11-18T23:16:41Z</dc:date>
    </item>
    <item>
      <title>Re: Mirror disk pvcreate -B error: The physical volume already belongs to a volume group</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mirror-disk-pvcreate-b-error-the-physical-volume-already-belongs/m-p/4308910#M339075</link>
      <description># vgdisplay -v /dev/vg00 |more --&amp;gt; check wether ""/dev/dsk/c2t0d0" exist ..?&lt;BR /&gt;&lt;BR /&gt;# cp -pi /etc/lvmtab /etc/lvmtab.old&lt;BR /&gt;&lt;BR /&gt;# mv /etc/lvmtab /etc/lvmtab.&lt;CURRENT_DATE&gt;&lt;BR /&gt;&lt;BR /&gt;# /usr/sbin/vgscan -v&lt;BR /&gt;&lt;BR /&gt;# strings /etc/lvmtab --&amp;gt; look weather disk  /dev/dsk/c2t0d0" still exists&lt;BR /&gt;&lt;BR /&gt;if not &lt;BR /&gt;&lt;BR /&gt;# pvcreate -fB /dev/rdsk/c2t0d0&lt;BR /&gt;&lt;BR /&gt;# vgextend /dev/vg00 /dev/dsk/c2t0d0&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Johnson&lt;BR /&gt;&lt;BR /&gt;&lt;/CURRENT_DATE&gt;</description>
      <pubDate>Tue, 18 Nov 2008 23:34:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mirror-disk-pvcreate-b-error-the-physical-volume-already-belongs/m-p/4308910#M339075</guid>
      <dc:creator>Johnson Punniyalingam</dc:creator>
      <dc:date>2008-11-18T23:34:40Z</dc:date>
    </item>
    <item>
      <title>Re: Mirror disk pvcreate -B error: The physical volume already belongs to a volume group</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mirror-disk-pvcreate-b-error-the-physical-volume-already-belongs/m-p/4308911#M339076</link>
      <description>Hi Johnson&lt;BR /&gt;&lt;BR /&gt;Thanks you very much for your fast reply and detail steps.&lt;BR /&gt;&lt;BR /&gt;I know the reason why c2t0d0 existing, because that HD contains the old data, I'm going to rebuid this server, but I have no idea how to remove the old data on those two HDs (like format on windows). OE installation process deleted/covered the old data on c2t1d0.&lt;BR /&gt;&lt;BR /&gt;I will try # pvcreate -fB to force create see if it works.&lt;BR /&gt;&lt;BR /&gt;Thanks again.&lt;BR /&gt;&lt;BR /&gt;-G</description>
      <pubDate>Wed, 19 Nov 2008 00:22:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mirror-disk-pvcreate-b-error-the-physical-volume-already-belongs/m-p/4308911#M339076</guid>
      <dc:creator>Gary L</dc:creator>
      <dc:date>2008-11-19T00:22:10Z</dc:date>
    </item>
    <item>
      <title>Re: Mirror disk pvcreate -B error: The physical volume already belongs to a volume group</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mirror-disk-pvcreate-b-error-the-physical-volume-already-belongs/m-p/4308912#M339077</link>
      <description>option -f force pvcreate works.&lt;BR /&gt;&lt;BR /&gt;I have done the mirror disk job.&lt;BR /&gt;&lt;BR /&gt;Thanks a lot.&lt;BR /&gt;&lt;BR /&gt;Q: How to "format" or delete all the data on a HD like c2t0d0.&lt;BR /&gt;&lt;BR /&gt;Thanks.&lt;BR /&gt;&lt;BR /&gt;-G&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 19 Nov 2008 01:28:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mirror-disk-pvcreate-b-error-the-physical-volume-already-belongs/m-p/4308912#M339077</guid>
      <dc:creator>Gary L</dc:creator>
      <dc:date>2008-11-19T01:28:03Z</dc:date>
    </item>
    <item>
      <title>Re: Mirror disk pvcreate -B error: The physical volume already belongs to a volume group</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mirror-disk-pvcreate-b-error-the-physical-volume-already-belongs/m-p/4308913#M339078</link>
      <description>Hi Gary,&lt;BR /&gt;&lt;BR /&gt;Normally we NEVER "format" any disk. We simply do a vgexport to remove all information about the VG and LVOLs and then reuse the disk for any other VG (by pvcreate and vgcreate) that will ultimately overwrite the data.&lt;BR /&gt;&lt;BR /&gt;If you still wants to format or rather destroy the data (by overwriting by zeroes) on the disk, use below command:&lt;BR /&gt;&lt;BR /&gt;#dd if=/dev/zero of=/dev/rdsk/c2t0d0 bs=1024k&lt;BR /&gt;&lt;BR /&gt;-R.K.$</description>
      <pubDate>Wed, 19 Nov 2008 02:13:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mirror-disk-pvcreate-b-error-the-physical-volume-already-belongs/m-p/4308913#M339078</guid>
      <dc:creator>R.K. #</dc:creator>
      <dc:date>2008-11-19T02:13:18Z</dc:date>
    </item>
    <item>
      <title>Re: Mirror disk pvcreate -B error: The physical volume already belongs to a volume group</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mirror-disk-pvcreate-b-error-the-physical-volume-already-belongs/m-p/4308914#M339079</link>
      <description>Hi R.K.$&lt;BR /&gt;&lt;BR /&gt;Thanks for your good answer.&lt;BR /&gt;&lt;BR /&gt;Have a good day.&lt;BR /&gt;&lt;BR /&gt;-Gary&lt;BR /&gt;</description>
      <pubDate>Wed, 19 Nov 2008 20:34:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mirror-disk-pvcreate-b-error-the-physical-volume-already-belongs/m-p/4308914#M339079</guid>
      <dc:creator>Gary L</dc:creator>
      <dc:date>2008-11-19T20:34:14Z</dc:date>
    </item>
  </channel>
</rss>

