<?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 Re: Remove LVM info in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/remove-lvm-info/m-p/2756736#M519397</link>
    <description>The LVM information will remain on the disk headers of volume groups other than vg00. &lt;BR /&gt;&lt;BR /&gt;You can just re-use the disks into new volume groups if you don't require the old information. &lt;BR /&gt;&lt;BR /&gt;To re-use the new disks use 'pvcreate -f /dev/rdsk/cxtydz&lt;BR /&gt;</description>
    <pubDate>Wed, 03 Jul 2002 00:16:41 GMT</pubDate>
    <dc:creator>Michael Tully</dc:creator>
    <dc:date>2002-07-03T00:16:41Z</dc:date>
    <item>
      <title>Remove LVM info</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/remove-lvm-info/m-p/2756734#M519395</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;When I reinstall the OS still system remembers the old disk groups. How to remove the old info? Just running pvremove is enough?&lt;BR /&gt;&lt;BR /&gt;Thanks</description>
      <pubDate>Tue, 02 Jul 2002 23:44:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/remove-lvm-info/m-p/2756734#M519395</guid>
      <dc:creator>SAM_24</dc:creator>
      <dc:date>2002-07-02T23:44:10Z</dc:date>
    </item>
    <item>
      <title>Re: Remove LVM info</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/remove-lvm-info/m-p/2756735#M519396</link>
      <description>It depends.&lt;BR /&gt;&lt;BR /&gt;I'd be tempted to do the lot.&lt;BR /&gt;&lt;BR /&gt;if mirrored reduce logical volumes&lt;BR /&gt;&lt;BR /&gt;remove logical volumes&lt;BR /&gt;remove volume groups&lt;BR /&gt;remove disks (if required).&lt;BR /&gt;&lt;BR /&gt;Then again, the idea of an ignite is to rebuild a system that has crashed or to clone identical systems.&lt;BR /&gt;&lt;BR /&gt;Scott.&lt;BR /&gt;</description>
      <pubDate>Tue, 02 Jul 2002 23:46:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/remove-lvm-info/m-p/2756735#M519396</guid>
      <dc:creator>Scott Van Kalken</dc:creator>
      <dc:date>2002-07-02T23:46:41Z</dc:date>
    </item>
    <item>
      <title>Re: Remove LVM info</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/remove-lvm-info/m-p/2756736#M519397</link>
      <description>The LVM information will remain on the disk headers of volume groups other than vg00. &lt;BR /&gt;&lt;BR /&gt;You can just re-use the disks into new volume groups if you don't require the old information. &lt;BR /&gt;&lt;BR /&gt;To re-use the new disks use 'pvcreate -f /dev/rdsk/cxtydz&lt;BR /&gt;</description>
      <pubDate>Wed, 03 Jul 2002 00:16:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/remove-lvm-info/m-p/2756736#M519397</guid>
      <dc:creator>Michael Tully</dc:creator>
      <dc:date>2002-07-03T00:16:41Z</dc:date>
    </item>
    <item>
      <title>Re: Remove LVM info</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/remove-lvm-info/m-p/2756737#M519398</link>
      <description>Raj,&lt;BR /&gt;&lt;BR /&gt;As Michael has already stataed, the LVM info will remain on the disks even after you remove it from LVM.&lt;BR /&gt;&lt;BR /&gt;The easiest way is to just reuse the disk with a pvcreate -f /dev/rdsk/cXtXdX, although if you really want to ensure that all data has been fully removed from the disk you can use dd:&lt;BR /&gt;&lt;BR /&gt;dd if=/dev/zero of=/dev/dsk/cXtYdZ count=&lt;NUMBER of="" blocks="" on="" disk=""&gt;&lt;BR /&gt;&lt;BR /&gt;I don't think /dev/zero is installed by default, but the major number is the same as /dev/null and the minor is 3, but I would check on that before creating the device if it is not already present.&lt;BR /&gt;&lt;BR /&gt;The bottom line is that I wouldn't go to all the trouble of wiping the disks clean with dd, unless I had a reason to, otherwise a simple pvcreate will suffice.&lt;BR /&gt;&lt;BR /&gt;Hope that helps.&lt;BR /&gt;&lt;BR /&gt;-Mike&lt;/NUMBER&gt;</description>
      <pubDate>Wed, 03 Jul 2002 01:17:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/remove-lvm-info/m-p/2756737#M519398</guid>
      <dc:creator>Mike Hassell</dc:creator>
      <dc:date>2002-07-03T01:17:31Z</dc:date>
    </item>
    <item>
      <title>Re: Remove LVM info</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/remove-lvm-info/m-p/2756738#M519399</link>
      <description>If you do a pvcreate -f and the disk is already in lvmtab, you may get an error message;&lt;BR /&gt;&lt;BR /&gt;pvcreate: The physical volume "/dev/dsk/c0t5d0" is already recorded in the "/etc&lt;BR /&gt;/lvmtab" file.&lt;BR /&gt;&lt;BR /&gt;You will need to "vgexport" the associated volume group, as well as removing the logical volumes etc. as already suggested.&lt;BR /&gt;&lt;BR /&gt;I also delete and re-create the /dev/vg?? special files for all non-root volume groups.&lt;BR /&gt;&lt;BR /&gt;eg rm -r /dev/vg01&lt;BR /&gt;&lt;BR /&gt;mkdir /dev/vg01&lt;BR /&gt;mknod /dev/vg01/group c 64 0x010000&lt;BR /&gt;&lt;BR /&gt;However I question why you are doing this if you are using Ignite on the same box, it was created on? Normally only required on a DR box where device names are similar.&lt;BR /&gt;&lt;BR /&gt;HTH &lt;BR /&gt;&lt;BR /&gt;Sean</description>
      <pubDate>Wed, 03 Jul 2002 12:19:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/remove-lvm-info/m-p/2756738#M519399</guid>
      <dc:creator>Sean McConkey_2</dc:creator>
      <dc:date>2002-07-03T12:19:18Z</dc:date>
    </item>
    <item>
      <title>Re: Remove LVM info</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/remove-lvm-info/m-p/2756739#M519400</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;pvcreate -f /dev/rdsk/c1t2d0 &lt;BR /&gt;&lt;BR /&gt;vgexport does not remove any information from the disks, it removes the info about the vg from the OS.&lt;BR /&gt;&lt;BR /&gt;Piyush</description>
      <pubDate>Wed, 03 Jul 2002 12:27:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/remove-lvm-info/m-p/2756739#M519400</guid>
      <dc:creator>PIYUSH D. PATEL</dc:creator>
      <dc:date>2002-07-03T12:27:20Z</dc:date>
    </item>
    <item>
      <title>Re: Remove LVM info</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/remove-lvm-info/m-p/2756740#M519401</link>
      <description>Piyush,&lt;BR /&gt;&lt;BR /&gt;It is necessary to remove the the information using vgexport from /etc/lvmtab before you can destroy the data on the disk with pvcreate.&lt;BR /&gt;&lt;BR /&gt;This applies as already suggested if the physical volume already matches that stored in /etc/lvmtab. If it doesn't then pvcreate will work.&lt;BR /&gt;&lt;BR /&gt;Disaster recovery is my game and I have to do this regularly when testing client systems.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 03 Jul 2002 12:38:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/remove-lvm-info/m-p/2756740#M519401</guid>
      <dc:creator>Sean McConkey_2</dc:creator>
      <dc:date>2002-07-03T12:38:32Z</dc:date>
    </item>
    <item>
      <title>Re: Remove LVM info</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/remove-lvm-info/m-p/2756741#M519402</link>
      <description>One way to tell if you have an LVM record on a disk is:&lt;BR /&gt;&lt;BR /&gt;echo "0x2000?4S" | adb /dev/dsk/cXtXdX&lt;BR /&gt;&lt;BR /&gt;you should see something like&lt;BR /&gt;&lt;BR /&gt;2000:  LVMREC01adjfakdjfa;&lt;BR /&gt;&lt;BR /&gt;If you you have a record on that disk.&lt;BR /&gt;&lt;BR /&gt;HTH,&lt;BR /&gt;C</description>
      <pubDate>Wed, 03 Jul 2002 12:55:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/remove-lvm-info/m-p/2756741#M519402</guid>
      <dc:creator>Craig Rants</dc:creator>
      <dc:date>2002-07-03T12:55:53Z</dc:date>
    </item>
    <item>
      <title>Re: Remove LVM info</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/remove-lvm-info/m-p/2756742#M519403</link>
      <description>pvcreate -f</description>
      <pubDate>Thu, 04 Jul 2002 01:37:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/remove-lvm-info/m-p/2756742#M519403</guid>
      <dc:creator>Robert Sipe</dc:creator>
      <dc:date>2002-07-04T01:37:54Z</dc:date>
    </item>
    <item>
      <title>Re: Remove LVM info</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/remove-lvm-info/m-p/2756743#M519404</link>
      <description>Because you say "remembers the old disk groups" (note "groups"), I assume that it still shows the old *volume* groups (i.e. "vgdisplay vg??"). If so, then it is best to vgexport the unwanted groups.&lt;BR /&gt;&lt;BR /&gt;The others have already given solutions for the other scenarios.&lt;BR /&gt;&lt;BR /&gt;BTW, "pvremove" does not exist.</description>
      <pubDate>Thu, 04 Jul 2002 08:01:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/remove-lvm-info/m-p/2756743#M519404</guid>
      <dc:creator>Frank Slootweg</dc:creator>
      <dc:date>2002-07-04T08:01:14Z</dc:date>
    </item>
    <item>
      <title>Re: Remove LVM info</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/remove-lvm-info/m-p/2756744#M519405</link>
      <description>Thank you for all of your responses.&lt;BR /&gt;Now I know what to do.</description>
      <pubDate>Thu, 04 Jul 2002 15:33:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/remove-lvm-info/m-p/2756744#M519405</guid>
      <dc:creator>SAM_24</dc:creator>
      <dc:date>2002-07-04T15:33:40Z</dc:date>
    </item>
  </channel>
</rss>

