<?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 volume group in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/remove-volume-group/m-p/2735882#M642476</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Once a VG is vgremoved the LVM structure and data cannot be recovered on the VG. If you want to permanetly delete a vg use vgremove&lt;BR /&gt;&lt;BR /&gt;A VG cannot vgremoved unless all the lvremoved.&lt;BR /&gt;&lt;BR /&gt;i.e. 1. back the the data&lt;BR /&gt;2.umount - all file systems&lt;BR /&gt;3.lvremove - all the lvs&lt;BR /&gt;4.vgreduce - all the pv's from vg exept the last pv&lt;BR /&gt;5.vgremove &lt;BR /&gt;&lt;BR /&gt;Export is used in the following cases.&lt;BR /&gt;a.Want to move whole vg's pvs to another system without loosing data &amp;amp; LVM structure&lt;BR /&gt;b.Want to rename a VG&lt;BR /&gt;c.Want to change hardware paths of pv's of a VG (example, change SCSI id or Change in controller)&lt;BR /&gt;&lt;BR /&gt;vgexport simply removes the vg directory (and updates lvmtab) from the system leaving the lvm structure/data on the disks.&lt;BR /&gt;&lt;BR /&gt;Procedure&lt;BR /&gt;1. Backup data - Optional (for safer side) &lt;BR /&gt;2. umount all the lv's&lt;BR /&gt;3. vgexport&lt;BR /&gt;&lt;BR /&gt;In the new system or in the same system after moving disks,&lt;BR /&gt;&lt;BR /&gt;4. mkdir /dev/vgxx (xx=vgname)&lt;BR /&gt;5. mknod /dev/vgxx/group c 64 0xyy0000 (yy=hexadecimal vg id within the system)&lt;BR /&gt;6. vgimport /dev/vgxx &lt;PV paths=""&gt;&lt;BR /&gt;7. vgchange -a y /dev/vgxx&lt;BR /&gt;8. fsck all lvs&lt;BR /&gt;9. mount as required&lt;BR /&gt;&lt;BR /&gt;Sorry for being so lengthy.&lt;BR /&gt;&lt;BR /&gt;--TT&lt;/PV&gt;</description>
    <pubDate>Sun, 02 Jun 2002 05:23:31 GMT</pubDate>
    <dc:creator>Thayanidhi</dc:creator>
    <dc:date>2002-06-02T05:23:31Z</dc:date>
    <item>
      <title>remove volume group</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/remove-volume-group/m-p/2735879#M642473</link>
      <description>During remove the volume group,what is the &lt;BR /&gt;difference between vgremove and vgexport?&lt;BR /&gt;</description>
      <pubDate>Sun, 02 Jun 2002 03:03:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/remove-volume-group/m-p/2735879#M642473</guid>
      <dc:creator>coolhaier</dc:creator>
      <dc:date>2002-06-02T03:03:19Z</dc:date>
    </item>
    <item>
      <title>Re: remove volume group</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/remove-volume-group/m-p/2735880#M642474</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;How to remove a volume group&lt;BR /&gt;      Note: the following example is using the volume group vg01 and the&lt;BR /&gt;      logical volume lvhome &lt;BR /&gt;&lt;BR /&gt;      1) Backup all user data&lt;BR /&gt;      2) Find the name of all logical volume in this volume group&lt;BR /&gt;            vgdisplay -v /dev/vg01&lt;BR /&gt;      3) unmount all logical volumes&lt;BR /&gt;            Note: repeat the following command for each logical command&lt;BR /&gt;            umount /dev/vg01/lvhome&lt;BR /&gt;      4) Remove the volume group:&lt;BR /&gt;            vgexport /dev/vg01&lt;BR /&gt;            Note: using vgexport to remove a volume group is easier&lt;BR /&gt;            and faster than using the vgreduce on each physical volume&lt;BR /&gt;            except the last one, followed by a vgremove. The other&lt;BR /&gt;            advantage is that the /dev/vg01 directory is also removed.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Hope this helps&lt;BR /&gt;&lt;BR /&gt;Steve</description>
      <pubDate>Sun, 02 Jun 2002 03:28:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/remove-volume-group/m-p/2735880#M642474</guid>
      <dc:creator>steven Burgess_2</dc:creator>
      <dc:date>2002-06-02T03:28:27Z</dc:date>
    </item>
    <item>
      <title>Re: remove volume group</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/remove-volume-group/m-p/2735881#M642475</link>
      <description>Actually the man pages explains it quite well already but here goes .. in my own words ..&lt;BR /&gt;&lt;BR /&gt;The vgremove command removes the definiton of a VG from your system. Meaning after you run this you no longer can access the the data in that VG. The rules are however .. you must first lvremove all the LVs on the VG and vgreduce all the PV until one is left before you can remove a VG. A vgremove operation does NOT remove the directory of the device files (ie /dev/vgXX).&lt;BR /&gt;&lt;BR /&gt;The vgexport can be used in 2 ways ..&lt;BR /&gt;1- To do a quick "remove" on a VG&lt;BR /&gt;2- In a situation where you want to ..&lt;BR /&gt;a) Physically move disks in a VG to another server while retaining it's LVM structure.&lt;BR /&gt;b) Change physical connection of an existing disks in a VG to another hardware path within the same server.&lt;BR /&gt;c) Rename an existing VG.&lt;BR /&gt;&lt;BR /&gt;If you really wanted to remove a VG and found out that vgremove does not work, a quick fix is to use vgexport..&lt;BR /&gt;# vgexport vgXX&lt;BR /&gt;Doing that will remove the VG from the system BUT all the LVM structure remains intact on the disks and it cleans up /dev/vgXX for you too.&lt;BR /&gt;&lt;BR /&gt;Hope this is good and brief enough explaination.</description>
      <pubDate>Sun, 02 Jun 2002 04:51:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/remove-volume-group/m-p/2735881#M642475</guid>
      <dc:creator>S.K. Chan</dc:creator>
      <dc:date>2002-06-02T04:51:39Z</dc:date>
    </item>
    <item>
      <title>Re: remove volume group</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/remove-volume-group/m-p/2735882#M642476</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Once a VG is vgremoved the LVM structure and data cannot be recovered on the VG. If you want to permanetly delete a vg use vgremove&lt;BR /&gt;&lt;BR /&gt;A VG cannot vgremoved unless all the lvremoved.&lt;BR /&gt;&lt;BR /&gt;i.e. 1. back the the data&lt;BR /&gt;2.umount - all file systems&lt;BR /&gt;3.lvremove - all the lvs&lt;BR /&gt;4.vgreduce - all the pv's from vg exept the last pv&lt;BR /&gt;5.vgremove &lt;BR /&gt;&lt;BR /&gt;Export is used in the following cases.&lt;BR /&gt;a.Want to move whole vg's pvs to another system without loosing data &amp;amp; LVM structure&lt;BR /&gt;b.Want to rename a VG&lt;BR /&gt;c.Want to change hardware paths of pv's of a VG (example, change SCSI id or Change in controller)&lt;BR /&gt;&lt;BR /&gt;vgexport simply removes the vg directory (and updates lvmtab) from the system leaving the lvm structure/data on the disks.&lt;BR /&gt;&lt;BR /&gt;Procedure&lt;BR /&gt;1. Backup data - Optional (for safer side) &lt;BR /&gt;2. umount all the lv's&lt;BR /&gt;3. vgexport&lt;BR /&gt;&lt;BR /&gt;In the new system or in the same system after moving disks,&lt;BR /&gt;&lt;BR /&gt;4. mkdir /dev/vgxx (xx=vgname)&lt;BR /&gt;5. mknod /dev/vgxx/group c 64 0xyy0000 (yy=hexadecimal vg id within the system)&lt;BR /&gt;6. vgimport /dev/vgxx &lt;PV paths=""&gt;&lt;BR /&gt;7. vgchange -a y /dev/vgxx&lt;BR /&gt;8. fsck all lvs&lt;BR /&gt;9. mount as required&lt;BR /&gt;&lt;BR /&gt;Sorry for being so lengthy.&lt;BR /&gt;&lt;BR /&gt;--TT&lt;/PV&gt;</description>
      <pubDate>Sun, 02 Jun 2002 05:23:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/remove-volume-group/m-p/2735882#M642476</guid>
      <dc:creator>Thayanidhi</dc:creator>
      <dc:date>2002-06-02T05:23:31Z</dc:date>
    </item>
    <item>
      <title>Re: remove volume group</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/remove-volume-group/m-p/2735883#M642477</link>
      <description>Hi all:&lt;BR /&gt;&lt;BR /&gt;I agree with chan.&lt;BR /&gt;&lt;BR /&gt;regards</description>
      <pubDate>Mon, 03 Jun 2002 11:20:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/remove-volume-group/m-p/2735883#M642477</guid>
      <dc:creator>Roberto Arias</dc:creator>
      <dc:date>2002-06-03T11:20:50Z</dc:date>
    </item>
  </channel>
</rss>

