<?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: /dev erase by mistake in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/dev-erase-by-mistake/m-p/3070135#M140519</link>
    <description>If your machine as A. Clay says is toast and there is no way to log in, you need to do as follows:&lt;BR /&gt;&lt;BR /&gt;Take your latest make_tape_recovery tape and put it in the tape drive&lt;BR /&gt;&lt;BR /&gt;power the machine off, since you can't log in and shut down&lt;BR /&gt;&lt;BR /&gt;power it up.&lt;BR /&gt;&lt;BR /&gt;Go to console&lt;BR /&gt;&lt;BR /&gt;Interupt at the 10 second prompt&lt;BR /&gt;&lt;BR /&gt;bo&lt;BR /&gt;&lt;ENTER&gt;&lt;BR /&gt;Y Interact with the ISL&lt;BR /&gt;hpux -is&lt;BR /&gt;&lt;BR /&gt;If it boots, do this.&lt;BR /&gt;&lt;BR /&gt;find the mount command&lt;BR /&gt;&lt;BR /&gt;mount /usr&lt;BR /&gt;&lt;BR /&gt;insf -e&lt;BR /&gt;&lt;BR /&gt;shutdown -ry now&lt;BR /&gt;&lt;BR /&gt;If the solution works, you are on the road to recovery.&lt;BR /&gt;&lt;BR /&gt;If not.&lt;BR /&gt;&lt;BR /&gt;Power down again.&lt;BR /&gt;&lt;BR /&gt;Interupt at the 10 second prompt at the console&lt;BR /&gt;&lt;BR /&gt;sea&lt;BR /&gt;&lt;ENTER&gt;&lt;BR /&gt;&lt;BR /&gt;You'll see a sequential device. Sequential means tape.  It will say something like P3&lt;BR /&gt;&lt;BR /&gt;bo P3&lt;BR /&gt;&lt;ENTER&gt;&lt;BR /&gt;N Do not interact.&lt;BR /&gt;&lt;BR /&gt;Restore from that Ignite tape.&lt;BR /&gt;Its automated from there.&lt;BR /&gt;&lt;BR /&gt;In case you are really screwed and can't recovery, you probably need to immediately explain to management that you made a big mistake and reinstall the operating system on that system.  You might be able to get away without harming data, depending on how you laid out your volume groups.&lt;BR /&gt;&lt;BR /&gt;When the system is back up, you need to run a script that looks like this once a week.&lt;BR /&gt;&lt;BR /&gt;#!/usr/bin/sh&lt;BR /&gt;/opt/ignite/bin/make_tape_recovery -Av -x inc_entire=vg00&lt;BR /&gt;&lt;BR /&gt;Good Luck,&lt;BR /&gt;&lt;BR /&gt;SEP&lt;BR /&gt;&lt;/ENTER&gt;&lt;/ENTER&gt;&lt;/ENTER&gt;</description>
    <pubDate>Fri, 12 Sep 2003 18:02:56 GMT</pubDate>
    <dc:creator>Steven E. Protter</dc:creator>
    <dc:date>2003-09-12T18:02:56Z</dc:date>
    <item>
      <title>/dev erase by mistake</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/dev-erase-by-mistake/m-p/3070126#M140510</link>
      <description>We erased /dev by mistake.&lt;BR /&gt;&lt;BR /&gt;Now i'm not able to connect to the server with telnet and rlogin.&lt;BR /&gt;&lt;BR /&gt;Not able to restore, because my tape is /dev/rmt/1m&lt;BR /&gt;&lt;BR /&gt;What we have to do?</description>
      <pubDate>Fri, 12 Sep 2003 17:30:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/dev-erase-by-mistake/m-p/3070126#M140510</guid>
      <dc:creator>Fred Morin_1</dc:creator>
      <dc:date>2003-09-12T17:30:13Z</dc:date>
    </item>
    <item>
      <title>Re: /dev erase by mistake</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/dev-erase-by-mistake/m-p/3070127#M140511</link>
      <description>Try running "insf"&lt;BR /&gt;&lt;BR /&gt;It re-creates all the device special files.  Looks like you are going to have to do it from the console though.</description>
      <pubDate>Fri, 12 Sep 2003 17:31:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/dev-erase-by-mistake/m-p/3070127#M140511</guid>
      <dc:creator>Mark Grant</dc:creator>
      <dc:date>2003-09-12T17:31:40Z</dc:date>
    </item>
    <item>
      <title>Re: /dev erase by mistake</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/dev-erase-by-mistake/m-p/3070128#M140512</link>
      <description>One possible option (if you have an open active session with the server) is to recreate device files using:&lt;BR /&gt;&lt;BR /&gt;# insf -e&lt;BR /&gt;&lt;BR /&gt;And then restore your /dev directory completely from backup. If this doesn't work, you can recover the directory from make_tape_recovery (Ignite) tape.</description>
      <pubDate>Fri, 12 Sep 2003 17:33:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/dev-erase-by-mistake/m-p/3070128#M140512</guid>
      <dc:creator>Helen French</dc:creator>
      <dc:date>2003-09-12T17:33:53Z</dc:date>
    </item>
    <item>
      <title>Re: /dev erase by mistake</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/dev-erase-by-mistake/m-p/3070129#M140513</link>
      <description>No.&lt;BR /&gt;I'm not able to connect with a console too,&lt;BR /&gt;&lt;BR /&gt;I have the login prompt, but no tty are available.</description>
      <pubDate>Fri, 12 Sep 2003 17:34:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/dev-erase-by-mistake/m-p/3070129#M140513</guid>
      <dc:creator>Fred Morin_1</dc:creator>
      <dc:date>2003-09-12T17:34:03Z</dc:date>
    </item>
    <item>
      <title>Re: /dev erase by mistake</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/dev-erase-by-mistake/m-p/3070130#M140514</link>
      <description>If you can't login, then the only other option I see is to reboot.  The device files will be re-created during the boot process just as if you had run insf.  You will probably run into issues because you LVM device files aren't there so you'll have to limp through the boot and then restore /dev from backup.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Pete&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 12 Sep 2003 17:37:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/dev-erase-by-mistake/m-p/3070130#M140514</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2003-09-12T17:37:33Z</dc:date>
    </item>
    <item>
      <title>Re: /dev erase by mistake</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/dev-erase-by-mistake/m-p/3070131#M140515</link>
      <description>The technical term for your condition is "toast". It's time to pull out the Recovery Media, better still your Ignite tape -- that I'm sure that you have --- or even better pull out the boot disk and throw the "lifeboat" disk in the slot that you made with dd and be back in business.&lt;BR /&gt;&lt;BR /&gt;A UNIX box just ain't gonna do nothing without no /dev directory on account of it ain't got no devices.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 12 Sep 2003 17:38:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/dev-erase-by-mistake/m-p/3070131#M140515</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2003-09-12T17:38:49Z</dc:date>
    </item>
    <item>
      <title>Re: /dev erase by mistake</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/dev-erase-by-mistake/m-p/3070132#M140516</link>
      <description>Do you have Ignite backup? If downtime is allowed then recover it from Ignite backup.</description>
      <pubDate>Fri, 12 Sep 2003 17:38:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/dev-erase-by-mistake/m-p/3070132#M140516</guid>
      <dc:creator>GK_5</dc:creator>
      <dc:date>2003-09-12T17:38:57Z</dc:date>
    </item>
    <item>
      <title>Re: /dev erase by mistake</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/dev-erase-by-mistake/m-p/3070133#M140517</link>
      <description>Oh dear.&lt;BR /&gt;&lt;BR /&gt;If you have absolutely no way of getting into this machine you have a slightly more difficult problem.&lt;BR /&gt;&lt;BR /&gt;You might try running it using "rsh" from another machine, if only to create /dev/console.  I don't think rsh needs a /dev entry BUT you will have lost a lot more than just terminal and tape and disk devices.  &lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 12 Sep 2003 17:40:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/dev-erase-by-mistake/m-p/3070133#M140517</guid>
      <dc:creator>Mark Grant</dc:creator>
      <dc:date>2003-09-12T17:40:03Z</dc:date>
    </item>
    <item>
      <title>Re: /dev erase by mistake</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/dev-erase-by-mistake/m-p/3070134#M140518</link>
      <description>We resolved our problem,&lt;BR /&gt;&lt;BR /&gt;Logon CDE in failsafe mode.&lt;BR /&gt;&lt;BR /&gt;insf -e&lt;BR /&gt;&lt;BR /&gt;Restore with omniback /dev&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 12 Sep 2003 17:55:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/dev-erase-by-mistake/m-p/3070134#M140518</guid>
      <dc:creator>Fred Morin_1</dc:creator>
      <dc:date>2003-09-12T17:55:21Z</dc:date>
    </item>
    <item>
      <title>Re: /dev erase by mistake</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/dev-erase-by-mistake/m-p/3070135#M140519</link>
      <description>If your machine as A. Clay says is toast and there is no way to log in, you need to do as follows:&lt;BR /&gt;&lt;BR /&gt;Take your latest make_tape_recovery tape and put it in the tape drive&lt;BR /&gt;&lt;BR /&gt;power the machine off, since you can't log in and shut down&lt;BR /&gt;&lt;BR /&gt;power it up.&lt;BR /&gt;&lt;BR /&gt;Go to console&lt;BR /&gt;&lt;BR /&gt;Interupt at the 10 second prompt&lt;BR /&gt;&lt;BR /&gt;bo&lt;BR /&gt;&lt;ENTER&gt;&lt;BR /&gt;Y Interact with the ISL&lt;BR /&gt;hpux -is&lt;BR /&gt;&lt;BR /&gt;If it boots, do this.&lt;BR /&gt;&lt;BR /&gt;find the mount command&lt;BR /&gt;&lt;BR /&gt;mount /usr&lt;BR /&gt;&lt;BR /&gt;insf -e&lt;BR /&gt;&lt;BR /&gt;shutdown -ry now&lt;BR /&gt;&lt;BR /&gt;If the solution works, you are on the road to recovery.&lt;BR /&gt;&lt;BR /&gt;If not.&lt;BR /&gt;&lt;BR /&gt;Power down again.&lt;BR /&gt;&lt;BR /&gt;Interupt at the 10 second prompt at the console&lt;BR /&gt;&lt;BR /&gt;sea&lt;BR /&gt;&lt;ENTER&gt;&lt;BR /&gt;&lt;BR /&gt;You'll see a sequential device. Sequential means tape.  It will say something like P3&lt;BR /&gt;&lt;BR /&gt;bo P3&lt;BR /&gt;&lt;ENTER&gt;&lt;BR /&gt;N Do not interact.&lt;BR /&gt;&lt;BR /&gt;Restore from that Ignite tape.&lt;BR /&gt;Its automated from there.&lt;BR /&gt;&lt;BR /&gt;In case you are really screwed and can't recovery, you probably need to immediately explain to management that you made a big mistake and reinstall the operating system on that system.  You might be able to get away without harming data, depending on how you laid out your volume groups.&lt;BR /&gt;&lt;BR /&gt;When the system is back up, you need to run a script that looks like this once a week.&lt;BR /&gt;&lt;BR /&gt;#!/usr/bin/sh&lt;BR /&gt;/opt/ignite/bin/make_tape_recovery -Av -x inc_entire=vg00&lt;BR /&gt;&lt;BR /&gt;Good Luck,&lt;BR /&gt;&lt;BR /&gt;SEP&lt;BR /&gt;&lt;/ENTER&gt;&lt;/ENTER&gt;&lt;/ENTER&gt;</description>
      <pubDate>Fri, 12 Sep 2003 18:02:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/dev-erase-by-mistake/m-p/3070135#M140519</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2003-09-12T18:02:56Z</dc:date>
    </item>
    <item>
      <title>Re: /dev erase by mistake</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/dev-erase-by-mistake/m-p/3070136#M140520</link>
      <description>Here's a Plan "C" or "D" IF you have another box.&lt;BR /&gt;&lt;BR /&gt;You could install the boot disk in another box, import the VG, and mount the root filesystem as, perhaps, /dev/root. You could then run mknod to create a few of the critical devices, along with /dev/vg00, and be back in business rather quickly. If you do have another box in which you can mount your boot disk then we can probably talk you through the process.&lt;BR /&gt;&lt;BR /&gt;Yours is the kind of problem that mirrors don't help because you simply mirror your booboo's. That's why a "lifeboat disk" (or an Ignite tape) is such a good tool; it protects you from two things that mirrors do not: 1) really, really bad patches and 2) your own stupidity.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 12 Sep 2003 18:20:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/dev-erase-by-mistake/m-p/3070136#M140520</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2003-09-12T18:20:45Z</dc:date>
    </item>
    <item>
      <title>Re: /dev erase by mistake</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/dev-erase-by-mistake/m-p/3070137#M140521</link>
      <description>No help here, just a question:&lt;BR /&gt;&lt;BR /&gt;I'm impressed that this was recoverable, and I've never tried to remove a /dev file.&lt;BR /&gt;&lt;BR /&gt;If I tried rm -r /dev/* , why would it not try to access the devices there, try to 'erase' them, but leave my /dev/ directories alone?</description>
      <pubDate>Fri, 12 Sep 2003 18:34:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/dev-erase-by-mistake/m-p/3070137#M140521</guid>
      <dc:creator>doug mielke</dc:creator>
      <dc:date>2003-09-12T18:34:57Z</dc:date>
    </item>
    <item>
      <title>Re: /dev erase by mistake</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/dev-erase-by-mistake/m-p/3070138#M140522</link>
      <description>The rm -r /dev/* command will remove the device files *AND* directories below /dev leaving an empty /dev/ directoy. It turns out that you can remove device files for hardware like disks while the system is running since the device is already open (ie, LVM). &lt;BR /&gt;&lt;BR /&gt;However, insf -e (or a reboot) is NOT guarenteed to create the same device file names. This is because insf scans the backplane as it exists at the moment. If you never added any new disks or tapes or LAN cards, most likely the device files will have the same name. When the system was first installed, the new device files were created the same way, but later I/O cards will not necessarily be in numerical order and the device names (based on the card's instance number) will likely not be the same.</description>
      <pubDate>Fri, 12 Sep 2003 19:06:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/dev-erase-by-mistake/m-p/3070138#M140522</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2003-09-12T19:06:18Z</dc:date>
    </item>
  </channel>
</rss>

