I found in the BRMS manual that the BRMS select device API lets you select a device to allocate or deallocate, or to select search values such as location and media class to locate and allocate an available device for BRMS media input or output operations.
Well, I don't understand very well how and when to use it.
For example, I have 2 tape drives available TAP01 and TAP02.
Either in my Backup Policy, I can specifiy TAP01 or TAP02 in the device to use for my backup or I can specify also *MEDCLS.
The issue if I use *MEDCLS, if I run 2 backup jobs, TAP01 will be used by the 1st job and the second job will also try to use TAP01 and failed because TAP01 is already in use by the 1st job.
Does this API can be run before starting the job to specify which tape drive to use ?
Does anyone already used this API and how ?
Thanks for your hints and your help.
This topic has been locked.
9 replies Latest Post - 2012-06-13T18:41:13Z by SystemAdmin
Pinned topic BRMS Select Device (Q1ASLTDEV) API
Answered question This question has been answered.
Unanswered question This question has not been answered yet.
Updated on 2012-06-13T18:41:13Z at 2012-06-13T18:41:13Z by SystemAdmin
Re: BRMS Select Device (Q1ASLTDEV) API2012-06-13T14:33:19Z in response to Pierre_LGHi Pierre, if both tape drives are varied on, and you are using *MEDCLS, it should use the next tape drive.
If the drives are not varied on, you can change the description in WRKDEVBRM to say that theya re shared drives and then BRMS will vary them on at the start of the save and then vary them off after the save is complete.
Shared device . . . . . . . . . *YES
Shared device wait . . . . . 30
Re: BRMS Select Device (Q1ASLTDEV) API2012-06-13T14:47:20Z in response to SystemAdminMervyn,
Unfortunately, if I specify *MEDCLS as device, the first job will use TAP01 and will start correctly.
When I launch the second job from the same LPAR (job1 is still running), it will also try to use TAP01 and failed !!!
I've tried having both drives VARY ON and also having both drives VARY OFF and configured as shared !
It used to work in older version of BRMS but with V6R1, I have the following error:
CPF5729 Diagnostic 40 08/06/12 10:09:54.275304 Q1AC0BK QBRM *STMT QCMD QSYS 01C8
From module . . . . . . . . : Q1AC0BK
From procedure . . . . . . : Q1AC0BK
Statement . . . . . . . . . : 468
Message . . . . : Not able to allocate object TAP00.
Cause . . . . . : Object TAP00 is being used by another job. If the object
is a device, then the device is not varied on or is in use by another job.
Recovery . . . : Use the WRKOBJLCK command to determine what job has a
lock on the object. Use the VRYCFG command to vary the configuration on if
necessary. When the object is available, try the request again.
Re: BRMS Select Device (Q1ASLTDEV) API2012-06-13T15:07:58Z in response to Pierre_LGHi Pierre, I just tested this on my R610 system and it works. Do you have the latest BRMS PTF applied?
Re: BRMS Select Device (Q1ASLTDEV) API2012-06-13T15:15:47Z in response to SystemAdminMervyn,
The PTF applied are dated of March 2012...
One remark, the Tape Drives are standalone tape drives (not in IBM library)
Did you test it with Tape drives within a library ?
Thanks for your support.
Re: BRMS Select Device (Q1ASLTDEV) API2012-06-13T15:37:10Z in response to SystemAdminYes, I tested with both devices VARY ON and I also tested with both devices varied off with definition shared to *YES.
Both devices are listed in WRKDEVBRM.
I added the device manually in BRMS... so I'll give a try running INZBRM *DEVICE.
Just to make sure, you have only specify 1 time *MEDCLS in the Backup Devices definition ?
I don't need to specify 2 times *MEDCLS in this definition ?