How to use -mapfile option in dx_provision_vdb utility

  • 1
  • 1
  • Question
  • Updated 4 months ago
  • Answered

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.
Photo of Sushil Krishn

Sushil Krishn

  • 160 Points 100 badge 2x thumb

Posted 4 months ago

  • 1
  • 1
Photo of Matt Griffith

Matt Griffith

  • 458 Points 250 badge 2x thumb
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.
Photo of Sushil Krishn

Sushil Krishn

  • 160 Points 100 badge 2x thumb
Hi Matt,

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

Thanks,
Sushil
Photo of Matt Griffith

Matt Griffith

  • 458 Points 250 badge 2x thumb
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?
Photo of fMarcin Przepiorowski

fMarcin Przepiorowski, Employee

  • 670 Points 500 badge 2x thumb
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
Photo of Sushil Krishn

Sushil Krishn

  • 160 Points 100 badge 2x thumb
Hi Marcin,

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

Regards,
Sushil
Photo of fMarcin Przepiorowski

fMarcin Przepiorowski, Employee

  • 670 Points 500 badge 2x thumb
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
Photo of Sushil Krishn

Sushil Krishn

  • 160 Points 100 badge 2x thumb
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
(Edited)
Photo of fMarcin Przepiorowski

fMarcin Przepiorowski, Employee

  • 670 Points 500 badge 2x thumb
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
Photo of Matt Griffith

Matt Griffith

  • 458 Points 250 badge 2x thumb
Thanks for the confirmation Marcin.
Photo of Sushil Krishn

Sushil Krishn

  • 160 Points 100 badge 2x thumb
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
Photo of fMarcin Przepiorowski

fMarcin Przepiorowski, Employee

  • 670 Points 500 badge 2x thumb
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
Photo of Sushil Krishn

Sushil Krishn

  • 160 Points 100 badge 2x thumb
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
Photo of fMarcin Przepiorowski

fMarcin Przepiorowski, Employee

  • 670 Points 500 badge 2x thumb
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
Photo of Sushil Krishn

Sushil Krishn

  • 160 Points 100 badge 2x thumb
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