<?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: cannot pvremove a disk in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/cannot-pvremove-a-disk/m-p/6291303#M492202</link>
    <description>&lt;P&gt;Torsten&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I googled it and did pvcreate -f. &amp;nbsp;Thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Just wanted to completely get rid of a vg and its associated LUNs.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Tariq&lt;/P&gt;</description>
    <pubDate>Mon, 02 Dec 2013 13:20:02 GMT</pubDate>
    <dc:creator>EU-Admins-UNIX</dc:creator>
    <dc:date>2013-12-02T13:20:02Z</dc:date>
    <item>
      <title>cannot pvremove a disk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cannot-pvremove-a-disk/m-p/6291145#M492200</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I cannot pvremove a disk on HP-UX 11.31&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A target="_blank" href="mailto:root@hathor"&gt;root@******&lt;/A&gt; at / =&amp;gt;pvremove /dev/rdisk/disk30&lt;BR /&gt;pvremove: The physical volume "/dev/rdisk/disk30" belongs to an exported volume group.&lt;BR /&gt;pvremove: Couldn't remove physical volume "/dev/rdisk/disk30".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I exported the&amp;nbsp;vgX02 earlier.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A target="_blank" href="mailto:root@hathor"&gt;root@&lt;/A&gt;****** at / =&amp;gt;vgdisplay -v vgX02&lt;BR /&gt;vgdisplay: Volume group "/dev/vgX02" does not exist in the "/etc/lvmtab" file.&lt;BR /&gt;vgdisplay: Volume group "/dev/vgX02" does not exist in the "/etc/lvmtab_p" file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Tariq&lt;/P&gt;</description>
      <pubDate>Mon, 02 Dec 2013 11:06:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cannot-pvremove-a-disk/m-p/6291145#M492200</guid>
      <dc:creator>EU-Admins-UNIX</dc:creator>
      <dc:date>2013-12-02T11:06:44Z</dc:date>
    </item>
    <item>
      <title>Re: cannot pvremove a disk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cannot-pvremove-a-disk/m-p/6291175#M492201</link>
      <description>&lt;P&gt;From the man page:&lt;BR /&gt;&lt;BR /&gt;The operation is denied if pv_path is assigned to a volume group. The&lt;BR /&gt;pvremove command only clears the LVM data structure on a disk if the&lt;BR /&gt;disk does not belong to a volume group. This avoids accidentally&lt;BR /&gt;removing a valid physical volume under a volume group. If the&lt;BR /&gt;physical volume to be removed belongs to a volume group, use the&lt;BR /&gt;vgremove command to first remove the volume group associated with the&lt;BR /&gt;physical volume.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;The disk STILL belongs to an (exported) VG.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What do you want to do?&lt;/P&gt;&lt;P&gt;Creating another new VG?&lt;/P&gt;&lt;P&gt;Just Force pvcreate!&lt;/P&gt;</description>
      <pubDate>Mon, 02 Dec 2013 11:29:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cannot-pvremove-a-disk/m-p/6291175#M492201</guid>
      <dc:creator>Torsten.</dc:creator>
      <dc:date>2013-12-02T11:29:59Z</dc:date>
    </item>
    <item>
      <title>Re: cannot pvremove a disk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cannot-pvremove-a-disk/m-p/6291303#M492202</link>
      <description>&lt;P&gt;Torsten&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I googled it and did pvcreate -f. &amp;nbsp;Thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Just wanted to completely get rid of a vg and its associated LUNs.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Tariq&lt;/P&gt;</description>
      <pubDate>Mon, 02 Dec 2013 13:20:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cannot-pvremove-a-disk/m-p/6291303#M492202</guid>
      <dc:creator>EU-Admins-UNIX</dc:creator>
      <dc:date>2013-12-02T13:20:02Z</dc:date>
    </item>
    <item>
      <title>Re: cannot pvremove a disk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cannot-pvremove-a-disk/m-p/6291819#M492203</link>
      <description>&lt;P&gt;pvremove is a strange command. It will remove the LVM information but only if there is no LVM information indicating that it has not been assigned to a VG at some time in the past. There is no way for pvremove to tell if the PV is part of an exported VG (not currently in lvmtab or activated). The way to clear LVM information is to use pvcreate -f. Naturally, you must be very careful with pvcreate to specify the right PV. Once you use pvcreate, you can then use pvremove. The only point to using pvremove is that pvcreate makes the disk ready to be added as an LVM disk to a VG (a PVID is written in the LVMREC area), whereas pvremove writes a bunch of zeros over the LVMREC area.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 02 Dec 2013 18:56:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cannot-pvremove-a-disk/m-p/6291819#M492203</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2013-12-02T18:56:36Z</dc:date>
    </item>
  </channel>
</rss>

