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

Multiple Disk Usage


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
saurabhkhandelwal

New User


Joined: 19 Mar 2008
Posts: 14
Location: noida

PostPosted: Fri Dec 19, 2008 11:50 am
Reply with quote

Hi ,
I have a doubt ..
while writing JCL sometimes we allocate space to a dataset created as :
//JSTEP2 EXEC PGM=SORT
//SORTIN DD DSN=L.L8033.DGFILE.SIBSORT,DISP=OLD
//SORTOUT DD DSN=L.L8033.DGFILE.MERGSIBL,
// DISP=(NEW,CATLG,DELETE),
// DCB=(RECFM=FB,LRECL=430,BLKSIZE=0),
// UNIT=(DISK,3),SPACE=(CYL,(2000,500),RLSE)
//SYSOUT DD SYSOUT=*
//SYSIN DD *
OPTION COPY
/*

So what is the significance of using multiple disk and how the space is being allocated to the dataset created in this case .

Regards ,
Saurabh Khandelwal
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Fri Dec 19, 2008 11:58 am
Reply with quote

Hello,

The posted UNIT specification allows the allocation to span over 3 physical volumes.

There is extensive information about the space parameter here:
publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/handheld/Connected/BOOKS/iea2b650/12.55?

That link goes directly to the space parameter. In the same book, is all of the other jcl info including the UNIT specification.

If you find something in the documentation that is not clear, post what you found and your question about it. Someone will be able to clarify.
Back to top
View user's profile Send private message
saurabhkhandelwal

New User


Joined: 19 Mar 2008
Posts: 14
Location: noida

PostPosted: Fri Dec 19, 2008 12:32 pm
Reply with quote

Hi.
My concens was when we are allocating three disk to a dataset ,
so whatever the number if cylinders are specified for it , is it distributed among the three volumes or it is defined specifically for all the three volumes..ie ( cyl * 3 ) ..

dick scherrer wrote:
Hello,

The posted UNIT specification allows the allocation to span over 3 physical volumes.

There is extensive information about the space parameter here:
publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/handheld/Connected/BOOKS/iea2b650/12.55?

That link goes directly to the space parameter. In the same book, is all of the other jcl info including the UNIT specification.

If you find something in the documentation that is not clear, post what you found and your question about it. Someone will be able to clarify.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Fri Dec 19, 2008 12:36 pm
Reply with quote

Hello,

You might allocate the total mentioned in the space parameter and it might be allocated across 3 dasd devices. You would not get the allocation times 3.
Back to top
View user's profile Send private message
mmwife

Super Moderator


Joined: 30 May 2003
Posts: 1592

PostPosted: Fri Dec 19, 2008 7:37 pm
Reply with quote

Another point to remember when you're calculating space is that you can get up to a maximum of 500 CYL of 2ndary space (from your example) 16 times for EACH of the additional vols, as well as the usual max of 15 times 500 for the 1st vol.

Doing the math for the JCL you provided, SORTOUT dataset could contain a max of 25,500 CYL:
Code:


 2000      PRIMARY
 7500      VOL 1   2NDARY
16000      VOL 2-3 2NDARY
--------   -------------------
25500      TOTAL
Back to top
View user's profile Send private message
saurabhkhandelwal

New User


Joined: 19 Mar 2008
Posts: 14
Location: noida

PostPosted: Mon Dec 22, 2008 10:32 am
Reply with quote

Hi ..
So according to you , as per my example [ (2000,500) ] ,
The Primary cylinders will be allocated to three volumes and in case of secondary cylinders the distribution will be :
15*500 = 7500 , for 1st CYL.
16*500 = 8000 , for 2nd CYL
16*500 = 8000 , for 3rd CYL .

This is what you are saying and could you please clarify me the reason of such calculations while assigning maltiple disks.
And what is the maximum number of multipe disk that can be assigned to a dataset.

mmwife wrote:
Another point to remember when you're calculating space is that you can get up to a maximum of 500 CYL of 2ndary space (from your example) 16 times for EACH of the additional vols, as well as the usual max of 15 times 500 for the 1st vol.

Doing the math for the JCL you provided, SORTOUT dataset could contain a max of 25,500 CYL:
Code:


 2000      PRIMARY
 7500      VOL 1   2NDARY
16000      VOL 2-3 2NDARY
--------   -------------------
25500      TOTAL
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Mon Dec 22, 2008 10:57 am
Reply with quote

Hello,

Quote:
The Primary cylinders will be allocated to three volumes
It will not use 3 devices for the primary allocation. It will depend on what space is available when the allocation is attempted as to whether the primary can be met in one extent. (Corrected 12/22) - d.)

Quote:
in case of secondary cylinders the distribution will be :
15*500 = 7500 , for 1st CYL.
16*500 = 8000 , for 2nd CYL
16*500 = 8000 , for 3rd CYL .
I am confused by the reference to 1st, 2nd, and 3rd CYL. The 15/16/16 is also not clear. Keep in mind that specifying 3 volumes may be used does not request the space * 3. It only allows the original space request to be spread across multiple volumes.


Quote:
And what is the maximum number of multipe disk that can be assigned to a dataset.
Suggest you talk with your storage management people or system support people for the local rules that have been implemented.
Back to top
View user's profile Send private message
gcicchet

Senior Member


Joined: 28 Jul 2006
Posts: 1702
Location: Australia

PostPosted: Mon Dec 22, 2008 11:28 am
Reply with quote

Hi Dick,

when allocating space across multiple volumes, the primary space is allocated to 1st volume only, 2nd and 3rd volume will use the secondary space allocation if required.

so vol1 will use 1 primary and 15 secondary extents
vol2 will use 16 secondary extents
vol3 will use 16 secondary extents

That's assuming each primary and secondary space allocation uses 1 extent.

Gerry
Back to top
View user's profile Send private message
gcicchet

Senior Member


Joined: 28 Jul 2006
Posts: 1702
Location: Australia

PostPosted: Mon Dec 22, 2008 11:33 am
Reply with quote

Hi Dick,

I think the reference to 1st 2nd and 3rd cyl should be VOL1 VOL2 & VOL3.


Gerry
Back to top
View user's profile Send private message
UmeySan

Active Member


Joined: 22 Aug 2006
Posts: 771
Location: Germany

PostPosted: Mon Dec 22, 2008 3:37 pm
Reply with quote

Hi gcicchet !

If i remember, when using multiple volumes for allocating space, first the needed space for the DSN is allocated at the first volume. Primary first, then secondary. Then, when more space is needed, alloction is done to the next volume. And here, the primary space is also allocated first.

When using multiple volumes, make shure, that the size of the primary space is available on every disk you use.

If I'm mistaken and there is somthing new about that, perhaps SMS does something automatically, i think enrico-sorichetti will correct me.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Mon Dec 22, 2008 4:11 pm
Reply with quote

DASD space allocations .........

Gerry is correct in saying that only the secondary allocation value will be used on volumes other than the first.

So assuming that all allocations can be satisfied in a single extent, 1st volume will contain 1x200 + 15*500 = 9,500 cyinders. 2nd and other volumes = 16*500 = 8000 cylinders.

The maximum number of cylinders that you may allocate using (2000,500) over three volumes is 25,500.

However, each and every allocation, primary or secondary may be satisfied in up to 5 physical extents, which will seriously reduce the amount of space that will be allocated.

e.g. primary allocation of 2000 cylinders uses 5 physical extents, 1st secondary allocation of 500 cyinders uses 5 physical extents, 2nd secondary allocation of 500 cylinders uses 5 physical extents. This means that you have used 15 physical extents and only allocated 3,000 cylinders. And given the same scenario on volumes two and three where each allocation uses 5 physical extents we have 3,000 + 1,500 + 1,500 = 6,000 cylinders allocated.

The more fragmented your DASD, the less chance of getting large contiguous physical extents.

Unfortunately a lot of wannabe storage people think that with the advent of virtual DASD the need to reorganise volumes has disappeared. This is not the case as although the DASD is virtual it is still mapped as if it were physical DASD including all of the old constraints of classic DASD.
Back to top
View user's profile Send private message
UmeySan

Active Member


Joined: 22 Aug 2006
Posts: 771
Location: Germany

PostPosted: Mon Dec 22, 2008 4:52 pm
Reply with quote

Hi !

I apologize !!!

Only secondary allocations will be used on volumes other than the first.
I just investegated the subject at Use [URL] BBCode for External Links.

Sorry, i have to update some essentials.

Have a nice x-mas !!!
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Mon Dec 22, 2008 8:33 pm
Reply with quote

Quote:
when allocating space across multiple volumes, the primary space is allocated to 1st volume only, 2nd and 3rd volume will use the secondary space allocation if required.
Yup, got ahead of myself icon_redface.gif Thanks for the correction.

I've edited my mis-information above as well.

d
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 -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts INCLUDE OMIT COND for Multiple values... DFSORT/ICETOOL 5
No new posts Replace Multiple Field values to Othe... DFSORT/ICETOOL 12
No new posts Multiple table unload using INZUTILB DB2 2
No new posts CA Disk LISTD SQL CA Products 1
No new posts Grouping by multiple headers DFSORT/ICETOOL 7
Search our Forums:

Back to Top