<?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: mistake in Disk Enclosures</title>
    <link>https://community.hpe.com/t5/disk-enclosures/mistake/m-p/2997832#M8739</link>
    <description>a)  vgcfgrestore -n /dev/vg## /dev/rskk/c#t#d#&lt;BR /&gt;vgchange -a y /dev/vg##&lt;BR /&gt;&lt;BR /&gt;b) Verify disks&lt;BR /&gt;&lt;BR /&gt;strings /etc/lvmtab&lt;BR /&gt;&lt;BR /&gt;-and-&lt;BR /&gt;&lt;BR /&gt;vgcfgrestore -f /etc/lvmconf/vg##.conf -l&lt;BR /&gt;&lt;BR /&gt;c)  Ghost disk procedure&lt;BR /&gt;&lt;BR /&gt;Is 'quorum not present' when you:&lt;BR /&gt;&lt;BR /&gt;vgchange -a y /dev/vg##&lt;BR /&gt;&lt;BR /&gt;..then..&lt;BR /&gt;&lt;BR /&gt;vgchange -a y -q n /dev/vg##&lt;BR /&gt;&lt;BR /&gt;vgreduce -f /dev/vg##  (* force out missing PV *)&lt;BR /&gt;&lt;BR /&gt;d) Recovery of data when no vg but pv.  Use -s option in vgexport and vgimport.  The -s option will cause all pv's to report in.&lt;BR /&gt;&lt;BR /&gt;vgexport -p -v -s -m /tmp/vg##_mapfile /dev/vg##&lt;BR /&gt;(* -p preview *)&lt;BR /&gt;&lt;BR /&gt;mkdir /dev/vg##&lt;BR /&gt;mknod /dev/vg##/group c 64 0x0#0000&lt;BR /&gt;vgimport -s -p -m /tmp/vg##_mapfile /dev/vg##&lt;BR /&gt;(* -p preview *)&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Mon, 16 Jun 2003 12:24:57 GMT</pubDate>
    <dc:creator>Michael Steele_2</dc:creator>
    <dc:date>2003-06-16T12:24:57Z</dc:date>
    <item>
      <title>mistake</title>
      <link>https://community.hpe.com/t5/disk-enclosures/mistake/m-p/2997829#M8736</link>
      <description>Hi,&lt;BR /&gt;  I destroyed logical volume informations on an array.  the array was seen by 2 machines. one pv was used by one machine so it was "unused" on the other. I configured the pv as a lv on the other machines.  I have data backup but I cant go back to my previous settings.  Any informations on how I could do this ?    &lt;BR /&gt;&lt;BR /&gt;The volume group is deactivated.&lt;BR /&gt;&lt;BR /&gt;bash-2.03# vgremove vgapps /dev/dsk/c3t1d0&lt;BR /&gt;vgremove: Volume group not activated.&lt;BR /&gt;&lt;BR /&gt;bash-2.03# pvremove /dev/rdsk/c3t1d0&lt;BR /&gt;pvremove: The physical volume "/dev/rdsk/c3t1d0" belongs to volume group "/dev/vgapps".&lt;BR /&gt;pvremove: Couldn't remove physical volume "/dev/rdsk/c3t1d0".&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 16 Jun 2003 01:38:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/disk-enclosures/mistake/m-p/2997829#M8736</guid>
      <dc:creator>Olivier Drouin</dc:creator>
      <dc:date>2003-06-16T01:38:18Z</dc:date>
    </item>
    <item>
      <title>Re: mistake</title>
      <link>https://community.hpe.com/t5/disk-enclosures/mistake/m-p/2997830#M8737</link>
      <description>To clean this up properly you need to remove the volume group and re-create it. You can then after re-creating it, restore your data from your backup.&lt;BR /&gt;&lt;BR /&gt;# vgexport /dev/vgapps&lt;BR /&gt;&lt;BR /&gt;You can't use 'pvremove' if the volume belongs to a volume group. The man pages for 'pvremove' states this.&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Michael&lt;BR /&gt;"When I have trouble spelling, it's called fat finger syndrome" &lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 16 Jun 2003 02:57:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/disk-enclosures/mistake/m-p/2997830#M8737</guid>
      <dc:creator>Michael Tully</dc:creator>
      <dc:date>2003-06-16T02:57:18Z</dc:date>
    </item>
    <item>
      <title>Re: mistake</title>
      <link>https://community.hpe.com/t5/disk-enclosures/mistake/m-p/2997831#M8738</link>
      <description>Thanks,&lt;BR /&gt;I still have troubles when trying to import the volume group since it is not activated. I dont seem to be able to do anything with it.&lt;BR /&gt;&lt;BR /&gt;bash-2.03# vgimport -m vgapps.map -p -v vgapps&lt;BR /&gt;Beginning the import process on Volume Group "vgapps".&lt;BR /&gt;vgimport: Volume group "/dev/vgapps" already exists in the "/etc/lvmtab" file.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;bash-2.03# vgremove /dev/vgapps&lt;BR /&gt;vgremove: Volume group not activated.&lt;BR /&gt;&lt;BR /&gt;and if I try to activate it...the lost logical volumes info is the trouble.&lt;BR /&gt;&lt;BR /&gt;bash-2.03# vgchange -a y /dev/vgapps&lt;BR /&gt;vgchange: Warning: Couldn't attach to the volume group physical volume "/dev/dsk/c3t1d0":&lt;BR /&gt;Cross-device link&lt;BR /&gt;vgchange: Warning: Couldn't attach to the volume group physical volume "/dev/dsk/c5t0d0":&lt;BR /&gt;Cross-device link&lt;BR /&gt;vgchange: Warning: couldn't query physical volume "/dev/dsk/c3t1d0":&lt;BR /&gt;The specified path does not correspond to physical volume attached to&lt;BR /&gt;this volume group&lt;BR /&gt;vgchange: Warning: couldn't query physical volume "/dev/dsk/c5t0d0":&lt;BR /&gt;The specified path does not correspond to physical volume attached to&lt;BR /&gt;this volume group&lt;BR /&gt;vgchange: Warning: couldn't query all of the physical volumes.&lt;BR /&gt;vgchange: Couldn't activate volume group "/dev/vgapps":&lt;BR /&gt;Quorum not present, or some physical volume(s) are missing.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Olivier.&lt;BR /&gt;</description>
      <pubDate>Mon, 16 Jun 2003 10:44:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/disk-enclosures/mistake/m-p/2997831#M8738</guid>
      <dc:creator>Olivier Drouin</dc:creator>
      <dc:date>2003-06-16T10:44:47Z</dc:date>
    </item>
    <item>
      <title>Re: mistake</title>
      <link>https://community.hpe.com/t5/disk-enclosures/mistake/m-p/2997832#M8739</link>
      <description>a)  vgcfgrestore -n /dev/vg## /dev/rskk/c#t#d#&lt;BR /&gt;vgchange -a y /dev/vg##&lt;BR /&gt;&lt;BR /&gt;b) Verify disks&lt;BR /&gt;&lt;BR /&gt;strings /etc/lvmtab&lt;BR /&gt;&lt;BR /&gt;-and-&lt;BR /&gt;&lt;BR /&gt;vgcfgrestore -f /etc/lvmconf/vg##.conf -l&lt;BR /&gt;&lt;BR /&gt;c)  Ghost disk procedure&lt;BR /&gt;&lt;BR /&gt;Is 'quorum not present' when you:&lt;BR /&gt;&lt;BR /&gt;vgchange -a y /dev/vg##&lt;BR /&gt;&lt;BR /&gt;..then..&lt;BR /&gt;&lt;BR /&gt;vgchange -a y -q n /dev/vg##&lt;BR /&gt;&lt;BR /&gt;vgreduce -f /dev/vg##  (* force out missing PV *)&lt;BR /&gt;&lt;BR /&gt;d) Recovery of data when no vg but pv.  Use -s option in vgexport and vgimport.  The -s option will cause all pv's to report in.&lt;BR /&gt;&lt;BR /&gt;vgexport -p -v -s -m /tmp/vg##_mapfile /dev/vg##&lt;BR /&gt;(* -p preview *)&lt;BR /&gt;&lt;BR /&gt;mkdir /dev/vg##&lt;BR /&gt;mknod /dev/vg##/group c 64 0x0#0000&lt;BR /&gt;vgimport -s -p -m /tmp/vg##_mapfile /dev/vg##&lt;BR /&gt;(* -p preview *)&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 16 Jun 2003 12:24:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/disk-enclosures/mistake/m-p/2997832#M8739</guid>
      <dc:creator>Michael Steele_2</dc:creator>
      <dc:date>2003-06-16T12:24:57Z</dc:date>
    </item>
    <item>
      <title>Re: mistake</title>
      <link>https://community.hpe.com/t5/disk-enclosures/mistake/m-p/2997833#M8740</link>
      <description>Thanks you guys. &lt;BR /&gt;&lt;BR /&gt;I was able to recover the data even if a fs was created over. &lt;BR /&gt;The procedure is a bit different than michael ( I recover directly from the pv).&lt;BR /&gt;&lt;BR /&gt; # verify if configuration still there&lt;BR /&gt; $ vgcfgrestore -n vgapps -l&lt;BR /&gt; $ strings /etc/lvmtab&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt; # restore configuration&lt;BR /&gt; $ vgcfgrestore -n vgapps /dev/rdsk/c3t1d0     &lt;BR /&gt; &lt;BR /&gt; # re-active volume group&lt;BR /&gt; $ vgchange -a y vgapps              &lt;BR /&gt; &lt;BR /&gt; # check if corrent&lt;BR /&gt; $ vgdisplay -v vgapps          &lt;BR /&gt;&lt;BR /&gt; #recreate /etc/mnttab&lt;BR /&gt; $ rm mnttab       &lt;BR /&gt; $ mount -v    &lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt; #remount everything that was in the lv&lt;BR /&gt;&lt;BR /&gt; #fsck the affected LVs&lt;BR /&gt;  fsck  -F hfs /dev/vgapps/lvol&lt;X&gt;&lt;BR /&gt;  fsck -F vxfs /dev/vg&lt;X&gt;/lvolo&lt;X&gt;&lt;BR /&gt;  ...&lt;BR /&gt;&lt;BR /&gt;&lt;/X&gt;&lt;/X&gt;&lt;/X&gt;</description>
      <pubDate>Mon, 16 Jun 2003 14:16:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/disk-enclosures/mistake/m-p/2997833#M8740</guid>
      <dc:creator>Olivier Drouin</dc:creator>
      <dc:date>2003-06-16T14:16:31Z</dc:date>
    </item>
  </channel>
</rss>

