2005-10-08
Solaris 9 'Power management'
I had another Solaris 9 learning experience today: I came in to find my ssh sessions to my Ultra 10 test machine dead, because the machine was powered off. This was more than a little bit disconcerting, since the last thing I had left it doing was installing the current Solaris 9 patch set. (It took sufficiently long that I'd had to go home before it finished.)
Powering the machine on showed not a normal boot sequence, but a message about restoring the system. This caused me to remember that when I had installed the system, I'd said yes to an offer to have 'power management' software installed. (Unfortunately the installer does not have very many clear explanations of what the software packages all do.)
In the PC world I usually operate in, 'power management' is things like spinning down disks and dropping into low-power CPU states when the machine is idle. In the SPARC world, it turns out that 'power management' is turning the machine off entirely.
Fortunately I was able to find the dtpower program after some quick
Googling. Unfortunately dtpower doesn't run over a ssh X connection
for some reason, so I had to fire up dtlogin, log in, and run it to
shut this feature off. (There is probably a way to fire up the X
server and the environment from a console login, but starting
dtlogin was faster than trying to figure it out.)
(This whole episode is my fault, not Solaris 9's. I should have read the documentation before firing up the installer, and certainly before answering installer questions I didn't fully understand. But at least I've stubbed my toe on this now, in case I ever have to deal with Sparcs that mysteriously power themselves off every so often.)
2005-10-06
First irritations with Solaris 9
As with Fedora Core 4, I haven't been using Solaris 9 long enough to have given it a fair shake. So instead of any sort of review, this is just a collection of things that have irritated me about it on first exposure.
I'll start with a nice simple one:
#useradd -m -c 'Chris Siebenmann' cks
UX: useradd: ERROR: Unable to create the home directory: Operation not applicable.
This is on a default configured Solaris 9 machine, straight out of the 'take more or less the defaults' install. Is it too much to ask that the apparent best way to add users from the command line actually works?
(The reason this fails is that /home, the location of nominal user
home directories, is actually an automounter setup. But useradd
doesn't know about this. Whoops. For extra bonus fun, you actually have
to make an entry in the /etc/auto_home automounter map to get things
to work.)
Installer irritations:
- the installer asked me to reinsert a CD-ROM it had already asked for
(Solaris 9 Software disk 2, after the documentation). This is just
sloppy; you should be able to order your entire install series so
it asks for each CD-ROM only once.
- practically every time it had me swap CD-ROMs, it stopped to prompt
me if I really wanted things from the CD-ROM installed. This was
despite walking me through an entire earlier 'what stuff do you want
installed' step that led it to wanting those CD-ROMs.
- periodically it would pop up a dialog about continuing in 30 seconds
if I did nothing, or I could continue right away, or I could pause.
The first time I rolled my eyes and clicked 'Continue'. The next
time I realized that this dialog was obscuring a lower dialog with
informative options that I might wish to inspect and perhaps change.
- having previously wanted the sort of interaction normally seen in
needy young children, the installer decided to automatically reboot
at the end.
Update: mea culpa; this one is my fault. Right near the start, the Solaris 9 installer asks you if you want to automatically reboot at the end. (Then you are asked sixty zillion other questions so you forget this.)
I'd criticize the installer for not looking very pretty, but it was running on an 8 bit deep framebuffer. (Probably not a very fast one, either. Ultra-10s are not where you go if you want even 1998-era PC graphic basics, like 32-bit colour.)
Then there's the small issue of patch installer error messages, which are lovely things like:
Installation of 117067-01 failed. Return code 2.
[...]
Installation of 112233-12 failed. Return code 8.
Neither are helpful error messages. Does one or both of them mean that it's a patch not applicable to this system? Does one or both of them mean that something important has gone wrong during patch installation?
(It appears that return code 2 means 'update already installed' and return code 8 means 'this update isn't applicable to your system'. But to find this out I had to read the detailed error log. It would not have killed Sun to print an actually useful error message instead of 'Return code N'.)