<?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: /etc overwrite in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/etc-overwrite/m-p/2588601#M32563</link>
    <description>Hi Jeff,&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;The best thing would be to recover it from a a backup.&lt;BR /&gt;&lt;BR /&gt;If that is not an option you will have to atleast update/recreate the following files (AFAIK)&lt;BR /&gt;hosts&lt;BR /&gt;passwd&lt;BR /&gt;group&lt;BR /&gt;nsswitch.conf&lt;BR /&gt;resolv.conf&lt;BR /&gt;fstab  (recreate)&lt;BR /&gt;lvmtab (recreate)&lt;BR /&gt;rc.config.d is a directory which contains config files which get sourced during startup, you will have to check if everything is ok there&lt;BR /&gt;/etc/cmcluster - MC/SG if you use service guard&lt;BR /&gt;ntp.conf - for NTP&lt;BR /&gt;mail - (/etc/mail contains all your sendmail config/aliases, not sure if you updated any but if you did, you will make sure you make those changes)&lt;BR /&gt;&lt;BR /&gt;Some of the sample files are available in /usr/newconfig/etc, you can copy them and modify them.&lt;BR /&gt;&lt;BR /&gt;As far as recreating the /etc/lvmtab is concerned , you could do a vgscan -p -v (man vgscan) and if everything is ok run vgscan -v which would recreate the lvmtab file.&lt;BR /&gt;&lt;BR /&gt;You definitely will have to update /etc/rc.config.d/netconf and modify the ip address and the hostname.&lt;BR /&gt;&lt;BR /&gt;I may have missed some, but i still think the better option is to do a restore.&lt;BR /&gt;&lt;BR /&gt;-HTH&lt;BR /&gt;Ramesh</description>
    <pubDate>Tue, 02 Oct 2001 19:12:57 GMT</pubDate>
    <dc:creator>linuxfan</dc:creator>
    <dc:date>2001-10-02T19:12:57Z</dc:date>
    <item>
      <title>/etc overwrite</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/etc-overwrite/m-p/2588597#M32559</link>
      <description>I had a question about /etc/fstab a little while ago and it was answered, thank you, but I did not realize the big problem.  &lt;BR /&gt;&lt;BR /&gt;Yesterday, our /etc directory was over written from another box(identical and both running 11.00).  Initially I was having a problem getting into SAM(error: 7159, sam.log saying that the filesystem isn't mounted).  Realized that the fstab was overwritten, semi-fixed that, but there are other things that I need to look for that I don't know about.&lt;BR /&gt;&lt;BR /&gt;Example: /etc/rc.config.d/netconf  IP address and hostname needed to be changed.  What else is out there that could bite me in the you know where?  Presently I can not connect to the HP box from my PC when I use the correct IP address.  However, if I login to our production box and rlogin to the test box(the one with the problem), it will allow me to login.</description>
      <pubDate>Tue, 02 Oct 2001 18:53:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/etc-overwrite/m-p/2588597#M32559</guid>
      <dc:creator>Jeff Hagstrom</dc:creator>
      <dc:date>2001-10-02T18:53:02Z</dc:date>
    </item>
    <item>
      <title>Re: /etc overwrite</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/etc-overwrite/m-p/2588598#M32560</link>
      <description>As for the telnetting problem, looks like you IP/default route is screwed up. &lt;BR /&gt;&lt;BR /&gt;As for losing /etc...geeze :-)&lt;BR /&gt;&lt;BR /&gt;The few critical files that I can think of are the following:&lt;BR /&gt;&lt;BR /&gt;/etc/fstab&lt;BR /&gt;/etc/hosts&lt;BR /&gt;/etc/sudoers&lt;BR /&gt;/etc/shells&lt;BR /&gt;/etc/passwd&lt;BR /&gt;/etc/profile&lt;BR /&gt;/etc/group&lt;BR /&gt;/etc/nsswitch.conf&lt;BR /&gt;/etc/resolv.conf&lt;BR /&gt;&lt;BR /&gt;And you'll have to recreate /etc/lvmtab (using vgscan) and hopefully you didn't have any printers defined because they might be lost (they should be in /etc/lp).&lt;BR /&gt;&lt;BR /&gt;-Santosh</description>
      <pubDate>Tue, 02 Oct 2001 19:06:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/etc-overwrite/m-p/2588598#M32560</guid>
      <dc:creator>Santosh Nair_1</dc:creator>
      <dc:date>2001-10-02T19:06:57Z</dc:date>
    </item>
    <item>
      <title>Re: /etc overwrite</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/etc-overwrite/m-p/2588599#M32561</link>
      <description>/etc/ was overwritter?  Oh boy!&lt;BR /&gt;&lt;BR /&gt;You do have a backup of your system don't you?  Perhaps an Ignite/UX make_tape_recovery tape?  I would be tempted to restore /etc from whatever form of backup you have.</description>
      <pubDate>Tue, 02 Oct 2001 19:11:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/etc-overwrite/m-p/2588599#M32561</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2001-10-02T19:11:57Z</dc:date>
    </item>
    <item>
      <title>Re: /etc overwrite</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/etc-overwrite/m-p/2588600#M32562</link>
      <description>Hi Jeff:&lt;BR /&gt;This is not meant to be a complete list but here goes:&lt;BR /&gt;&lt;BR /&gt;/etc/passwd&lt;BR /&gt;/etc/group&lt;BR /&gt;/etc/hosts&lt;BR /&gt;/etc/hosts.equiv&lt;BR /&gt;/etc/inetd.conf&lt;BR /&gt;/etc/services&lt;BR /&gt;/etc/lvmrc&lt;BR /&gt;/etc/lvmtab ---&amp;gt; really serious&lt;BR /&gt;/etc/fstab&lt;BR /&gt;/etc/mnttab&lt;BR /&gt;/etc/rc.config.d/*&lt;BR /&gt;/etc/nsswitch.conf&lt;BR /&gt;if running DNS server: /etc/named.data/*&lt;BR /&gt;if a ServiceGuard Node: /etc/cmcluster/*&lt;BR /&gt;&lt;BR /&gt;If it were me, I would restore from backup to /etc2 and then do a cksum on each file and copy the file into /etc if needed.&lt;BR /&gt;&lt;BR /&gt;P.S. Don't do this no more!&lt;BR /&gt;&lt;BR /&gt;Regards, Clay</description>
      <pubDate>Tue, 02 Oct 2001 19:12:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/etc-overwrite/m-p/2588600#M32562</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2001-10-02T19:12:00Z</dc:date>
    </item>
    <item>
      <title>Re: /etc overwrite</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/etc-overwrite/m-p/2588601#M32563</link>
      <description>Hi Jeff,&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;The best thing would be to recover it from a a backup.&lt;BR /&gt;&lt;BR /&gt;If that is not an option you will have to atleast update/recreate the following files (AFAIK)&lt;BR /&gt;hosts&lt;BR /&gt;passwd&lt;BR /&gt;group&lt;BR /&gt;nsswitch.conf&lt;BR /&gt;resolv.conf&lt;BR /&gt;fstab  (recreate)&lt;BR /&gt;lvmtab (recreate)&lt;BR /&gt;rc.config.d is a directory which contains config files which get sourced during startup, you will have to check if everything is ok there&lt;BR /&gt;/etc/cmcluster - MC/SG if you use service guard&lt;BR /&gt;ntp.conf - for NTP&lt;BR /&gt;mail - (/etc/mail contains all your sendmail config/aliases, not sure if you updated any but if you did, you will make sure you make those changes)&lt;BR /&gt;&lt;BR /&gt;Some of the sample files are available in /usr/newconfig/etc, you can copy them and modify them.&lt;BR /&gt;&lt;BR /&gt;As far as recreating the /etc/lvmtab is concerned , you could do a vgscan -p -v (man vgscan) and if everything is ok run vgscan -v which would recreate the lvmtab file.&lt;BR /&gt;&lt;BR /&gt;You definitely will have to update /etc/rc.config.d/netconf and modify the ip address and the hostname.&lt;BR /&gt;&lt;BR /&gt;I may have missed some, but i still think the better option is to do a restore.&lt;BR /&gt;&lt;BR /&gt;-HTH&lt;BR /&gt;Ramesh</description>
      <pubDate>Tue, 02 Oct 2001 19:12:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/etc-overwrite/m-p/2588601#M32563</guid>
      <dc:creator>linuxfan</dc:creator>
      <dc:date>2001-10-02T19:12:57Z</dc:date>
    </item>
    <item>
      <title>Re: /etc overwrite</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/etc-overwrite/m-p/2588602#M32564</link>
      <description>Santosh has a good list.&lt;BR /&gt;Also, check the rest of /etc/rc.config.d/netconf, especially the route information.  Do a netstat -nr to check the routes on your server to make sure they are correct.  Otherwise you probably need to edit netconf some more.</description>
      <pubDate>Tue, 02 Oct 2001 19:14:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/etc-overwrite/m-p/2588602#M32564</guid>
      <dc:creator>Bernie Vande Griend</dc:creator>
      <dc:date>2001-10-02T19:14:19Z</dc:date>
    </item>
    <item>
      <title>Re: /etc overwrite</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/etc-overwrite/m-p/2588603#M32565</link>
      <description>Hi jeff&lt;BR /&gt;Before you reboot your system make sure your external disk configuration is OK. &lt;BR /&gt;&lt;BR /&gt;run set_parms command and change IP, hostname networks etc..&lt;BR /&gt;#set_parms initial (This will reboot your system)&lt;BR /&gt;&lt;BR /&gt;When system will comeup you will have more work to do&lt;BR /&gt;/etc/nsswitch.conf, resolv.conf, named.conf, and much more.&lt;BR /&gt;&lt;BR /&gt;Just to change a IP address &lt;BR /&gt;#vi /etc/rc.config.d/netconf (change information regarding ip and route)&lt;BR /&gt;#/sbin/rc2.d/S340net stop&lt;BR /&gt;#/sbin/rc2.d/S340net start&lt;BR /&gt;&lt;BR /&gt;Sachin</description>
      <pubDate>Tue, 02 Oct 2001 19:15:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/etc-overwrite/m-p/2588603#M32565</guid>
      <dc:creator>Sachin Patel</dc:creator>
      <dc:date>2001-10-02T19:15:56Z</dc:date>
    </item>
    <item>
      <title>Re: /etc overwrite</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/etc-overwrite/m-p/2588604#M32566</link>
      <description>Hi again:&lt;BR /&gt;&lt;BR /&gt;The more I think about this, I think your best bet is to restore from backup in single user mode. If you are using Omniback or some other utility that requires you to be in a higher run level, I would restore to an alternate directory and then go to single user. I would then mv /etc /etc/.old and mv /etc2 /etc and reboot.&lt;BR /&gt;&lt;BR /&gt;Regards and good luck, Clay</description>
      <pubDate>Tue, 02 Oct 2001 19:17:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/etc-overwrite/m-p/2588604#M32566</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2001-10-02T19:17:25Z</dc:date>
    </item>
    <item>
      <title>Re: /etc overwrite</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/etc-overwrite/m-p/2588605#M32567</link>
      <description>Hi Jeff,&lt;BR /&gt;&lt;BR /&gt;Check your /etc/inetd.conf file.&lt;BR /&gt;&lt;BR /&gt;Also you may have to recreate the /etc/lvmconf directory, because it now contains information about the VGs from the other machine.&lt;BR /&gt;&lt;BR /&gt;for i in $(ls -1d /dev/vg*)&lt;BR /&gt;do&lt;BR /&gt;vgcfgbackup $i&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;-Regards&lt;BR /&gt;Ramesh</description>
      <pubDate>Tue, 02 Oct 2001 19:17:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/etc-overwrite/m-p/2588605#M32567</guid>
      <dc:creator>linuxfan</dc:creator>
      <dc:date>2001-10-02T19:17:28Z</dc:date>
    </item>
    <item>
      <title>Re: /etc overwrite</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/etc-overwrite/m-p/2588606#M32568</link>
      <description>Hi Jeff:&lt;BR /&gt;&lt;BR /&gt;Since this is a test box that has the problem, I'd get my Ignite recovery tape and cold-install it; if nothing else it's good practice.&lt;BR /&gt;&lt;BR /&gt;I think otherwise you may spend more time correcting and verifying key configuration files than this is worth.  Consider that you will need to be relatively positive that you have a correct configuration before you boot, not only from the standpoint of a network configuration, but from the standpoint of LVM when volume groups are first activated and filesystems are first mounted.&lt;BR /&gt;&lt;BR /&gt;At least, this was a test server!&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Tue, 02 Oct 2001 19:25:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/etc-overwrite/m-p/2588606#M32568</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2001-10-02T19:25:47Z</dc:date>
    </item>
    <item>
      <title>Re: /etc overwrite</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/etc-overwrite/m-p/2588607#M32569</link>
      <description>James is right...you're probably better off just re-igniting/re-installing the server than trying to restore and reconstruct all the files that were damaged.  There are far too many thinks to worry about, i.e. getting all the file and then making sure the permissions are right, etc. that its probably just better to start from scratch.&lt;BR /&gt;&lt;BR /&gt;-Santosh</description>
      <pubDate>Tue, 02 Oct 2001 19:33:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/etc-overwrite/m-p/2588607#M32569</guid>
      <dc:creator>Santosh Nair_1</dc:creator>
      <dc:date>2001-10-02T19:33:44Z</dc:date>
    </item>
  </channel>
</rss>

