Delphix Toolkits (dxToolkit and dxmToolkit)

Expand all | Collapse all

How to use -mapfile option in dx_provision_vdb utility

Matthew Griffith

Matthew Griffith06-22-2018 07:52:00 AM

  • 1.  How to use -mapfile option in dx_provision_vdb utility

    Posted 06-19-2018 10:57:00 AM

    I am trying to use -mapfile option under dx_provision_vdb utility, where I need to have below replacements/mappings. But it is keep failing. I don't find any suitable example to refer. Please suggest how that works?

    Requirement is to replace "/oracle/ora01/s12102b" with "/ora01" which I have placed as below in a file and passing as parameter- 
    -------mapfile----- 
    /oracle/ora01/s12102b:/ora01

    command : 
    -------------- 
    ./dx_provision_vdb [other parameters] -mapfile /opt/oracl/emapfile 

    Problem with mapping file. VDB won't be created. at script/dx_provision_vdb.pl line 446.

    #dxToolkit


  • 2.  RE: How to use -mapfile option in dx_provision_vdb utility

    Posted 06-19-2018 12:25:00 PM
    Hi Sushil,

    There's a typo in your mapfile reference.  Is that a copy paste error or are you actually defining it like that?

    /opt/oracl/Emapfile - the E is after the oracl/

    If that is not the issue be sure you have no hidden carriage returns or Windows-to-Unix character issues.


  • 3.  RE: How to use -mapfile option in dx_provision_vdb utility

    Posted 06-19-2018 12:30:00 PM
    Hi Matt,

    Thats a typo while drafting this post, sorry for that. But I am trying correct file path in the command.

    Thanks,
    Sushil


  • 4.  RE: How to use -mapfile option in dx_provision_vdb utility
    Best Answer

    Posted 06-19-2018 02:53:00 PM
    I've tested it myself Sushil and I get the same issue.  I've looked at the code and the format of our mapfile is correct.  There may be a bug here.

    Maybe Marcin is around to take a look?


  • 5.  RE: How to use -mapfile option in dx_provision_vdb utility

    Posted 06-21-2018 07:02:00 AM
    Hello 
    I will take a look on that. Sushil could you please run this command with -debug 3 option, than zip a new created folder debug_[enginename] and send attach here ?

    What version of Delphix Engine are you using ?

    regards,
    Marcin


  • 6.  RE: How to use -mapfile option in dx_provision_vdb utility

    Posted 06-21-2018 02:26:00 PM
    Hi Marcin,

    I am trying to attache the debug logs but not finding attachment option here.

    Regards,
    Sushil


  • 7.  RE: How to use -mapfile option in dx_provision_vdb utility
    Best Answer

    Posted 06-21-2018 02:29:00 PM
    Hi,

    Could  you please create issue in github and upload logs there ?

    https://github.com/delphix/dxtoolkit/issues

    or please upload it into upload.delphix.com and let me know a file name.

    regards,
    Marcin


  • 8.  RE: How to use -mapfile option in dx_provision_vdb utility

    Posted 06-21-2018 02:33:00 PM
    Hi Marcin,

    I ran with -debug 3 option and uploaded debug log for your review.
    upload.delphix.com File name : debug_cdxprd806.tar.gz uploaded.

    DE version is 5.2.4.0
    Please review and let me know if you need any further details to troubleshoot.

    Thanks,
    Sushil


  • 9.  RE: How to use -mapfile option in dx_provision_vdb utility
    Best Answer

    Posted 06-21-2018 04:40:00 PM
    Hello,

    I found an issue - this is a bug in dxtoolkit, introduced after API changes.
    I have created an issue in github - please monitor it when this issue will be resolved.

    https://github.com/delphix/dxtoolkit/issues/50

    I hope to do it in next dxtoolkit release. If this issue is urgent please contact your Delphix CSM 
    to discuss it.

    regards,
    Marcin


  • 10.  RE: How to use -mapfile option in dx_provision_vdb utility

    Posted 06-22-2018 07:52:00 AM
    Thanks for the confirmation Marcin.


  • 11.  RE: How to use -mapfile option in dx_provision_vdb utility

    Posted 06-22-2018 11:49:00 AM
    Thanks Marcin to look into it and to create follow-up request.
    We are trying to automate provision process in our environment, where file mapping is a mandatory requirement.
    I will inform to CSM about this issue.
    Is it possible to provide next estimated Release dates (approx) of dxtoolkit?

    Thanks,
    Sushil


  • 12.  RE: How to use -mapfile option in dx_provision_vdb utility
    Best Answer

    Posted 06-29-2018 11:06:00 AM
    Hello

    I fixed bug in the code. 
    I'm going to build a new release shortly. What OS are you using ? I will prioritize a build for it .

    regards,
    Marcin


  • 13.  RE: How to use -mapfile option in dx_provision_vdb utility

    Posted 06-29-2018 11:43:00 AM
    Hi Marcin,

    Thank you for the quick action.
    We are using Enterprise Linux 6 & 7 for the most of environments
    Also we have Solaris 10 in use.
    Please let me know when it is ready to use and thanks for prioritizing it.

    Regards,
    Sushil



  • 14.  RE: How to use -mapfile option in dx_provision_vdb utility
    Best Answer

    Posted 06-29-2018 04:20:00 PM
    Hi,

    RH 6 and 7 version of fixed toolkit is ready to download.

    https://github.com/delphix/dxtoolkit/releases/tag/v2.3.6

    Let me know if this is working for you

    regards,
    Marcin


  • 15.  RE: How to use -mapfile option in dx_provision_vdb utility

    Posted 07-02-2018 01:08:00 PM
    Hi Marcin,

    This works great! 
    Thank you for providing the fix quickly, this will be really helpful. I appreciate it.
    Whenever you get chance please provide solaris version as well.

    Thank you!

    Regards,
    Sushil