<?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: Quick, easy and safe way to remove invalid device files? in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/quick-easy-and-safe-way-to-remove-invalid-device-files/m-p/3229699#M171837</link>
    <description>I'll assign points in a bit.&lt;BR /&gt;&lt;BR /&gt;I think I'm talking 10-13 servers and 98 devices:&lt;BR /&gt;tortola:root /root # ioscan -fun | grep NO_HW | wc -l&lt;BR /&gt;98&lt;BR /&gt;&lt;BR /&gt;I'm kind of suprised that they have the device files since I figured they would of only been created during bootup or if someone does insf -e.  But thats another deal all together.&lt;BR /&gt;&lt;BR /&gt;I'm 95% sure I have my tape library now so it isn't trying to discover everything on my SAN.  So if I can remove these files and some day get a reboot I shouldn't have it repopulate my device files again after being rediscovered.  But in case it does, I'm not sure if I want to go out to each server again after a reboot and have the same thing happen.&lt;BR /&gt;&lt;BR /&gt;Dave&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Thu, 25 Mar 2004 09:42:51 GMT</pubDate>
    <dc:creator>Dave Hutton</dc:creator>
    <dc:date>2004-03-25T09:42:51Z</dc:date>
    <item>
      <title>Quick, easy and safe way to remove invalid device files?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/quick-easy-and-safe-way-to-remove-invalid-device-files/m-p/3229693#M171831</link>
      <description>Hi all,&lt;BR /&gt;&lt;BR /&gt;Due to a misconfiguration of my new tape library, my tape library was presented to all my hpux servers on our SAN.  To compound my problem, I also had it misconfigured so it presented multiple luns of the same device.  I have probably 15 unix servers that now have a bunch of invalid device files in my ioscan (which I attached from one of my systems, I'm scared to look at my other servers).&lt;BR /&gt;&lt;BR /&gt;Would it be safe to do create a script that did something in this line:&lt;BR /&gt;ioscan -fn &lt;BR /&gt;grepping for NO_HW&lt;BR /&gt;and then rmsf -H the hardware path that was parsed out?&lt;BR /&gt;I'm guessing the safest would be by hand making sure I don't remove a device file that I need.&lt;BR /&gt;I do have XP128 disks hanging off the same chain, so I really have to be careful.&lt;BR /&gt;&lt;BR /&gt;Any suggestions?  What a mess. =(&lt;BR /&gt;&lt;BR /&gt;Dave&lt;BR /&gt;</description>
      <pubDate>Thu, 25 Mar 2004 09:24:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/quick-easy-and-safe-way-to-remove-invalid-device-files/m-p/3229693#M171831</guid>
      <dc:creator>Dave Hutton</dc:creator>
      <dc:date>2004-03-25T09:24:57Z</dc:date>
    </item>
    <item>
      <title>Re: Quick, easy and safe way to remove invalid device files?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/quick-easy-and-safe-way-to-remove-invalid-device-files/m-p/3229694#M171832</link>
      <description>Hi Dave,&lt;BR /&gt;&lt;BR /&gt;What a bummer! Anyway, I assume you've tried insf -e?? Does that leave the faulty ones on the system or does it remove them as well?&lt;BR /&gt;&lt;BR /&gt;Let us know,&lt;BR /&gt;&lt;BR /&gt;Good luck!&lt;BR /&gt;&lt;BR /&gt;Robert</description>
      <pubDate>Thu, 25 Mar 2004 09:32:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/quick-easy-and-safe-way-to-remove-invalid-device-files/m-p/3229694#M171832</guid>
      <dc:creator>Robert Binkhorst</dc:creator>
      <dc:date>2004-03-25T09:32:01Z</dc:date>
    </item>
    <item>
      <title>Re: Quick, easy and safe way to remove invalid device files?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/quick-easy-and-safe-way-to-remove-invalid-device-files/m-p/3229695#M171833</link>
      <description>To see wich Invalid Devices you have run:&lt;BR /&gt; - ioscan -kf&lt;BR /&gt; - ioscan -u&lt;BR /&gt;&lt;BR /&gt;Se the diferences&lt;BR /&gt;&lt;BR /&gt;Remove invalid devices with rmsf</description>
      <pubDate>Thu, 25 Mar 2004 09:32:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/quick-easy-and-safe-way-to-remove-invalid-device-files/m-p/3229695#M171833</guid>
      <dc:creator>Juan Manuel Naranjo A.</dc:creator>
      <dc:date>2004-03-25T09:32:59Z</dc:date>
    </item>
    <item>
      <title>Re: Quick, easy and safe way to remove invalid device files?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/quick-easy-and-safe-way-to-remove-invalid-device-files/m-p/3229696#M171834</link>
      <description>Dave --&lt;BR /&gt;&lt;BR /&gt;I would make sure that you look over the rmsf's before you kick off that part of the script to see if they "make sense".&lt;BR /&gt;&lt;BR /&gt;In other words, I would expect you to see a whole line of devices that have very similar device IDs and those would be safe to remove.&lt;BR /&gt;&lt;BR /&gt;If you get something that is outside that range, then you might want to consider doing more checking on that one.&lt;BR /&gt;&lt;BR /&gt;Best regards,&lt;BR /&gt;&lt;BR /&gt;Kent M. Ostby&lt;BR /&gt;</description>
      <pubDate>Thu, 25 Mar 2004 09:34:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/quick-easy-and-safe-way-to-remove-invalid-device-files/m-p/3229696#M171834</guid>
      <dc:creator>Kent Ostby</dc:creator>
      <dc:date>2004-03-25T09:34:39Z</dc:date>
    </item>
    <item>
      <title>Re: Quick, easy and safe way to remove invalid device files?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/quick-easy-and-safe-way-to-remove-invalid-device-files/m-p/3229697#M171835</link>
      <description>doinf ioscan -fnCtape would be better. But you are OK, even if you do not remove it. Every time you boot machine, insf is executed. If youreally want to remove them, then you can just get the list of device files you want to remove and then do rmsf on them.&lt;BR /&gt;&lt;BR /&gt;Anil</description>
      <pubDate>Thu, 25 Mar 2004 09:35:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/quick-easy-and-safe-way-to-remove-invalid-device-files/m-p/3229697#M171835</guid>
      <dc:creator>RAC_1</dc:creator>
      <dc:date>2004-03-25T09:35:29Z</dc:date>
    </item>
    <item>
      <title>Re: Quick, easy and safe way to remove invalid device files?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/quick-easy-and-safe-way-to-remove-invalid-device-files/m-p/3229698#M171836</link>
      <description>I don't know how many devices and systems you are talking about but I would be way  more comfortable doing this by hand.&lt;BR /&gt;&lt;BR /&gt;rmsf is the way to go here.</description>
      <pubDate>Thu, 25 Mar 2004 09:36:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/quick-easy-and-safe-way-to-remove-invalid-device-files/m-p/3229698#M171836</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2004-03-25T09:36:05Z</dc:date>
    </item>
    <item>
      <title>Re: Quick, easy and safe way to remove invalid device files?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/quick-easy-and-safe-way-to-remove-invalid-device-files/m-p/3229699#M171837</link>
      <description>I'll assign points in a bit.&lt;BR /&gt;&lt;BR /&gt;I think I'm talking 10-13 servers and 98 devices:&lt;BR /&gt;tortola:root /root # ioscan -fun | grep NO_HW | wc -l&lt;BR /&gt;98&lt;BR /&gt;&lt;BR /&gt;I'm kind of suprised that they have the device files since I figured they would of only been created during bootup or if someone does insf -e.  But thats another deal all together.&lt;BR /&gt;&lt;BR /&gt;I'm 95% sure I have my tape library now so it isn't trying to discover everything on my SAN.  So if I can remove these files and some day get a reboot I shouldn't have it repopulate my device files again after being rediscovered.  But in case it does, I'm not sure if I want to go out to each server again after a reboot and have the same thing happen.&lt;BR /&gt;&lt;BR /&gt;Dave&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 25 Mar 2004 09:42:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/quick-easy-and-safe-way-to-remove-invalid-device-files/m-p/3229699#M171837</guid>
      <dc:creator>Dave Hutton</dc:creator>
      <dc:date>2004-03-25T09:42:51Z</dc:date>
    </item>
    <item>
      <title>Re: Quick, easy and safe way to remove invalid device files?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/quick-easy-and-safe-way-to-remove-invalid-device-files/m-p/3229700#M171838</link>
      <description>Robert:  rmsf -e I think would try to re-add all the devices that it sees.  So I'm guessing it would leave the faulty ones too.&lt;BR /&gt;&lt;BR /&gt;Juan:  I tried those two commands, it maybe an alternative to my grepping for NO_HW.&lt;BR /&gt;&lt;BR /&gt;Kent:  Good idea, about checking what my NO_HW grep would look like in case something that I don't want to sneak in, sneaks in.&lt;BR /&gt;&lt;BR /&gt;RAC:  You confirm what I was thinking.  Ctape is an idea, one server though has some legit tape drives on it.  Theres also fnCctl and fnCautoch that I would have to do also.  The fnCctl would be a bit scarey also to do being the controlling XP128 disks use the same type of device.&lt;BR /&gt;&lt;BR /&gt;So far I'm leaning to doing them by hand. =/&lt;BR /&gt;&lt;BR /&gt;Dave&lt;BR /&gt;</description>
      <pubDate>Thu, 25 Mar 2004 09:53:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/quick-easy-and-safe-way-to-remove-invalid-device-files/m-p/3229700#M171838</guid>
      <dc:creator>Dave Hutton</dc:creator>
      <dc:date>2004-03-25T09:53:05Z</dc:date>
    </item>
    <item>
      <title>Re: Quick, easy and safe way to remove invalid device files?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/quick-easy-and-safe-way-to-remove-invalid-device-files/m-p/3229701#M171839</link>
      <description>Dave, &lt;BR /&gt;&lt;BR /&gt;We had some issues with our install process for veritas, and had bad drives etc.  It became necessary to find the /dev/rmt/* and just delete them and the indexing to keep the controller number under 256. &lt;BR /&gt;&lt;BR /&gt;If you get a controller number over 255 the machine acts as though it thinks the tape is a malfunctioning tape drive.&lt;BR /&gt;&lt;BR /&gt;The real key for long term success is to clean up the devices.&lt;BR /&gt;&lt;BR /&gt;here is a procedure&lt;BR /&gt;&lt;BR /&gt;1)  Make maps of volume groups just in case.  Yes, everything should be put&lt;BR /&gt;in / (root).&lt;BR /&gt;    # strings /etc/lvmtab &amp;gt; /lvmtab.out&lt;BR /&gt;    # vgexport -p -m /vxXX.map vgXX # For every volume group&lt;BR /&gt;&lt;BR /&gt;2)  Make a file with currently used instance numbers.&lt;BR /&gt;    # ioscan -kf | grep -e ^tape -e ^lan -e ^ext_bus -e ^tty  |     grep CLAIMED | awk '{printf "%s %s %s\n",$3,$1,$2}'     &amp;gt; infile&lt;BR /&gt;&lt;BR /&gt;3)  Edit out any lines with instance number greater than 255.&lt;BR /&gt;&lt;BR /&gt;4)  Test the 'infile' before rebooting.  See ioinit(1M) for more details.&lt;BR /&gt;    # ioinit -f /infile&lt;BR /&gt;&lt;BR /&gt;    Continue to remove entries that cause errors until the only message you get&lt;BR /&gt;is "line ignored."  Third party drivers have not been tested, and the procedure&lt;BR /&gt;may not work for them.&lt;BR /&gt;&lt;BR /&gt;5)  Save a copy of the ioconfig file.  Be sure to use cp(1) and not mv(1).&lt;BR /&gt;    # cp /etc/ioconfig /etc/ioconfig.sav&lt;BR /&gt;    # cp /stand/ioconfig /stand/ioconfig.sav&lt;BR /&gt;&lt;BR /&gt;6)  Remove the ioconfig files.&lt;BR /&gt;    # rm /etc/ioconfig /stand/ioconfig&lt;BR /&gt;&lt;BR /&gt;7)  Shutdown -r but boot into LVM maintenance mode.&lt;BR /&gt;    # shutdown -r 0&lt;BR /&gt;BCH&amp;gt; hpux -lm&lt;BR /&gt;Or, on a V-Class system:&lt;BR /&gt;Command&amp;gt; bo -lm&lt;BR /&gt;&lt;BR /&gt;8)  When the following message comes up, type the following ioinit commands&lt;BR /&gt;exactly as shown:&lt;BR /&gt;/etc/ioconfig is missing.  Restore it from backup or&lt;BR /&gt;invoke /sbin/ioinit -c to recreate it from the kernel.&lt;BR /&gt;When finished enter ^D to continue boot.&lt;BR /&gt;(in ioinitrc)# /sbin/ioinit -c&lt;BR /&gt;(in ioinitrc)# /sbin/ioinit -f /infile -r&lt;BR /&gt;&lt;BR /&gt;Good luck,&lt;BR /&gt;&lt;BR /&gt;Tim</description>
      <pubDate>Thu, 25 Mar 2004 10:45:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/quick-easy-and-safe-way-to-remove-invalid-device-files/m-p/3229701#M171839</guid>
      <dc:creator>Tim Sanko</dc:creator>
      <dc:date>2004-03-25T10:45:27Z</dc:date>
    </item>
    <item>
      <title>Re: Quick, easy and safe way to remove invalid device files?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/quick-easy-and-safe-way-to-remove-invalid-device-files/m-p/3229702#M171840</link>
      <description>Tim, just looking at my /dev/rmt/* files it looks like I'm clean there when it comes to controllers being below 255.  It looks like the highest number that was allocated was c53/t*/d*.&lt;BR /&gt;&lt;BR /&gt;I'm going to think about this for abit.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 25 Mar 2004 10:58:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/quick-easy-and-safe-way-to-remove-invalid-device-files/m-p/3229702#M171840</guid>
      <dc:creator>Dave Hutton</dc:creator>
      <dc:date>2004-03-25T10:58:58Z</dc:date>
    </item>
  </channel>
</rss>

