<?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: Whoops.  Partially deleted /dev in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/whoops-partially-deleted-dev/m-p/4481537#M362575</link>
    <description>Hi George,&lt;BR /&gt;&lt;BR /&gt;You should be able to recreate /dev/vg00 and the missing standard device files lvol1, lvol2, lvol3, lvol4, etc.....&lt;BR /&gt;&lt;BR /&gt;umask 077&lt;BR /&gt;for LV in 1 2 3 4 5 6 7 8&lt;BR /&gt;do&lt;BR /&gt;mknod /dev/vg00/lvol$LV b 64 0x00000$LV&lt;BR /&gt;mknod /dev/vg00/rlvol$LV c 64 0x00000$LV&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;Example listing :&lt;BR /&gt;&lt;BR /&gt;# ls -ld /dev/vg00&lt;BR /&gt;drwxr-xr-x   2 root       root          8192 Jul 23 08:30 /dev/vg00&lt;BR /&gt;&lt;BR /&gt;/dev/vg00# ll lvol* &lt;BR /&gt;brw-r-----   1 root       sys         64 0x000001 Jul 23 08:30 lvol1&lt;BR /&gt;brw-r-----   1 root       sys         64 0x000002 Jul 23 08:30 lvol2&lt;BR /&gt;brw-r-----   1 root       sys         64 0x000003 Jul 23 08:30 lvol3&lt;BR /&gt;brw-r-----   1 root       sys         64 0x000004 Jul 23 08:30 lvol4&lt;BR /&gt;brw-r-----   1 root       sys         64 0x000005 Jul 23 08:30 lvol5&lt;BR /&gt;brw-r-----   1 root       sys         64 0x000006 Jul 23 08:30 lvol6&lt;BR /&gt;brw-r-----   1 root       sys         64 0x000007 Jul 23 08:30 lvol7&lt;BR /&gt;brw-r-----   1 root       sys         64 0x000008 Jul 23 08:30 lvol8&lt;BR /&gt;&lt;BR /&gt;/dev/vg00# ll rlvol*&lt;BR /&gt;crw-r-----   1 root       sys         64 0x000001 Jul 23 08:30 rlvol1&lt;BR /&gt;crw-r-----   1 root       sys         64 0x000002 Jul 23 08:30 rlvol2&lt;BR /&gt;crw-r-----   1 root       sys         64 0x000003 Jul 23 08:30 rlvol3&lt;BR /&gt;crw-r-----   1 root       sys         64 0x000004 Jul 23 08:30 rlvol4&lt;BR /&gt;crw-r-----   1 root       sys         64 0x000005 Jul 23 08:30 rlvol5&lt;BR /&gt;crw-r-----   1 root       sys         64 0x000006 Jul 23 08:30 rlvol6&lt;BR /&gt;crw-r-----   1 root       sys         64 0x000007 Jul 23 08:30 rlvol7&lt;BR /&gt;crw-r-----   1 root       sys         64 0x000008 Jul 23 08:30 rlvol8&lt;BR /&gt;crw-r-----   1 root       sys         64 0x000009 Jul 23 08:30 rlvol9&lt;BR /&gt;&lt;BR /&gt;Obviously you have the other missing /dev device files and directory's to contend with.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;Mark</description>
    <pubDate>Tue, 18 Aug 2009 12:59:41 GMT</pubDate>
    <dc:creator>Mark S Meadows</dc:creator>
    <dc:date>2009-08-18T12:59:41Z</dc:date>
    <item>
      <title>Whoops.  Partially deleted /dev</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/whoops-partially-deleted-dev/m-p/4481531#M362569</link>
      <description>I was working with LVM last night and was trying to delete /dev/oradata10g with:&lt;BR /&gt;&lt;BR /&gt;rm -rf /dev/oradata10g&lt;BR /&gt;&lt;BR /&gt;My intention was to wipe out the directory and the group file.  A very badly placed space character made my life difficult:&lt;BR /&gt;&lt;BR /&gt;rm -rf /dev /oradata10g&lt;BR /&gt;&lt;BR /&gt;It should have only taken a fraction of a second, but it seemed to be taking more than a second and I pressed Ctrl-C sparing the rest of /dev.  Still, the damage was done.  Hoping that not all was lost I ran the vgimport command and got an error about /dev/config not being present.  Then I tried logging into the console.  When I typed any user name, I wouldn't get a password prompt and would only get a "login incorrect" message.  At this point I knew I was hosed.  As luck would have it, this is one system that hasn't had the system disk backup done in a while.  Yes... EVERYTHING that happened here was wrong.  So is there any possible way to recover /dev without reinstalling?</description>
      <pubDate>Tue, 18 Aug 2009 12:07:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/whoops-partially-deleted-dev/m-p/4481531#M362569</guid>
      <dc:creator>George Lenzer</dc:creator>
      <dc:date>2009-08-18T12:07:12Z</dc:date>
    </item>
    <item>
      <title>Re: Whoops.  Partially deleted /dev</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/whoops-partially-deleted-dev/m-p/4481532#M362570</link>
      <description>You can try insf -a command to create (install) device special files for whatever you have on your system.</description>
      <pubDate>Tue, 18 Aug 2009 12:16:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/whoops-partially-deleted-dev/m-p/4481532#M362570</guid>
      <dc:creator>Mel Burslan</dc:creator>
      <dc:date>2009-08-18T12:16:12Z</dc:date>
    </item>
    <item>
      <title>Re: Whoops.  Partially deleted /dev</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/whoops-partially-deleted-dev/m-p/4481533#M362571</link>
      <description>Did you know you should use vgexport or vgremove to delete VGs?&lt;BR /&gt;&lt;BR /&gt;However, I would consider to restore from backup - who knows what is missing now ...</description>
      <pubDate>Tue, 18 Aug 2009 12:24:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/whoops-partially-deleted-dev/m-p/4481533#M362571</guid>
      <dc:creator>Torsten.</dc:creator>
      <dc:date>2009-08-18T12:24:51Z</dc:date>
    </item>
    <item>
      <title>Re: Whoops.  Partially deleted /dev</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/whoops-partially-deleted-dev/m-p/4481534#M362572</link>
      <description>Hi George:&lt;BR /&gt;&lt;BR /&gt;Ouch.  It sounds like you don't have an active 'root' login and that limits what you could try ('insf' as Mel noted).  As for attempting to restore, you may be missing some of the '/dev' files for tape, too, and that would require a 'root' login.&lt;BR /&gt;&lt;BR /&gt;The most expedient recovery may be from an Ignite backup tape or Ignite network archive from which you can boot and re-install.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Tue, 18 Aug 2009 12:32:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/whoops-partially-deleted-dev/m-p/4481534#M362572</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2009-08-18T12:32:12Z</dc:date>
    </item>
    <item>
      <title>Re: Whoops.  Partially deleted /dev</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/whoops-partially-deleted-dev/m-p/4481535#M362573</link>
      <description>I've opened a case with HP as well, but I suspect that at the end of the day, I'll be doing a full OS install.  All of the responses have been quite helpful, so thanks to everyone.&lt;BR /&gt;&lt;BR /&gt;To answer Torsten's question, yes, I did use vgexport to remove that VG.  But for some reason /dev/oradata10g and it's contents were still left behind and I can't stand to leave things like that around.  That happens frequently enough that I usually delete any old volume group directories and group files.  The lvols are usually gone, but sometime the dirs and group files stay.&lt;BR /&gt;&lt;BR /&gt;While looking around using the install DVD in export recovery mode, I've found that /dev/vg00 and it's contents are all gone.  I suspect that's the final nail in the coffin.  The one thing I need to do now is see if I can recover some custom scripts from /.</description>
      <pubDate>Tue, 18 Aug 2009 12:45:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/whoops-partially-deleted-dev/m-p/4481535#M362573</guid>
      <dc:creator>George Lenzer</dc:creator>
      <dc:date>2009-08-18T12:45:18Z</dc:date>
    </item>
    <item>
      <title>Re: Whoops.  Partially deleted /dev</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/whoops-partially-deleted-dev/m-p/4481536#M362574</link>
      <description>Well it also looks like /dev/dsk and /dev/rdsk are all gone too.  !  I'm quite happy this is not a production system.  With that said, here is what I do have access to in expert recovery mode in a chroot environment:&lt;BR /&gt;&lt;BR /&gt;vgscan&lt;BR /&gt;mknod&lt;BR /&gt;ioscan (all disks are seen)&lt;BR /&gt;insf (a limited version it seems since insf -a didn't work)&lt;BR /&gt;&lt;BR /&gt;Of course, as noted earlier, there is no telling what is missing.  But, is there any possibility that if I can get this system to boot up most of the way that I can pull some of /dev over from one of our other Itanium boxes?</description>
      <pubDate>Tue, 18 Aug 2009 12:49:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/whoops-partially-deleted-dev/m-p/4481536#M362574</guid>
      <dc:creator>George Lenzer</dc:creator>
      <dc:date>2009-08-18T12:49:58Z</dc:date>
    </item>
    <item>
      <title>Re: Whoops.  Partially deleted /dev</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/whoops-partially-deleted-dev/m-p/4481537#M362575</link>
      <description>Hi George,&lt;BR /&gt;&lt;BR /&gt;You should be able to recreate /dev/vg00 and the missing standard device files lvol1, lvol2, lvol3, lvol4, etc.....&lt;BR /&gt;&lt;BR /&gt;umask 077&lt;BR /&gt;for LV in 1 2 3 4 5 6 7 8&lt;BR /&gt;do&lt;BR /&gt;mknod /dev/vg00/lvol$LV b 64 0x00000$LV&lt;BR /&gt;mknod /dev/vg00/rlvol$LV c 64 0x00000$LV&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;Example listing :&lt;BR /&gt;&lt;BR /&gt;# ls -ld /dev/vg00&lt;BR /&gt;drwxr-xr-x   2 root       root          8192 Jul 23 08:30 /dev/vg00&lt;BR /&gt;&lt;BR /&gt;/dev/vg00# ll lvol* &lt;BR /&gt;brw-r-----   1 root       sys         64 0x000001 Jul 23 08:30 lvol1&lt;BR /&gt;brw-r-----   1 root       sys         64 0x000002 Jul 23 08:30 lvol2&lt;BR /&gt;brw-r-----   1 root       sys         64 0x000003 Jul 23 08:30 lvol3&lt;BR /&gt;brw-r-----   1 root       sys         64 0x000004 Jul 23 08:30 lvol4&lt;BR /&gt;brw-r-----   1 root       sys         64 0x000005 Jul 23 08:30 lvol5&lt;BR /&gt;brw-r-----   1 root       sys         64 0x000006 Jul 23 08:30 lvol6&lt;BR /&gt;brw-r-----   1 root       sys         64 0x000007 Jul 23 08:30 lvol7&lt;BR /&gt;brw-r-----   1 root       sys         64 0x000008 Jul 23 08:30 lvol8&lt;BR /&gt;&lt;BR /&gt;/dev/vg00# ll rlvol*&lt;BR /&gt;crw-r-----   1 root       sys         64 0x000001 Jul 23 08:30 rlvol1&lt;BR /&gt;crw-r-----   1 root       sys         64 0x000002 Jul 23 08:30 rlvol2&lt;BR /&gt;crw-r-----   1 root       sys         64 0x000003 Jul 23 08:30 rlvol3&lt;BR /&gt;crw-r-----   1 root       sys         64 0x000004 Jul 23 08:30 rlvol4&lt;BR /&gt;crw-r-----   1 root       sys         64 0x000005 Jul 23 08:30 rlvol5&lt;BR /&gt;crw-r-----   1 root       sys         64 0x000006 Jul 23 08:30 rlvol6&lt;BR /&gt;crw-r-----   1 root       sys         64 0x000007 Jul 23 08:30 rlvol7&lt;BR /&gt;crw-r-----   1 root       sys         64 0x000008 Jul 23 08:30 rlvol8&lt;BR /&gt;crw-r-----   1 root       sys         64 0x000009 Jul 23 08:30 rlvol9&lt;BR /&gt;&lt;BR /&gt;Obviously you have the other missing /dev device files and directory's to contend with.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;Mark</description>
      <pubDate>Tue, 18 Aug 2009 12:59:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/whoops-partially-deleted-dev/m-p/4481537#M362575</guid>
      <dc:creator>Mark S Meadows</dc:creator>
      <dc:date>2009-08-18T12:59:41Z</dc:date>
    </item>
    <item>
      <title>Re: Whoops.  Partially deleted /dev</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/whoops-partially-deleted-dev/m-p/4481538#M362576</link>
      <description>Well... I was able to use insf -e to recreate most of the standard dev nodes.  Then I used vgscan and mknod to get vg00 back.  I rebooted, cleared up the crash dump fallout from previous failed boots, and was able to log in as root.&lt;BR /&gt;&lt;BR /&gt;I absolutely know there is no telling what is missing or wrong until I do a full comparison between the /dev file systems on this box and one of our other Itaniums.  I need to get networking going.  Config seems fine according to set_parms, but the system can't ping itself or the gateway.  syslog doesn't seem to say anything but during boot, configuration of IPv4 interfaces fails.&lt;BR /&gt;&lt;BR /&gt;Once again, I have to say I was really happy this was not a production box.</description>
      <pubDate>Tue, 18 Aug 2009 15:52:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/whoops-partially-deleted-dev/m-p/4481538#M362576</guid>
      <dc:creator>George Lenzer</dc:creator>
      <dc:date>2009-08-18T15:52:57Z</dc:date>
    </item>
    <item>
      <title>Re: Whoops.  Partially deleted /dev</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/whoops-partially-deleted-dev/m-p/4481539#M362577</link>
      <description>If you haven't heard this one yet:&lt;BR /&gt;&lt;BR /&gt;There are two types of system administrators &lt;BR /&gt;&lt;BR /&gt;(1) who lost critical data&lt;BR /&gt;&lt;BR /&gt;(2) who will lose critical data&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I can not emphasize value of periodic and frequent ignite imaging process (we try to do it weekly with make_net_recovery utility in my data center) as well as a good daily backup with a preferably monthly restore exercise even if you do not need anything to be restored. A backup is only good if you can restore from it :)</description>
      <pubDate>Tue, 18 Aug 2009 18:39:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/whoops-partially-deleted-dev/m-p/4481539#M362577</guid>
      <dc:creator>Mel Burslan</dc:creator>
      <dc:date>2009-08-18T18:39:31Z</dc:date>
    </item>
    <item>
      <title>Re: Whoops.  Partially deleted /dev</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/whoops-partially-deleted-dev/m-p/4481540#M362578</link>
      <description>Mel, thanks for the reminder.  Fortunately we do keep good backups on the production systems.  But the reporting and test systems haven't gotten that much attention.  I intend to change that after last night.</description>
      <pubDate>Tue, 18 Aug 2009 19:26:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/whoops-partially-deleted-dev/m-p/4481540#M362578</guid>
      <dc:creator>George Lenzer</dc:creator>
      <dc:date>2009-08-18T19:26:54Z</dc:date>
    </item>
  </channel>
</rss>

