System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

Corrupt smh - Missing /etc/sam/reg_tm.db

PHSC
Frequent Advisor

Corrupt smh - Missing /etc/sam/reg_tm.db

Greetings

 

Issue with smh on an Integrity rx6600 server running HPUX BOE 11.31.1209

 

SMH does not work correctly. For example, If you go info smh>Accounts for users>Users, the following error occurs:

 

""The SAM file registration database, /etc/sam/reg_files.db, either is missing, cannot be opened, or is empty. This is usually caused by running SAM on a system that is not configured to run SAM. If this is the case, please use swconfig(1M) to configure the "SystemAdmin.SAM" fileset. Command Unsuccessful""

 

Yet this fileset is configured (did a swconfig anyway with no joy):

 

* Configured SystemAdmin.OBAM-RUN,l=/,r=B.11.31
* Configured SystemAdmin.SAM,l=/,r=B.11.31
NOTE: Volatile file "/etc/sam/reg_tm.db" missing.

 

If you match the /etc/sam directory to that from a similar server, there are three files issues

 

-r--r--r-- 1 bin bin 0 Oct 19 2012 reg_files.db                     # well, file is present but 0 size
-r--r--r-- 1 bin bin 229 Nov 30 2012 reg_dirs.db                    # file not present

-r--r--r-- 1 bin bin 35903 Nov 30 2012 reg_tm.db                    # file not present

 

I have no clues as to how long smh has been like this on this server.  Anyone any idears how you get these 'db' files back?

 

Thanks

1 REPLY
PHSC
Frequent Advisor

Re: Corrupt smh - Missing /etc/sam/reg_tm.db

Just tried a swconfig reconfigure (on a test server) and it rebuilt the files in question:

 

swconfig -x reconfigure=true SystemAdmin.SAM

 

-r--r--r-- 1 bin bin 3072 Jun 16 15:40 reg_da.db
-r--r--r-- 1 bin bin 229 Jun 16 15:40 reg_dirs.db
-r--r--r-- 1 bin bin 5449 Jun 16 15:40 reg_files.db
-r--r--r-- 1 bin bin 35903 Jun 16 15:40 reg_tm.db

 

So...i'll give this a try on the live server (after raising a darn change request).