OK... let's summarize so that anyone searching the IBMVM-L archives can 
find a more updated and comprehensive set of steps to adding a paging 
volume to z/VM.   Everyone does search the archives before asking 
questions, right!!?

FYI: the IBMVM-L listserve archive can be searched from any browser at: 
http://listserv.uark.edu/archives/ibmvm.html
That is an incredible tool!  And it is FREE!

Thanks to Rich Corak, Jonathan Quay, Richard Schuh, and Mark Wheeler for 
their updates to my off-hand non-exhaustive list, posted just before I had 
to venture off for a meeting.  It's a pity that there's not an indexed 
shortcut sample procedure like this in the "CP Planning and 
Administration" manual to which one could be easily pointed.  The same 
question comes up over and over again.  Not everyone has decades of z/VM 
experience.

1) Ensure that you have a RESERVED slot on a CP_Owned DASD, enter: 
          CP Query CPOWNed
   If none of those displayed bear the Status: Reserved
   then you cannot add a PAGE volume dynamically.  The best you can do is 
   update "SYSTEM CONFIG" on MAINT's CF1 (and perhaps CF2, CF3) disk to
   include additional "Reserved" slots.
 
   To ensure that you have slots available to use with the DEFINE CPOWNED 
command, 
   place a:
          CP_Owned   Slot  255  RESERVED 
   statement at the end of your CP_Owned statements in SYSTEM CONFIG. This 
will cause 
   all 255 slots (unless otherwise specified) as RESERVED.  That is 
probably a 
   **GOOD THING** thing for every z/VM sysprog do right now, before an 
urgent need!

   If you did not have any spare RESERVED SLOTs, you may continue these 
steps, but
   the new page volume will not come online until the next IPL.

2) Find an available DASD volume accessible to your z/VM system.

3) Find/decide on an unused DASD label (volser) for the soon-to-be paging 
volume.

4) Run CPFMTXA against that DASD, formatting the whole DASD (0 - END),
   assigning the label as decided above, and allocating
   - Cylinder  0 (zero) as PERM, and
   - Cylinders 1-END as PAGE.

   In a production environment, there are major performance benefits to 
allocating whole
   DASD to PAGE and SPOOL areas -- *not* sharing them with other 
allocation usage.

   Strictly speaking, defining cyl 0 as perm is unnecessary for modern 
releases of z/VM.
   But one cylinder of "unused" space is cheap when compared to 
accidentally formatting
   that volume's Cylinder 0, thus wiping out the existing Allocation 
Bitmap - especially
   if you do not have documentation on what it had been!  Call it a "Best 
Practice" -
   even Chuckie has publically agreed with doing this.
 
5) Update the "SYSTEM CONFIG" file on MAINT's CF1 disk using whatever
   procedures you already use.  E.g.
   - Find a free CP_OWNed 'SLOT', change that to match the new page
     DASD volser, and mark that as CP-"OWN"ed. 
     E.g. if "volser" is "VMPG01" and slot 11 is not already assigned:
         CP_Owned   Slot 11   VMPG01     OWN

6) File "SYSTEM CONFIG", and run CPSYNTAX against the updated "SYSTEM 
CONFIG"
   file to check for errors.

7) From the userid that formatted/allocated the new paging DASD, enter:
         CP DETach rdev

8) Absent any errors, bring the volume online to CP by entering:
         CP ATTach rdev SYSTEM
   There is no need for 'CP START DASD rdev PAGE'.  CP START DASD is 
nothing more than undrain.
   If you haven't done DRAIN, don't bother with START.

>From page-constrained to paging-easy in 8 easy steps - Version 1.4  :-)


Mike Walter
Hewitt Associates
The opinions expressed herein are mine alone, not my employer's.

Listserve search arguments: 
dynamically add a page DASD, add a page volser, add a page slot, add page 
space,
on-the-fly add page volume procedures




The information contained in this e-mail and any accompanying documents may 
contain information that is confidential or otherwise protected from 
disclosure. If you are not the intended recipient of this message, or if this 
message has been addressed to you in error, please immediately alert the sender 
by reply e-mail and then delete this message, including any attachments. Any 
dissemination, distribution or other use of the contents of this message by 
anyone other than the intended recipient is strictly prohibited. All messages 
sent to and from this e-mail address may be monitored as permitted by 
applicable law and regulations to ensure compliance with our internal policies 
and to protect our business. E-mails are not secure and cannot be guaranteed to 
be error free as they can be intercepted, amended, lost or destroyed, or 
contain viruses. You are deemed to have accepted these risks if you communicate 
with us by e-mail. 

Reply via email to