Amanda-Users

Re: PLEASE DISREGARD FOUND THE PROBLEM-amcheck error on local server

2009-05-20 16:38:15
Subject: Re: PLEASE DISREGARD FOUND THE PROBLEM-amcheck error on local server
From: Chris Hoogendyk <hoogendyk AT bio.umass DOT edu>
To: amanda-users AT amanda DOT org
Date: Wed, 20 May 2009 16:30:02 -0400


Dustin J. Mitchell wrote:
On Wed, May 20, 2009 at 3:13 PM, Peter Kunst <peter.kunst AT swissrisk DOT com> 
wrote:
Whenever this happens again on Solaris 10, not getting a service out of
maintenance mode even when amanda logs say all is ok, it might help to
remove/delete this service and create it from scratch.

I've traced one of those issues down to some kind of sqlite stuff
getting confused (which is used by smf(5) IMHO).

This is good info.  Robert or Peter, do you want to add it to the
wiki?  I feel like we should have a more extensive "Amanda on Solaris"
section, but I'm certainly unqualified to write it..

Solaris 10 is a whole new ball of wax for a sysadmin.

I've created a number of services, but still have a lot to learn. One important thing to note is the whole chain of dependencies and run levels that affect a service. You can write a simple service that has no (or claims no) dependencies, but that isn't really the way they are supposed to work. It's sort of like building error checking and pre-conditions into code.

Just as an example, I cloned a system this week by replicating the boot drive, moving the drive to another system, and replicating that back over the boot drive. Then boot off CD and edit all the /etc identity stuff. I forgot to remove some entries from /etc/vfstab where the first system had a larger collection of drives. It booted up and none of the services came up. It turns out that the file system is a dependency for the multi-user run level, which in turn is a dependency for many of the services. So, the extra file systems, that I didn't need, ended up blocking all the services. On a Solaris 9 system, that would have just flown by.

You can see the full list of dependencies for a service by doing `svcs -l <service name>`. Of course, that's recursive. Some of those might have dependencies as well. It's sort of like tracking the loading of libraries and their dependencies with ldd.

--
---------------

Chris Hoogendyk

-
  O__  ---- Systems Administrator
 c/ /'_ --- Biology & Geology Departments
(*) \(*) -- 140 Morrill Science Center
~~~~~~~~~~ - University of Massachusetts, Amherst
<hoogendyk AT bio.umass DOT edu>

---------------
Erdös 4