How to manually sys-unconfig when single-user mode not an option?

From: John Christian (john.christian@TheCReGroup.com)
Date: Tue Aug 10 2004 - 10:55:09 EDT


How to manually sys-unconfig when single-user mode not an option?

Hi Gurus,

QUESTION
 Although sys-unconfig is great, due to remote-site limitations
 (no console) I cannot reboot into single user mode to input new
 hostname/IP/etc... settings, what are *ALL* of the little things
 sys-unconfig touches that I would need to manually modify before
 initiating a reboot?

 BTW: I am currently running on another disk/OS-install than the
 one I plan to modify then reboot from. See "Additional Details"
 further below.

RESEARCH SO FAR
 According to sys-unconfig man page, the following files are
 involved. Most are straightforward, but I'm not familiar with
 some:
 Comfortable changing these...
  /etc/default/init
  /etc/defaultdomain
  /etc/defaultrouter
  /etc/hostname.interface
  /etc/inet/hosts
  /etc/inet/netmasks
  /etc/nodename
  /etc/shadow
  /etc/vfstab
  /var/nis/NIS_COLD_START
  /var/yp/binding/*/ypservers
 Not so sure about mucking around with these...
  /etc/net/*/hosts
  /etc/.rootkey
 Other files or areas not mentioned in the man page that will
 cause trouble?
  /?/?/???

ADDITIONAL DETAILS
 E-450 SunOS 5.9 Generic_112233-08 sun4u sparc SUNW,Ultra-4

 I've been asked to duplicate a remote E-450 onto another
 remote E-450. Unfortunately, I do *not* have console access.
 I am running on disk0 of the E450 I'm building (default
 install of Solaris 9). I have created the boot block and
 restored the root file system of the original server onto
 disk1 of the new E450 (also Solaris 9).

 The original server is still online. IF I were on-site, I
 would disconnect the new 450 from the network, boot up as the
 original host, sys-unconfig (auto-reboot into single user
 mode), assign name/IP/etc, reboot and connect back to network.
 But I'm not on-site and don't have console access.

 Since I have the new root filesystem mounted, I *can* go in and
 manually modify /etc/hosts and other files to the new settings,
 use the eeprom command to set the host to boot from this newly
 ufsrestored slice, and reboot. (Actually, I'll set boot-device
 to "disk1 disk0" in case disk1 doesn't work.)

AGAIN, MY QUESTION IS
 Since I cannot reboot into single user mode to input new
 hostname/IP/etc... settings, what are *all* of the little things
 sys-unconfig touches that I would need to manually modify before
 initiating a reboot?

TIA for tips. I will summarize useful info.
-John Christian
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:29:15 EDT