<?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: running vgscan with system up? in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/running-vgscan-with-system-up/m-p/5242724#M550877</link>
    <description>Hi Scotty:&lt;BR /&gt;&lt;BR /&gt;&amp;gt; I need to run vgscan to recreate /etc/lvmtab to clear up the old 'duplicate minor number' error when trying to create a new Volume group &lt;BR /&gt;&lt;BR /&gt;You need to 'vgexport' a volume group to remove it from the '/etc/lvmtab' and remove the device files in '/dev'.&lt;BR /&gt;&lt;BR /&gt;If, for some reason, there is no volume group to export, but the device files with the minor number you want remain orphaned, simply remove those device files.&lt;BR /&gt;&lt;BR /&gt;Posting the *actual* messages from:&lt;BR /&gt;&lt;BR /&gt;# vgscan -p -v&lt;BR /&gt;&lt;BR /&gt;...would be useful to see as would:&lt;BR /&gt;&lt;BR /&gt;# ls -l /dev/vg*&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...&lt;BR /&gt;</description>
    <pubDate>Mon, 07 Jun 2010 19:19:25 GMT</pubDate>
    <dc:creator>James R. Ferguson</dc:creator>
    <dc:date>2010-06-07T19:19:25Z</dc:date>
    <item>
      <title>running vgscan with system up?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/running-vgscan-with-system-up/m-p/5242723#M550876</link>
      <description>Hi &lt;BR /&gt;&lt;BR /&gt;I need to run vgscan to recreate /etc/lvmtab to clear up the old 'duplicate minor number' error when trying to create a new Volume group using SAM.&lt;BR /&gt;&lt;BR /&gt;I've run it using the -p option to preview any problems, and yes, it does say that the new minor number will conflict with that assigned to an old, deleted volume group.&lt;BR /&gt;&lt;BR /&gt;Do I have to run vgscan with the system in single user mode, or can it be run in multi-user mode? I will be backing up lvmtab - I just need to know if vgscan needs to be run in single user mode.&lt;BR /&gt;&lt;BR /&gt;Any help appreciated.&lt;BR /&gt;&lt;BR /&gt;Scotty&lt;BR /&gt;&lt;BR /&gt;(HPUX 11.11)</description>
      <pubDate>Mon, 07 Jun 2010 18:48:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/running-vgscan-with-system-up/m-p/5242723#M550876</guid>
      <dc:creator>Steve Howie</dc:creator>
      <dc:date>2010-06-07T18:48:46Z</dc:date>
    </item>
    <item>
      <title>Re: running vgscan with system up?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/running-vgscan-with-system-up/m-p/5242724#M550877</link>
      <description>Hi Scotty:&lt;BR /&gt;&lt;BR /&gt;&amp;gt; I need to run vgscan to recreate /etc/lvmtab to clear up the old 'duplicate minor number' error when trying to create a new Volume group &lt;BR /&gt;&lt;BR /&gt;You need to 'vgexport' a volume group to remove it from the '/etc/lvmtab' and remove the device files in '/dev'.&lt;BR /&gt;&lt;BR /&gt;If, for some reason, there is no volume group to export, but the device files with the minor number you want remain orphaned, simply remove those device files.&lt;BR /&gt;&lt;BR /&gt;Posting the *actual* messages from:&lt;BR /&gt;&lt;BR /&gt;# vgscan -p -v&lt;BR /&gt;&lt;BR /&gt;...would be useful to see as would:&lt;BR /&gt;&lt;BR /&gt;# ls -l /dev/vg*&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...&lt;BR /&gt;</description>
      <pubDate>Mon, 07 Jun 2010 19:19:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/running-vgscan-with-system-up/m-p/5242724#M550877</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2010-06-07T19:19:25Z</dc:date>
    </item>
    <item>
      <title>Re: running vgscan with system up?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/running-vgscan-with-system-up/m-p/5242725#M550878</link>
      <description>I did a vgscan -v on an overnight maintenance a few years ago while the system was relatively quiet.  It was on an 11.11 system and I did not have to go into single user mode. I followed The fix listed in certified document ULVMKBRC00008020. &lt;BR /&gt;To resolve the errors:&lt;BR /&gt;&lt;BR /&gt;1. Check to see if the /dev/slvmvg file exists:&lt;BR /&gt;&lt;BR /&gt;# ll /dev/slvmvg&lt;BR /&gt;&lt;BR /&gt;Note: If the file "does exist", then perform Steps&lt;BR /&gt;A, B, C, D, and E.&lt;BR /&gt;&lt;BR /&gt;If the file "does not exist", perform Steps B, C, D,&lt;BR /&gt;and E. (do not perform Step A).&lt;BR /&gt;&lt;BR /&gt;2. Perform the following commands:&lt;BR /&gt;&lt;BR /&gt;A. # mv /dev/slvmvg /tmp&lt;BR /&gt;&lt;BR /&gt;B. # mv /etc/lvmtab /etc/lvmtab.currentdate&lt;BR /&gt;&lt;BR /&gt;C. # vgscan -v &lt;BR /&gt;&lt;BR /&gt;D. # strings /etc/lvmtab&lt;BR /&gt;I did not do the vgchange -a y vg00 step.&lt;BR /&gt;Note: This command verifies that everything is correct.&lt;BR /&gt;&lt;BR /&gt;E. # vgchange -a y /dev/vg00&lt;BR /&gt;&lt;BR /&gt;F. # vgdisplay -v /dev/vg00 &lt;BR /&gt;</description>
      <pubDate>Mon, 07 Jun 2010 19:25:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/running-vgscan-with-system-up/m-p/5242725#M550878</guid>
      <dc:creator>S. Ney</dc:creator>
      <dc:date>2010-06-07T19:25:46Z</dc:date>
    </item>
    <item>
      <title>Re: running vgscan with system up?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/running-vgscan-with-system-up/m-p/5242726#M550879</link>
      <description>Hi James&lt;BR /&gt;&lt;BR /&gt;I've attached the output from vgscan -v -p&lt;BR /&gt;&lt;BR /&gt;It looks like an old volume group /dev/vx03 is the one with the minor number which conflicts with any new attempts to create a VG. We only have /dev/vx01, /dev/vx02 and /dev/vx06 in use at the moment. /dev/netapp was the newest attempt.&lt;BR /&gt;&lt;BR /&gt;Here is the device file listing:&lt;BR /&gt;&lt;BR /&gt;# ll /dev/vx*/group&lt;BR /&gt;crw-r--r--   1 root       sys         64 0x000000 Jun 11  2004 /dev/vx01/group&lt;BR /&gt;cr--r--r--   1 root       sys         64 0x010000 Apr 21  2008 /dev/vx02/group&lt;BR /&gt;crw-r--r--   1 root       sys         64 0x020000 Apr 21  2008 /dev/vx03/group&lt;BR /&gt;crw-r--r--   1 root       sys         64 0x030000 Apr 21  2008 /dev/vx04/group&lt;BR /&gt;crw-r--r--   1 root       sys         64 0x040000 Apr 21  2008 /dev/vx05/group&lt;BR /&gt;cr--r--r--   1 root       sys         64 0x050000 Jun 11  2004 /dev/vx06/group&lt;BR /&gt;cr--r--r--   1 root       sys         64 0x020000 Jun  7 14:46 /dev/vx07/group&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;So I really need to toss vx03, vx04, vx05 and vx07 .... vx03 is the culprit though&lt;BR /&gt;&lt;BR /&gt;thanks, Steve</description>
      <pubDate>Mon, 07 Jun 2010 19:34:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/running-vgscan-with-system-up/m-p/5242726#M550879</guid>
      <dc:creator>Steve Howie</dc:creator>
      <dc:date>2010-06-07T19:34:36Z</dc:date>
    </item>
    <item>
      <title>Re: running vgscan with system up?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/running-vgscan-with-system-up/m-p/5242727#M550880</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Yes, you need to toss vx03, vx04, vx05 and vx07 using vgchange -a n / vgexport commands. You may toss up /dev/netapp and recreate it if needed with different minor number.&lt;BR /&gt;&lt;BR /&gt;If you are using Sept 2008 update of 11.31 or onwards, then you don't have to manually create the volume group special files (using mkdir/mknod), but vgcreate command will take care of creating the required device special files for you. &lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Raghu</description>
      <pubDate>Tue, 08 Jun 2010 03:05:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/running-vgscan-with-system-up/m-p/5242727#M550880</guid>
      <dc:creator>raghu_14</dc:creator>
      <dc:date>2010-06-08T03:05:40Z</dc:date>
    </item>
    <item>
      <title>Re: running vgscan with system up?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/running-vgscan-with-system-up/m-p/5242728#M550881</link>
      <description>Hi Raghu&lt;BR /&gt;&lt;BR /&gt;vgscan made no difference, since the existing active volume groups are the only entries in /etc/lvmtab.&lt;BR /&gt;&lt;BR /&gt;I tried vgexport but the command says that it can't find the volume group in the /etc/lvmtab. I only have entries for vx01, vx02 and vx06  ( Three active volume groups). SAM tells me there are no deactivated volume groups in the system. I'm cleaning up a mess that was left from a couple years ago.&lt;BR /&gt;&lt;BR /&gt;The HP tech working on this asked me to try vgexport to removed the device files - if that fails, remove them manually.&lt;BR /&gt;&lt;BR /&gt;So would this be all thats needed for manual removal of the stale device file entries for volume group vx03 ?&lt;BR /&gt;&lt;BR /&gt;rm -fR /dev/vx03/*&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;&lt;BR /&gt;Scotty</description>
      <pubDate>Wed, 09 Jun 2010 12:56:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/running-vgscan-with-system-up/m-p/5242728#M550881</guid>
      <dc:creator>Steve Howie</dc:creator>
      <dc:date>2010-06-09T12:56:06Z</dc:date>
    </item>
    <item>
      <title>Re: running vgscan with system up?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/running-vgscan-with-system-up/m-p/5242729#M550882</link>
      <description>Hi (again) Scotty:&lt;BR /&gt;&lt;BR /&gt;&amp;gt; So would this be all thats needed for manual removal of the stale device file entries for volume group vx03 ?&lt;BR /&gt;rm -fR /dev/vx03/*&lt;BR /&gt;&lt;BR /&gt;Yes:&lt;BR /&gt;&lt;BR /&gt;# rm -rf /dev/vx03&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Wed, 09 Jun 2010 15:11:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/running-vgscan-with-system-up/m-p/5242729#M550882</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2010-06-09T15:11:07Z</dc:date>
    </item>
    <item>
      <title>Re: running vgscan with system up?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/running-vgscan-with-system-up/m-p/5242730#M550883</link>
      <description>Hi once again James&lt;BR /&gt;&lt;BR /&gt;Never had a chance to try rm -fR, but the HP tech working on the case told me you should do a &lt;BR /&gt;&lt;BR /&gt;rmsf -a /dev/vx03/* &lt;BR /&gt;&lt;BR /&gt;to get all the special files under vx03 - if you omit the '*' at the end, it will sqwak about vx03 not being a special file&lt;BR /&gt;&lt;BR /&gt;Then follow with &lt;BR /&gt;&lt;BR /&gt;rmdir /dev/vx03&lt;BR /&gt;&lt;BR /&gt;to actually remove the directory itself (not a special file).&lt;BR /&gt;&lt;BR /&gt;5 points to you for your original reply!&lt;BR /&gt;&lt;BR /&gt;And a thank you to everyone else for your input - I can now create a Volume group.&lt;BR /&gt;&lt;BR /&gt;Scotty</description>
      <pubDate>Wed, 09 Jun 2010 17:24:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/running-vgscan-with-system-up/m-p/5242730#M550883</guid>
      <dc:creator>Steve Howie</dc:creator>
      <dc:date>2010-06-09T17:24:25Z</dc:date>
    </item>
    <item>
      <title>Re: running vgscan with system up?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/running-vgscan-with-system-up/m-p/5242731#M550884</link>
      <description>Stale device file entries removed using rmsf -a &lt;VGNAME&gt; followed by rmdir to remove container folder&lt;/VGNAME&gt;</description>
      <pubDate>Thu, 10 Jun 2010 12:57:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/running-vgscan-with-system-up/m-p/5242731#M550884</guid>
      <dc:creator>Steve Howie</dc:creator>
      <dc:date>2010-06-10T12:57:12Z</dc:date>
    </item>
  </channel>
</rss>

