View previous topic :: View next topic
|
Author |
Message |
saurabhkhandelwal
New User
Joined: 19 Mar 2008 Posts: 14 Location: noida
|
|
|
|
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 |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
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 |
|
|
saurabhkhandelwal
New User
Joined: 19 Mar 2008 Posts: 14 Location: noida
|
|
|
|
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 |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
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 |
|
|
mmwife
Super Moderator
Joined: 30 May 2003 Posts: 1592
|
|
|
|
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 |
|
|
saurabhkhandelwal
New User
Joined: 19 Mar 2008 Posts: 14 Location: noida
|
|
|
|
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 |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
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 |
|
|
gcicchet
Senior Member
Joined: 28 Jul 2006 Posts: 1702 Location: Australia
|
|
|
|
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 |
|
|
gcicchet
Senior Member
Joined: 28 Jul 2006 Posts: 1702 Location: Australia
|
|
|
|
Hi Dick,
I think the reference to 1st 2nd and 3rd cyl should be VOL1 VOL2 & VOL3.
Gerry |
|
Back to top |
|
|
UmeySan
Active Member
Joined: 22 Aug 2006 Posts: 771 Location: Germany
|
|
|
|
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 |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
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 |
|
|
UmeySan
Active Member
Joined: 22 Aug 2006 Posts: 771 Location: Germany
|
|
|
|
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 |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
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 Thanks for the correction.
I've edited my mis-information above as well.
d |
|
Back to top |
|
|
|