IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

SMF swap dataset at IPL


IBM Mainframe Forums -> All Other Mainframe Topics
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
BernardMein

New User


Joined: 12 Nov 2008
Posts: 5
Location: Springfield MA

PostPosted: Fri Nov 14, 2008 3:28 am
Reply with quote

Does anyone know why the SMF datasets would be swapped after an IPL?

We use the standard of two SMF datasets per LPAR and have automated most of the SMF processing (ie dumping the datasets when they're full).
Let's say an LPAR is about to be brought down and IPLed, and one SMF dataset has a state of ALTERNATE and the other is ACTIVE at 1% full.
Let's say that the result of the system being brought down and the subsequent IPL creates 9% more SMF data. After the IPL, the state of the SMF datasets now shows one as ACTIVE and the another as DUMP REQUIRED. The one with DUMP REQUIRED is only 10% full.

Why does SMF or MVS close the SMF dataset that is only 10% full? I don't know if the closing of the SMF dataset occurs when the system is brought down or brought back up.

Thanks
Back to top
View user's profile Send private message
Bill Dennis

Active Member


Joined: 17 Aug 2007
Posts: 562
Location: Iowa, USA

PostPosted: Fri Nov 14, 2008 3:37 am
Reply with quote

I've noticed that at IPL the system always switched to the first SMF dataset. Never saw it documented as to why.
Back to top
View user's profile Send private message
nevilh

Active User


Joined: 01 Sep 2006
Posts: 262

PostPosted: Fri Nov 14, 2008 6:18 pm
Reply with quote

when the system is stopped normally the operators will do a Z EOD this will write the smf buffers and issue a close amongst other things
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Fri Nov 14, 2008 6:59 pm
Reply with quote

I'm not finding any documentation on it, but I did an IPL yesterday and the system went through and verified each SMF dataset in reverse order. Once the verifies were done, the first file started being used for recording. I suspect the system automatically starts with the first SMF dataset no matter which was being used before the IPL.
Back to top
View user's profile Send private message
BernardMein

New User


Joined: 12 Nov 2008
Posts: 5
Location: Springfield MA

PostPosted: Fri Nov 14, 2008 7:57 pm
Reply with quote

Thank you everyone,
I checked the procedures of our Operations staff and sure enough the "Z EOD" command is there. The IBM documentation for this HALT command isn't clear about the use of the first SMF dataset, as one sentence indicates always switching to the first dataset and another indicates switching to the ALTERNATE dataset; I'll check the logs following the IPLs over the weekend. It's nice to have a cause (and understanding) associated with the SMF state at IPL.
Thanks.
Back to top
View user's profile Send private message
Bill Dennis

Active Member


Joined: 17 Aug 2007
Posts: 562
Location: Iowa, USA

PostPosted: Fri Nov 14, 2008 8:04 pm
Reply with quote

We rarely went throught the formal shutdown of "Z EOD" but our system always went back to the first dataset anyway.
Back to top
View user's profile Send private message
nevilh

Active User


Joined: 01 Sep 2006
Posts: 262

PostPosted: Fri Nov 14, 2008 9:55 pm
Reply with quote

The following is a taken from the SYSTEM COMMANDS manual
Quote:
The information gathered by SMF and user-written exit routines is recorded
on direct access volumes in one of the SMF data sets. These data sets,
called primary and secondary data sets, must be online at system
initialization. At that time, SMF uses the primary data set as the active
recording data set unless it is full. If the primary data set is full, SMF
checks each data set in the order it is listed until it finds one that is
not full. SMF then uses this data set as the active recording data set and
requests that the operator dump all data sets that are not empty.

Which seems to say that it will use the primary dataset unless it is full
Back to top
View user's profile Send private message
Srinivasa Rao

New User


Joined: 21 Jun 2005
Posts: 75

PostPosted: Sat Nov 15, 2008 12:54 pm
Reply with quote

SMF datasets are defined to collect statistical information. When active dataset is full at time of shutdown after issuing Z EOD the system will switch the datasets. This is done by an exit defined in the system. The switch is based on the message IEE362A using the command "I SMF".

But in our system we defined it in automation different from exit.
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Sat Nov 15, 2008 1:03 pm
Reply with quote

we do know what SMF datasets are and the dataset full logic icon_biggrin.gif

the thread is about the dataset selection logic at IPL time

ROTATE mode, use the next one available
or use he first available

rotate would seem a better choice, is more forgiving of operation errors
if a dump is not taken at the proper time SMF data is not mixed up
( in other words an SMF dump will contain contiguous timestamps only )
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> All Other Mainframe Topics

 


Similar Topics
Topic Forum Replies
No new posts FINDREP - Only first record from give... DFSORT/ICETOOL 3
No new posts Map Vols and Problem Dataset All Other Mainframe Topics 2
No new posts Allocated cylinders of a dataset DB2 12
No new posts Sort First/last record of a subset th... DFSORT/ICETOOL 7
No new posts Reading dataset in Python - New Line ... All Other Mainframe Topics 22
Search our Forums:

Back to Top