Operating System - HP-UX
1834020 Members
2799 Online
110063 Solutions
New Discussion

cstm - SwitchLog - curent log file does not exist

 
SOLVED
Go to solution
Ratzie
Super Advisor

cstm - SwitchLog - curent log file does not exist

We had a bunch of errors from a drive that failed awhile back and when I do a rs (raw summury) it still listed to i/o errors from the drive.

I wanted to start clean so I did a SwitchLog
Which I assumed would switch to a new raw log.

Now when I run raw summary I get:
Logtool Utility>rs
-- Logtool Utility INFORMATION --
A current raw log file does not exist to use as the default selected file.
You must select an existing file using either Select Raw or Select Formatted
as appropriate from the File menu.

Will a new raw file be created if an error happens.

I can view the old by:
sr
Then list the old raw file
log4.raw

What I was thinking is that a new log5.raw should have been created.

Am I missing something...
3 REPLIES 3
Ermin Borovac
Honored Contributor
Solution

Re: cstm - SwitchLog - curent log file does not exist

I believe that new current file (/var/stm/logs/os/log#.raw.cur) will be created as needed. As far as I can see SwitchLog only moves current file away (you could have done the same thing with mv); it doesn't initialise or start new current file.
Andrew Merritt_2
Honored Contributor

Re: cstm - SwitchLog - curent log file does not exist

Ermin is right, the switchlog just backs up the old log. A new raw log is created the next time an entry needs to be written.

Andrew
Ratzie
Super Advisor

Re: cstm - SwitchLog - curent log file does not exist

Thanks guys