<?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 vg in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/remove-vg/m-p/3932126#M609526</link>
    <description>Brian,&lt;BR /&gt;&lt;BR /&gt;You also need to use pvcreate command with -f option on each freed disk before to do a vgxtend on another vg.&lt;BR /&gt;&lt;BR /&gt;Roland</description>
    <pubDate>Thu, 25 Jan 2007 04:54:10 GMT</pubDate>
    <dc:creator>Roland Piette</dc:creator>
    <dc:date>2007-01-25T04:54:10Z</dc:date>
    <item>
      <title>remove vg</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/remove-vg/m-p/3932120#M609520</link>
      <description>i have a volume group which i have to remove (vgtemp)(about 180G)and attach those disks to another vg (tsp). what would a clean way to do this. there are no volumes using the vgtemp VG. &lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;&lt;BR /&gt;brian</description>
      <pubDate>Wed, 24 Jan 2007 11:11:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/remove-vg/m-p/3932120#M609520</guid>
      <dc:creator>brian_31</dc:creator>
      <dc:date>2007-01-24T11:11:13Z</dc:date>
    </item>
    <item>
      <title>Re: remove vg</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/remove-vg/m-p/3932121#M609521</link>
      <description>Brian,&lt;BR /&gt;using SAM :&lt;BR /&gt;delete the vg (vgtemp)&lt;BR /&gt;extend vg tsp by adding the now free disks&lt;BR /&gt;&lt;BR /&gt;The warning  that the disks have an existing filessytem can be ignored.&lt;BR /&gt;</description>
      <pubDate>Wed, 24 Jan 2007 11:14:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/remove-vg/m-p/3932121#M609521</guid>
      <dc:creator>Peter Godron</dc:creator>
      <dc:date>2007-01-24T11:14:24Z</dc:date>
    </item>
    <item>
      <title>Re: remove vg</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/remove-vg/m-p/3932122#M609522</link>
      <description>Hi Brian:&lt;BR /&gt;&lt;BR /&gt;# vgchange -an /dev/vgtemp&lt;BR /&gt;# vgexport /dev/vgtemp&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Wed, 24 Jan 2007 11:16:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/remove-vg/m-p/3932122#M609522</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2007-01-24T11:16:05Z</dc:date>
    </item>
    <item>
      <title>Re: remove vg</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/remove-vg/m-p/3932123#M609523</link>
      <description>Two ways:&lt;BR /&gt;&lt;BR /&gt;if you have no need to save any data in this volume group then just remove the volume group.&lt;BR /&gt;first remove any disk devices from the group if there are more than 1:&lt;BR /&gt;vgreduce /dev/vgtemp /dev/dsk/cxtxdx /dev/dsk/cytydy&lt;BR /&gt;Then remove the volume group:&lt;BR /&gt;vgremove /dev/vgmisc&lt;BR /&gt;&lt;BR /&gt;If you wish to keep the structure so you can import with new name or to another server then:&lt;BR /&gt;vgchange -a n /dev/vgtemp&lt;BR /&gt;vgexport -m /tmp/vgmisc.map /dev/vgtemp&lt;BR /&gt;&lt;BR /&gt;you can then use the map file to import with new name or to another server.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 24 Jan 2007 11:16:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/remove-vg/m-p/3932123#M609523</guid>
      <dc:creator>Tim Nelson</dc:creator>
      <dc:date>2007-01-24T11:16:53Z</dc:date>
    </item>
    <item>
      <title>Re: remove vg</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/remove-vg/m-p/3932124#M609524</link>
      <description>&lt;BR /&gt;Brian,&lt;BR /&gt;&lt;BR /&gt;You have a couple of potential issues:&lt;BR /&gt;&lt;BR /&gt;1. the default number of disks in a vg is 16.  If you used this the default when you vcreated vg(tsp), then the additional disks you are adding to the vg will only will only work if the toal number of disks in the vg is 16 or less&lt;BR /&gt;&lt;BR /&gt;2. Hopefully the disk are the same size (or smaller than the disks currently in vg(tsp).  If not, there is the possibility that the vg might not be able to fully utilize the space on the disks, due PE size and max PE's set during vg creation........&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 24 Jan 2007 11:29:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/remove-vg/m-p/3932124#M609524</guid>
      <dc:creator>DCE</dc:creator>
      <dc:date>2007-01-24T11:29:16Z</dc:date>
    </item>
    <item>
      <title>Re: remove vg</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/remove-vg/m-p/3932125#M609525</link>
      <description>ok . i will do this.. brfore removing i will do a vgdisplay -g vgtemp and capture all disks and then add those disks to the existing VG.   thanks&lt;BR /&gt;&lt;BR /&gt;brian</description>
      <pubDate>Wed, 24 Jan 2007 11:45:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/remove-vg/m-p/3932125#M609525</guid>
      <dc:creator>brian_31</dc:creator>
      <dc:date>2007-01-24T11:45:54Z</dc:date>
    </item>
    <item>
      <title>Re: remove vg</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/remove-vg/m-p/3932126#M609526</link>
      <description>Brian,&lt;BR /&gt;&lt;BR /&gt;You also need to use pvcreate command with -f option on each freed disk before to do a vgxtend on another vg.&lt;BR /&gt;&lt;BR /&gt;Roland</description>
      <pubDate>Thu, 25 Jan 2007 04:54:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/remove-vg/m-p/3932126#M609526</guid>
      <dc:creator>Roland Piette</dc:creator>
      <dc:date>2007-01-25T04:54:10Z</dc:date>
    </item>
    <item>
      <title>Re: remove vg</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/remove-vg/m-p/3932127#M609527</link>
      <description>&lt;!--!*#--&gt;The -f switch shouldn't be necessary if you pvremove-d the PVs from the former VG.&lt;BR /&gt;Here's what I usually do when I don't need to care for any data left on the disks&lt;BR /&gt;(let's assume we've got a current backup)&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt;# vgdisplay -v vgXX|awk '/LV Name/{print$NF}'|xargs -n1 lvremove -f     &lt;BR /&gt;Logical volume "/dev/vgXX/lvol1" has been successfully removed.&lt;BR /&gt;Volume Group configuration for /dev/vgXX has been saved in /etc/lvmconf/vgXX.conf&lt;BR /&gt;Logical volume "/dev/vgXX/lvol2" has been successfully removed.&lt;BR /&gt;Volume Group configuration for /dev/vgXX has been saved in /etc/lvmconf/vgXX.conf&lt;BR /&gt;Logical volume "/dev/vgXX/lvol3" has been successfully removed.&lt;BR /&gt;Volume Group configuration for /dev/vgXX has been saved in /etc/lvmconf/vgXX.conf&lt;BR /&gt;Logical volume "/dev/vgXX/lvol4" has been successfully removed.&lt;BR /&gt;Volume Group configuration for /dev/vgXX has been saved in /etc/lvmconf/vgXX.conf&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt;# vgdisplay -v vgXX|awk '/PV Name/{print$NF}'|sed -n 2,\$p|while read pv;do vgreduce vgXX $pv &amp;amp;&amp;amp; pvremove /dev/rdsk/${pv##*/};done&lt;BR /&gt;Volume group "vgXX" has been successfully reduced.&lt;BR /&gt;Volume Group configuration for /dev/vgXX has been saved in /etc/lvmconf/vgXX.conf&lt;BR /&gt;The physical volume associated with "/dev/rdsk/c2t0d0" has been removed.&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt;# vgdisplay -v vgXX|awk '/PV Name/{print$NF}'&lt;BR /&gt;/dev/dsk/c1t0d0&lt;BR /&gt;# vgremove vgXX                              &lt;BR /&gt;Volume group "vgXX" has been successfully removed.&lt;BR /&gt;# pvremove /dev/rdsk/c1t0d0&lt;BR /&gt;The physical volume associated with "/dev/rdsk/c1t0d0" has been removed.&lt;BR /&gt;# rm -rf /dev/vgXX&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Now there should be no doubt about any stale associations of PV memberships thanks to the explicit pvremove.&lt;BR /&gt;Thus I can newly create the used PVs without requiring the -f switch and an uneasy fealing of inadvertent data corruption due to a typo.&lt;BR /&gt; &lt;BR /&gt;# pvcreate /dev/rdsk/c1t0d0&lt;BR /&gt;Physical volume "/dev/rdsk/c1t0d0" has been successfully created.&lt;BR /&gt;# echo $?&lt;BR /&gt;0&lt;BR /&gt; &lt;BR /&gt; &lt;BR /&gt;Admittedly, a bit more circuitous than a mere vgexport...</description>
      <pubDate>Thu, 25 Jan 2007 05:21:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/remove-vg/m-p/3932127#M609527</guid>
      <dc:creator>Ralph Grothe</dc:creator>
      <dc:date>2007-01-25T05:21:35Z</dc:date>
    </item>
  </channel>
</rss>

