Topic
  • 9 replies
  • Latest Post - ‏2012-06-13T18:41:13Z by SystemAdmin
Pierre_LG
Pierre_LG
19 Posts

Pinned topic BRMS Select Device (Q1ASLTDEV) API

‏2012-06-13T09:43:18Z |
Hello,

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.

Best regards,
Updated on 2012-06-13T18:41:13Z at 2012-06-13T18:41:13Z by SystemAdmin
  • SystemAdmin
    SystemAdmin
    353 Posts

    Re: BRMS Select Device (Q1ASLTDEV) API

    ‏2012-06-13T14:33:19Z  
    Hi 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

    Thanks
    Mervyn
  • Pierre_LG
    Pierre_LG
    19 Posts

    Re: BRMS Select Device (Q1ASLTDEV) API

    ‏2012-06-13T14:47:20Z  
    Hi 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

    Thanks
    Mervyn
    Mervyn,
    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.
  • SystemAdmin
    SystemAdmin
    353 Posts

    Re: BRMS Select Device (Q1ASLTDEV) API

    ‏2012-06-13T15:07:58Z  
    • Pierre_LG
    • ‏2012-06-13T14:47:20Z
    Mervyn,
    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.
    Hi Pierre, I just tested this on my R610 system and it works. Do you have the latest BRMS PTF applied?
    https://www.ibm.com/developerworks/mydeveloperworks/wikis/home?lang=en#/wiki/IBM%20Backup%2C%20Recovery%20and%20Media%20Services%20%28BRMS%29%20for%20i/page/Latest%20PTFs

    Thanks
    Mervyn
  • Pierre_LG
    Pierre_LG
    19 Posts

    Re: BRMS Select Device (Q1ASLTDEV) API

    ‏2012-06-13T15:15:47Z  
    Hi Pierre, I just tested this on my R610 system and it works. Do you have the latest BRMS PTF applied?
    https://www.ibm.com/developerworks/mydeveloperworks/wikis/home?lang=en#/wiki/IBM%20Backup%2C%20Recovery%20and%20Media%20Services%20%28BRMS%29%20for%20i/page/Latest%20PTFs

    Thanks
    Mervyn
    Mervyn,

    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.
  • SystemAdmin
    SystemAdmin
    353 Posts

    Re: BRMS Select Device (Q1ASLTDEV) API

    ‏2012-06-13T15:24:37Z  
    • Pierre_LG
    • ‏2012-06-13T15:15:47Z
    Mervyn,

    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.
    Hi Pierre , yes I tested these on standalone drives.

    Are they both varied on? Are they both listed in WRKDEVBRM?

    Can you run a INZBRM *DEVICE and then test again.

    Thanks
    Mervyn
  • Pierre_LG
    Pierre_LG
    19 Posts

    Re: BRMS Select Device (Q1ASLTDEV) API

    ‏2012-06-13T15:37:10Z  
    Hi Pierre , yes I tested these on standalone drives.

    Are they both varied on? Are they both listed in WRKDEVBRM?

    Can you run a INZBRM *DEVICE and then test again.

    Thanks
    Mervyn
    Yes, 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 ?

    Regards,
  • Pierre_LG
    Pierre_LG
    19 Posts

    Re: BRMS Select Device (Q1ASLTDEV) API

    ‏2012-06-13T15:39:16Z  
    • Pierre_LG
    • ‏2012-06-13T15:37:10Z
    Yes, 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 ?

    Regards,
    Last question, what is the BRMS log file where I can see the allocation ?
    So I can show you the logs ?

    Regards,
  • SystemAdmin
    SystemAdmin
    353 Posts

    Re: BRMS Select Device (Q1ASLTDEV) API

    ‏2012-06-13T15:39:21Z  
    • Pierre_LG
    • ‏2012-06-13T15:37:10Z
    Yes, 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 ?

    Regards,
    Hi Pierre, correct, you only have to specify it once.

    Thanks
    Mervyn
  • SystemAdmin
    SystemAdmin
    353 Posts

    Re: BRMS Select Device (Q1ASLTDEV) API

    ‏2012-06-13T18:41:13Z  
    Hi Pierre, correct, you only have to specify it once.

    Thanks
    Mervyn
    Hi Pierre, there is no BRMS file for this. You need to run this command:
    WRKCFGSTS CFGTYPE(*DEV) CFGD(TAP*)

    Thanks
    Mervyn