cancel
Showing results for 
Search instead for 
Did you mean: 

Problem on LCMbiar script BO 4.1

05-09-2018 12:52 PM
2963 views 16 comments
0 Likes
SAP Managed Tags
Subscribe

lcmbiar.jpgHello,

We use a script to do a backup BIAR, the script works well on QA servers, but in the prod does not execute correctly, it leaves the tomporary files, and the output file is wrong,

Thank you in advance for your help,

Regards,

0 Likes

Accepted Solutions (0)

Answers (3)

Answers (3)

ayman_salem
Active Contributor

After the second look at your screenshot and your script, I see that your question about the generated biar file, and about rename it.

Your script only renames the first one and not others.

...

First, the generated biar files are correct, the biar file has a limit size. When it is reached, a new file (segment) with the number at the end of the file name is created (ex. 1,2,3, and so on). in your case: Temp_Export, Temp_Export1, .... Temp_Export8

In the first biar file (without number) there is a file "segmentManifest.txt" containing the entire name of the segment biar files.

and if you import it later, just type in the name of the biar file with no numbers, and the program will know other segment files from "segmentManifest.txt"

...

so, renaming after creating the biar files will not be a good idea.

However, you can include the name with a date in your options.properties or move the biar files to another directory that has a corresponding name (with date)

Former Member
0 Likes

We test the same scripte on QA same data like prod and we have one file, we donte know why we have those temp file, and I tired to import Temp_Export to vérify the to check the contents of the biar file i got an error message

ayman_salem
Active Contributor
0 Likes

It depends on how many / size of the documents are stored on your system.

and as I mentioned earlier, when the size of the backup file exceeds the limit, a new file is created and so on.

Therefore, you have many files on Prod for one backup.

....

Another tip: Since LCMCLI needs a temporary space to work (about 3-4 times the size of the entire backup), make sure you have enough space for the java tmp directory.

You can control the location of the Java tmp directory by adding -Djava.io.tmpdir=path/to/tmp to your run command.

also, increase the heap size (ex. -Xmx2g)

Former Member
0 Likes

biar2.jpg

erreur-biar.jpg

this is the error mesage we dont know why ?

denis_konovalov
Active Contributor
0 Likes

sounds like you are exporting very large number of objects or they are quite big, so the engine is creating multi-part lcmbiar archive. (which is normal)
The promotion management GUI is not going to be able to import this, you'll need to use CLI as well.

My suggestion is to reduce exports to smaller sets.
or use proper backup, not this...

ayman_salem
Active Contributor
0 Likes

Hi Souhail,

1. it is better to use the lcm.jar instead of biarengine.jar

you can find the script to run it:

windows: ...\SAP BusinessObjects Enterprise XI 4.0\win64_x64\scripts\lcm_cli.bat

linux: ..../sap_bobj/lcm_cli.sh

2. add -Djava.io.tmpdir=path/to/tmp to the script to control the used tmpdir. (As I mentioned earlier).

3. try to reduce the backup size to smaller one (adapt Query in options.properties).

4. When you import it, you can use CLI or Promotion Management in CMC.

but consider:

First, if you have BI4.1, you can not select one or more objects from the backup, the entire backup will be imported.

Second, if you use the Promotion Management in CMC to import the Backup, you must first customize the adaptive server that contains the "Promotion management service" (in "Command Line Parameter", add -Djava.io.tmpdir and increase the heap size, for example -Xmx8g).

......

Finally, as Denis mentions, you are on the safe side with additional CMS DB/FRS backups

denis_konovalov
Active Contributor
0 Likes

How are you going to import those BIAR's back , since Promotion management doesn't support BIAR format and UMT can't import BIAR from same version ?
Also, if you depending on this type of backup - you will be in for a big surprise when you need to restore. Please use a proper CMS DB/FRS backups.

Former Member
0 Likes

This is the scripte that we use : scripte.jpg

Former Member
0 Likes

Can you please tell me the download link of SAPLCM_CLI Package

denis_konovalov
Active Contributor
0 Likes

what package is that ?

Former Member
0 Likes

On this link you can find all information of this package : https://archive.sap.com/documents/docs/DOC-68783

just the below download link dosn't working,

Former Member
0 Likes

the objectif is to have a LCMBIAR backup, our scripte dosn't work correctly on prod but on QA is working fine can you please assiste us to find why we have this issue, now we dont have any buckup 😞 so it's critical on PROD

denis_konovalov
Active Contributor
0 Likes

that is a script by a community member, so you have to ask him for it. Looks like he hasn't updated his profile, so is listed as Former member.

Again - if you are basing your backup strategy on lcmbiar - you are doing it wrong. It can be a supplemental piece, but it cannot replace proper backup.

And again - you need to use lcm cli functionality, not biarengine.
Review this pattern book , and you'll be able to make your own script :

https://www.sap.com/documents/2017/03/ea02bd5e-b17c-0010-82c7-eda71af511fa.html

ayman_salem
Active Contributor
0 Likes

Check for sufficient space on your "C" and "D" drives

Former Member
0 Likes

Thank you for your quick respoonse, the disck space is sufficient 12Go