<?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: Removed devices from LVs and cannot vgexport dsks in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/removed-devices-from-lvs-and-cannot-vgexport-dsks/m-p/2453548#M657295</link>
    <description>Hi Philip,&lt;BR /&gt;&lt;BR /&gt;If it's just the block and character device files that are missing from /dev/vg00 then you can just recreate them with mknod.&lt;BR /&gt;&lt;BR /&gt;What I would do is :-&lt;BR /&gt;mknod lvol? c 64 0x??0000&lt;BR /&gt;mknod rlvol b 64 0x??0000&lt;BR /&gt;for some of the values of ?? that you haven't got already. Check with ll /dev/vg00.&lt;BR /&gt;&lt;BR /&gt;Once you have created these, vgdisplay and pvdisplay will show up the 'hits' as vaalid volumes and you can simply lvremove -f them. Repeat until you have lvremoved all the volumes that you don't want and then simply rm the 'misses'.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;John&lt;BR /&gt;</description>
    <pubDate>Fri, 13 Oct 2000 21:09:17 GMT</pubDate>
    <dc:creator>John Palmer</dc:creator>
    <dc:date>2000-10-13T21:09:17Z</dc:date>
    <item>
      <title>Removed devices from LVs and cannot vgexport dsks</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/removed-devices-from-lvs-and-cannot-vgexport-dsks/m-p/2453545#M657292</link>
      <description>One of our large disk arrays was reconfigured and the character/block device files have been removed from UX-11.&lt;BR /&gt;&lt;BR /&gt;The logical volumes that were on the devices are no longer required but they were part of vg00. Most LVM commands are now spitting out spurious warnings and sam is no longer co-operating - I guess sam's parser doesn't handle all the messages it could receive if one does the unexpected.&lt;BR /&gt;&lt;BR /&gt;If I vgexport the devices I get a "/dev/dsk/cXtYdZ file not found message" and a vgdisplay still returns many warnings. A vgscan has been performed and that has moved some alternate links BUT it still did not reduce vg00 to the devices that are still there.&lt;BR /&gt;&lt;BR /&gt;What's the quickest way to get the unused and now unneeded devices out of vg00 and return the system to a stable state.&lt;BR /&gt;&lt;BR /&gt;Again, many many thanks in advance - reponses here are fast and well appreciated.</description>
      <pubDate>Fri, 13 Oct 2000 20:44:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/removed-devices-from-lvs-and-cannot-vgexport-dsks/m-p/2453545#M657292</guid>
      <dc:creator>Philip Kernohan</dc:creator>
      <dc:date>2000-10-13T20:44:47Z</dc:date>
    </item>
    <item>
      <title>Re: Removed devices from LVs and cannot vgexport dsks</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/removed-devices-from-lvs-and-cannot-vgexport-dsks/m-p/2453546#M657293</link>
      <description>Try vgreduce -f vg00.</description>
      <pubDate>Fri, 13 Oct 2000 20:51:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/removed-devices-from-lvs-and-cannot-vgexport-dsks/m-p/2453546#M657293</guid>
      <dc:creator>Alan Riggs</dc:creator>
      <dc:date>2000-10-13T20:51:00Z</dc:date>
    </item>
    <item>
      <title>Re: Removed devices from LVs and cannot vgexport dsks</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/removed-devices-from-lvs-and-cannot-vgexport-dsks/m-p/2453547#M657294</link>
      <description>Alan,&lt;BR /&gt;&lt;BR /&gt;thanks for the quick response.&lt;BR /&gt;&lt;BR /&gt;vgreduce -f /dev/vg00 returns the following:&lt;BR /&gt;&lt;BR /&gt;vgreduce: couldn't query physical volume cXtYdZ. The specified path does not correspond to physical volume attached to this volume group.&lt;BR /&gt;&lt;BR /&gt;Still searching ...</description>
      <pubDate>Fri, 13 Oct 2000 21:05:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/removed-devices-from-lvs-and-cannot-vgexport-dsks/m-p/2453547#M657294</guid>
      <dc:creator>Philip Kernohan</dc:creator>
      <dc:date>2000-10-13T21:05:50Z</dc:date>
    </item>
    <item>
      <title>Re: Removed devices from LVs and cannot vgexport dsks</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/removed-devices-from-lvs-and-cannot-vgexport-dsks/m-p/2453548#M657295</link>
      <description>Hi Philip,&lt;BR /&gt;&lt;BR /&gt;If it's just the block and character device files that are missing from /dev/vg00 then you can just recreate them with mknod.&lt;BR /&gt;&lt;BR /&gt;What I would do is :-&lt;BR /&gt;mknod lvol? c 64 0x??0000&lt;BR /&gt;mknod rlvol b 64 0x??0000&lt;BR /&gt;for some of the values of ?? that you haven't got already. Check with ll /dev/vg00.&lt;BR /&gt;&lt;BR /&gt;Once you have created these, vgdisplay and pvdisplay will show up the 'hits' as vaalid volumes and you can simply lvremove -f them. Repeat until you have lvremoved all the volumes that you don't want and then simply rm the 'misses'.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;John&lt;BR /&gt;</description>
      <pubDate>Fri, 13 Oct 2000 21:09:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/removed-devices-from-lvs-and-cannot-vgexport-dsks/m-p/2453548#M657295</guid>
      <dc:creator>John Palmer</dc:creator>
      <dc:date>2000-10-13T21:09:17Z</dc:date>
    </item>
    <item>
      <title>Re: Removed devices from LVs and cannot vgexport dsks</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/removed-devices-from-lvs-and-cannot-vgexport-dsks/m-p/2453549#M657296</link>
      <description>DO what john suggested and if still a problem it could be the /etc/lvmtab is out of sync , so try moving it out the way and then run vgscan to recreate it , and then try again.&lt;BR /&gt;&lt;BR /&gt;laters</description>
      <pubDate>Sat, 14 Oct 2000 13:13:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/removed-devices-from-lvs-and-cannot-vgexport-dsks/m-p/2453549#M657296</guid>
      <dc:creator>Devbinder Singh Marway</dc:creator>
      <dc:date>2000-10-14T13:13:11Z</dc:date>
    </item>
    <item>
      <title>Re: Removed devices from LVs and cannot vgexport dsks</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/removed-devices-from-lvs-and-cannot-vgexport-dsks/m-p/2453550#M657297</link>
      <description>Hi some notes I made when I had a GHOST disk once&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;LVM Ghost disks&lt;BR /&gt;Removing a disk before it is removed logically&lt;BR /&gt;&lt;BR /&gt;1) vgdisplay -v&lt;BR /&gt;If this shows the error&lt;BR /&gt;"Couldn;t query physical volume&lt;BR /&gt;the specified path does not correspond to physical volume attached to volume group"&lt;BR /&gt;&lt;BR /&gt;This is a GHOST disk&lt;BR /&gt;&lt;BR /&gt;2) hpux -lm (;0) /stand/vmunix&lt;BR /&gt;&lt;BR /&gt;Activate vol group with GHOST, use quorum switch if needed&lt;BR /&gt;3) vgchange -a y -q n /dev/vgXX&lt;BR /&gt;&lt;BR /&gt;Gather info on Vol grp and Lvol's, look which are on GHOst disk&lt;BR /&gt;Get minor No of vgXX&lt;BR /&gt;4) vgdisplay -v /dev/vgXX&lt;BR /&gt;    lvdislpay -v /dev/vgXX/lvol*&lt;BR /&gt;    mount /usr&lt;BR /&gt;   ll /dev/vgXX&lt;BR /&gt;   umount /usr&lt;BR /&gt;&lt;BR /&gt;Remove lvols on GHOST disk&lt;BR /&gt;5) lvremove /dev/vgXX/lvolX&lt;BR /&gt;&lt;BR /&gt;Rename Vol grp info&lt;BR /&gt;6) mv /etc/lvmtab /etc/lvmtab&lt;BR /&gt;&lt;BR /&gt;7) vgscan -v&lt;BR /&gt;&lt;BR /&gt;8) vgchange -a n /dev/vgXX&lt;BR /&gt;&lt;BR /&gt;Create a lvol map&lt;BR /&gt;9) vgexport -m vgXX_map /dev/vgXX&lt;BR /&gt;&lt;BR /&gt;Recreate Vol grp dir files&lt;BR /&gt;10) mkdir /dev/vgXX&lt;BR /&gt;      mknod /dev/vgXX/group c 64 0x0X0000&lt;BR /&gt;&lt;BR /&gt;Use all disks shown in lvmtab(IN ORDER)&lt;BR /&gt;11) vgimport -m vgXX_map /dev/vgXX /dev/dsk/cXtXd0 dev/dsk/cXtXd0&lt;BR /&gt;      vgchange -a y /dev/vgXX&lt;BR /&gt;      vgreduce -f /dev/vgXX  (this should eliminate GHOST)&lt;BR /&gt;      mv /etc/lvmtab /etc/lvmtab.bak&lt;BR /&gt;     vgscan -v&lt;BR /&gt;     vgcfgbackup /dev/vgXX&lt;BR /&gt;     vgdisplay -v vgXX&lt;BR /&gt;&lt;BR /&gt;Maybe this will help&lt;BR /&gt;&lt;BR /&gt;Steve</description>
      <pubDate>Sun, 15 Oct 2000 18:47:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/removed-devices-from-lvs-and-cannot-vgexport-dsks/m-p/2453550#M657297</guid>
      <dc:creator>Steve Massey_1</dc:creator>
      <dc:date>2000-10-15T18:47:27Z</dc:date>
    </item>
    <item>
      <title>Re: Removed devices from LVs and cannot vgexport dsks</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/removed-devices-from-lvs-and-cannot-vgexport-dsks/m-p/2453551#M657298</link>
      <description>Thank you all for responding.&lt;BR /&gt;&lt;BR /&gt;The problem stemmed from removing disks that were in a volume group and further to that, actually using rmsf to remove the device files. Even after recreating dummy device files we could not get them out of the vg00.&lt;BR /&gt;&lt;BR /&gt;Steve, it sounds like you're reply came the closest but we did a recovery at the weekend and so I don't have the opportunity to try it out.&lt;BR /&gt;&lt;BR /&gt;Here's what we did, in case anyone is interested:&lt;BR /&gt;&lt;BR /&gt;Broke all mirrors on LVs where possible.&lt;BR /&gt;&lt;BR /&gt;Rebooted and came up in single user mode.&lt;BR /&gt;&lt;BR /&gt;Mounted the LVs that were not affected by the removal of the disks - i.e. those without stale extents.&lt;BR /&gt;&lt;BR /&gt;Removed the LVs that were corrupted using lvremove.&lt;BR /&gt;&lt;BR /&gt;Performed a vgreduce -f vg00 to remove all unused disks&lt;BR /&gt;&lt;BR /&gt;Recreated LVs, FSs using lvcreate and newfs.&lt;BR /&gt;&lt;BR /&gt;Restored data from fbackup/ignite tape.&lt;BR /&gt;&lt;BR /&gt;Again, many thanks for all the input.</description>
      <pubDate>Mon, 16 Oct 2000 14:26:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/removed-devices-from-lvs-and-cannot-vgexport-dsks/m-p/2453551#M657298</guid>
      <dc:creator>Philip Kernohan</dc:creator>
      <dc:date>2000-10-16T14:26:19Z</dc:date>
    </item>
  </channel>
</rss>

