Solaris 10 - copying a disk and changing host parameters

Recently I had a need to copy a T2000's master hard drive in order to make three other hosts.
It's too much work to set up a boot and install server for just three hosts,
yet there's very little documentation on what needs to change on the
copied hard drive in order to make it unique.  I assume you've already 
copied the hard drive and now you have in your new host a drive that
needs to be changed somehow so it will run in a different host.
This is a very brief list but it is complete.  Do these steps when
booted to single-user.

Network Management Port

You can use the network management port remotely, or the console
management port if you're local.  In order to use the network management
port for the first time you have to connect to the serial console management
port, set the password for the "admin" user, then set up some network parameters.

sc> setsc netsc_dhcp false sc> setsc netsc_ipaddr <ip-address> sc> setsc netsc_ipnetmask <ip-netmask> sc> setsc netsc_ipgateway <ip-gateway> sc> resetsc sc> shownetwork sc> poweron sc> console Break at the right time, then at the ok prompt type boot -s. (Wait until you see Ethernet address .... then quickly type: #. break -c and you should be at the {0} ok prompt, where you can type boot -s.)

Configuring system while booted single-user

Change host's name in /etc/hostname.e1000g0 Change host's name and IP in /etc/inet/hosts Change time server in /etc/inet/ntp.conf Change host's name in /etc/nodename Change defaultrouter in /etc/defaultrouter hostname <name of host> Change /zserialnumber to be the SysSN listed on the chassis. mv /var/crash/<old hostname> to /var/crash/<new hostname> dumpadm -s /var/crash/<new hostname> Reboot to multiuser mode.

Configuring system when booted multi-user mode

If you have SUNWsneep installed, then poke the chassis serial number into NVRAM: /opt/SUNWsneep/bin/setcsn -c <chassis sn> /opt/SUNWsneep/bin/sneep to check if it made it there. Register the system with Sun, for patch access. /usr/bin/updatemanager (GUI-based, so better be tunning X through ssh) Enter your username, password, and Sun contract number. Then, take the usual steps to install patches.

Applying the T2000 firmware patch

I also apply the T2000 firmware update patch to the chassis, currently patch 136927-04. Instructions are in the patch - basically unzip the patch in /tmp, mkdir /tmp/images cd /tmp/136927-04 cp sysfwdownload Sun_System_Firmware-6_6_5-SPARC_Enterprise_T2000.bin ../images cd ../images ./sysfwdownload Sun_System_Firmware-6_6_5-SPARC_Enterprise_T2000.bin (Wait 10 minutes for it to copy to NVRAM) # shutdown -i0 {0} ok #. sc> poweroff sc> showkeyswitch (must not be LOCKED) sc> flashupdate -s sc> resetsc Reconnect to the net mgmt port because you will close your ssh connection with the resetsc command. sc> poweron sc> console -f

Configuring T2000 to auto-reboot after power outage

Note: The T2000 (and other modern Sun servers) will not auto-reboot automatically when the power fails, or if some other recoverable errors occur. You must configure them to auto-reboot. This is called Automatic System Recovery. For the T2000: 1) At the sc> prompt, type: sc> setsc diag_mode normal sc> setsc diag_level max sc> setsc diag_trigger power-on-reset error-reset sc> setsc sc_powerondelay true sc> setsc sc_powerstatememory true 2a) At the ok prompt, type: ok setenv auto-boot? true ok setenv auto-boot-on-error? true or 2b) When logged in as root: # cd /usr/platform/`uname -i`/sbin # ./eeprom (to view the settings) # ./eeprom auto-boot?=true # ./eeprom auto-boot-on-error?=true 3) If you did 2a, above, then to cause the parameter changes to take effect, type: ok reset-all I don't think it's necessary to perform a reset-all if you did 2b instead.

Configuring T2000 to send email alerts to a local mail server

sc> setsc if_emailalerts true sc> setsc mgt_mailhost <IP address of mail server> sc> setsc mgt_mailalert sa 3 (means emails are addressed to the alias "sa" on the mail server at severity level 3 (informational)) To verify you've set the parameters, use the showsc command.

T2000: To poke the property number into the ALOM CMT

sc> setsc sc_customerinfo <property number of host>

T2000: To blink the service light on/off

sc> setlocator on sc> showlocator sc> setlocator off

T2000: To erase the ALOM password (and all your other settings)

1. Connect to the serial management port. 2. Power down the server. Unplug power to the chassis for several seconds, then connect power. 3. Press the Escape key during ALOM boot when the following text is displayed on the console: Boot Sector FLASH CRC Test Boot Sector FLASH CRC Test, PASSED. Return to Boot Monitor for Handshake After pressing the Escape key, the ALOM boot escape menu is printed: ALOM <ESC> Menu e - Erase ALOM NVRAM. m - Run POST Menu. R - Reset ALOM. r - Return to bootmon. Your selection: 4. Enter e to erase the ALOM NVRAM. Your selection: e ALOM NVRAM erased. ALOM <ESC> Menu e - Erase ALOM NVRAM. m - Run POST Menu. R - Reset ALOM. r - Return to bootmon. Your selection: 5. Enter r to return to the ALOM boot process. ALOM then boots and resets all NVRAM settings. You are automatically logged on as user admin with no password and no permissions. All ALOM NVRAM settings are reset to the factory defaults.

Solaris 10 workstation - enabling screen saver

For some reason Solaris 10 - SPARC doesn't come with the login screen saver enabled. mkdir -p /etc/dt/config cp /usr/dt/config/Xsetup /etc/dt/config cd /etc/dt/config Edit Xsetup, and after the lines: # # Reset Xserver font path to its default values # $XDIR/xset fp default Put in: # # Reset Xserver screen blank to 5 minutes # $XDIR/xset s 300 # # Have to reboot to get it to take.
Back to homepage
Last update: 21-Oct-2008