Appendix I -- Ezra system management
This information is for the older EZRA SPARCstation
***NOTICE*** Like everything in UNIX, file and directory names are case
sensitive. Hence ``/h/scman/sc10/Ezconfig'' is not the same as
``/h/scman/sc10/ezconfig''.
Some basic parameters of the system are listed in
Table A.1.
Table A.1: Ezra Parameters
System name :
Network address :
Floppy device name : /dev/fd0
Internal Drive device name : /dev/sd1a (not connected)
External Drive device name : /dev/sd1a; /dev/sd1g; /dev/sd1h
CD-ROM device name : /dev/sr0
Exabyte device name : /dev/nrst0
Internal Disk capacity :
External Disk capacity :
Exabyte drive capacity :
Cass Cage PC name :
Cass Cage PC address :
The time of ezra's system clock is recorded in the log files
and FITS headers, so it is useful to synchronize it to the
observatory UT clock (although the UT directly from the telescope
computer is also saved in the FITS headers). Use the Unix
date command for this. Use the su command
to become root, then enter
root# date 9602011020
to set the system clock to 1996 Feb 1, 10:20 UT, for example.
Here we describe how to copy an SC-10 source code update from a
floppy to Ezra's hard disk, then recompile it.
- Log in as ``scuser''. Run OpenWindows and open a command tool.
- Set the user to scman by typing
scuser> su scman
and entering the password.
- Change to the directory /h/scman. The subdirectory sc10
holds all the SC-10 related source code in a series of subdirectories.
- Save the source code already on disk
until the new code has been successfully compiled and run. To do this
move the current sc10 directory to a new name. For example
scman> mv sc10 sc10.Nov92
renames the existing sc10 directory with code from November
1992 to
sc10.Nov92.
If this reports an error, the file and directory ownerships may not be set
correctly. The sc10 directory and all its subdirectories must have their
owners set as scman, and you must be user scman to manipulate them. You can
inspect file and directory ownership using the command ls -l. If
the ownerships seem wrong, consult the system manager.
- Put the floppy disk with the new source code into the disk drive.
- Mount the floppy and its UNIX file system by typing
scman> fdunix
If the mount command returns a ``read-only file system'' error, the floppy might
be write protected. Move the write-protect tab to the write-enable position.
If you still get errors, try nudging the floppy more firmly into the drive
(ezra's floppy drive is somewhat finicky at times).
- Look at the floppy disk file system by typing
scman> cd /fdunix
scman> ls
You should see a directory lost+found, indicating you are really
looking at the floppy directories. Change directory again to get to the
SC-10 source code subdirectory. An ls now will show several
more subdirectories such as Acq and Disp.
- Copy the files onto the hard disk by executing
scman> cp -r * /h/scman/sc10
The -r stands for recursive, so the subdirectories and all their
contents will be copied.
- Change directory back to /h/scman/sc10 and verify that the
directory structure now matches what was on the floppy.
- Unmount the floppy and eject it from the drive with
scman> fdeject
- You should see a file Makefile in /h/scman/sc10.
Recompile the entire SpectroCam software package via
scman> make
- The make procedure puts all the executable files in
/h/scman/sc10/bin.
Look at this directory when make is done to verify the executables
are present. When you are confident the program is running as expected, at
least delete the executables in the [new directory]/bin backup
directory you made.
Unfortunately, the ezra workstation occasionally trashes the /usr
partition on its hard drive, which contains the basic Unix and OpenWindows
system needed for it to run. If this happens, the partition can be
restored from tape with the following procedure. It is highly
recommended the restoration be attempted only after consulting with T. Hayward
because this description has not been rigorously verified and even a small mistake
could lead to the reformatting of the
/h disk partition where SpectroCam data are written.
- Connect the CD-ROM drive to the SCSI chain if it is not already present.
- Find the SunOS CD-ROM disk and ezra dump tape, stored in red toolbox and/or
gray cabinet in the Cornell lab.
- Power up the system if necessary, press L1 A.
- Type "n" to get "OK" prompt.
- Put the SunOS CDROM in the drive.
- Boot from CD-ROM with "boot sd(0,6,2)".
- Choose (1) from menu to load mini root. Do not reformat.
- Reboot at end of mini root procedure.
- Rebuild the sd1g file system with "newfs /dev/rsd1g".
- Make a new directory with "mkdir /mntu".
- Mount the sd1g partition with "mount /dev/sd1g /mntu".
- Change to the /mntu directory with "cd /mntu".
- Put the ezra dump tape into the tape drive.
- Skip to the second tape file with "mt -f /dev/nrst0 fsf 1".
- Restore the partition with "restore rf /dev/nrst0". This takes
about 35 minutes.
- Reboot by typing "reboot".
The partition should now be completely restored. You can log in as
scuser, start openwindows, and run the SC-10 programs. Note that the
SC-10 software is stored on the /h partition and should not be affected
by the reinstallation.