VMware Cloud Community
alize77
Contributor
Contributor

ESX - CA Backup failed!!!

I follow the steps mentioned on CA docs to install and configure the Linux CA but whenever I tried to backup the VM, it will indicate "Failed to Open .....". It can't seems to open the vmdk-flat file and I thought the pre & post backup script from CA is use to ensure that the backup is able to run and create a snapshot of the VM while it's running.

1) Install Linux CA on ESX server

2) Copy the script file from CA media and edit the uag.cfg file

3) Open port to allow 6050/6051, tcp/udp, in/out

4) Add machine in CA Backup server

As I'm new to this, hope that someone can advise me if I miss out any steps. Thanks in advance!

0 Kudos
26 Replies
virag2k
Contributor
Contributor

Check if you have given execute permissions to pre and post perl script files on ESX Server.

If not, you can do so by running the following command in CA Universal Agent folder (default path is /opt/CA/BABuagent)

chmod 755 *

Let us know if this resolves your problem

Thanks,

Vivek

0 Kudos
alize77
Contributor
Contributor

Now I encounter a different error.

BrightStor ARCserve Backup -- Backup

Job No....................... 5

Job ID....................... 811

Description.................. FNSESX03 DMZ

Workstation.................. FNSESX03_DMZ ( 10.65.0.25 )

Source....................... /vmfs

Target....................... 9/12/07 8:53 AM, ID 481D, Sequence #1

Session...................... 3

Start Time................... 9/12/07 9:09 AM

Session Method............... Full

AW300131 E300131: E9033 Failed to open file /vmfs/volumes/46b6a3c6-17fe9706-2891-00145ebc17be/IPLSER01/IPLSER01_2-flat.vmdk

AW300131 E300131: E9033 Failed to open file /vmfs/volumes/46b6a3c6-17fe9706-2891-00145ebc17be/IPLSER01/IPLSER01_3-flat.vmdk

AW300131 E300131: E9033 Failed to open file /vmfs/volumes/46b6a3c6-17fe9706-2891-00145ebc17be/IPLSER01/IPLSER01-flat.vmdk

AW300131 E300131: E9033 Failed to open file /vmfs/volumes/46b6a3c6-17fe9706-2891-00145ebc17be/IPLSER01/IPLSER01-d1f8c53e.vswp

Total Directories............ 2

Total File(s)................ 12

Total Skip(s)................ 4

Total Size (Disk)............ 581.50 MB

Total Size (Media)........... 581.81 MB

Elapsed Time................. 12s

Average Throughput........... 2,909.06 MB/min

Total Error(s)/Warning(s).... 0/4

Totals For................... FNSESX03_DMZ ( 10.65.0.25 )

Total Session(s)............. 1

Total Directories............ 2

Total File(s)................ 12

Total Skip(s)................ 4

Total Size (Disk)............ 581.50 MB

Total Size (Media)........... 581.81 MB

Elapsed Time................. 12s

Average Throughput........... 2,909.06 MB/min

Total Error(s)/Warning(s).... 0/4

Totals For................... Job

Total Session(s)............. 1

Total Directories............ 2

Total File(s)................ 12

Total Skip(s)................ 4

Total Size (Disk)............ 581.50 MB

Total Size (Media)........... 581.81 MB

Elapsed Time................. 12s

Average Throughput........... 2,909.06 MB/min

Total Error(s)/Warning(s).... 0/4

Backup Operation Incomplete.

On my ESX, i got the msg "Can't use an undefined value as an ARRAY reference at /opt/CA/BABuagent/pre_backup.pl line 168, <$backup_list> line 6."

I thought the pre & post backup.pl file from CA work without the need to do any changes!

0 Kudos
PerryWhittle
Enthusiast
Enthusiast

you need to give the Arcserve agent rights to read the VMFS partition directly like so

grep vmfs /proc/mounts >> /etc/mtab

just out of interest what does your uag.cfg file look like?

BTW did you install manually or using the CA scripts (i found they failed)

#########################################

PS please award points if you find this useful Smiley Wink

Please rememeber to award points if you found this helpful or correct
0 Kudos
alize77
Contributor
Contributor

I have already ran the grep vmfs command prior the backup. In my uag.cfg file, I have entered the following line:

-P 2

-Prebackup /opt/CA/BABuagent/pre_backup.pl

-Postbackup /opt/CA/BABuagent/post_backup.pl

I copied the CA script from the CA SP3 media into the BABuagent folder.

Thanks!

0 Kudos
alecapella
Contributor
Contributor

I have the same problem in same situation you are. I'm working to try fix it while wait some tip.

Thanks

Alessandro

0 Kudos
tbrouwer
Hot Shot
Hot Shot

I have had these same problems, and have also fixed them.

First step is to change the -P 2 to -P 0 .

As noted in this thread make sure you have permissions for all the files needed.

If this does not work you will need to upgrade the agent ... I have the upgraded agent if anybody needs it.

Just to verify, you can backup the VM when it is switched off, correct?

0 Kudos
alecapella
Contributor
Contributor

Hi,

I can complete the backup if the virtual machine is turned off.

I changed the P parameter to 0. When I turn it on, no way! It does not work.

Do you have a new agent version? Where can I get it?

Follow my configuration parameters

-b 65536

-c 50

-s 65536

-P 0

-Prebackup /opt/CA/BABuagent/pre_backup.pl

-Postbackup /opt/CA/BABuagent/post_backup.pl

Thanks

Alessandro

0 Kudos
tbrouwer
Hot Shot
Hot Shot

I attached a zip with the updated files. Check the readme.txt in there and make sure you have all permissions set for each file ( I just did chmod 777 filename.xxx in the meantime just to get it working). Let me know how that goes!

0 Kudos
tbrouwer
Hot Shot
Hot Shot

Here is the actual link I got from CA tech support:

http://supportconnect.ca.com/sc/solcenter/sol_detail.jsp?aparno=QO87405&os=NT

It doesn't necessarily look like it would help our issue, but it did solve it for me.

0 Kudos
tbrouwer
Hot Shot
Hot Shot

Oh and one more thing...

Once I got it working with the updated agent, I was only able to backup one VM per job as the second/third/fourth/etc ones would fail. That when I changed the -P 2 to -P 0 and it solved that problem.

0 Kudos
alecapella
Contributor
Contributor

Thanks, I'm going to make a test right now!

0 Kudos
alecapella
Contributor
Contributor

It's working now!

I've just update the files with the zip you posted and it is working fine now!!!

Thank you very much! (Now my Friday's beer is certain and will be better Smiley Wink

0 Kudos
tbrouwer
Hot Shot
Hot Shot

Great, on that note, I better tip back a Friday beer as well!

Just a question, was this on an esx3.5 host? I am currently struggling to get the CA backup agent to work on my new 3.5 hosts

0 Kudos
alecapella
Contributor
Contributor

Hi,

No, my system is running on ESX 3.02 (with all patches)

Thanks!

0 Kudos
JasonInJersey
Contributor
Contributor

We're having similar issues on our 3.5 ESX host. I updated using the new scripts that were posted here (THANKS!!) and we get a complete backup. But after a test restore i still can't get the VM to fireup after i re-add to inventory. It just gives "File not found" error in VIC. Looking at the log for the VM itself on the host i see this in the vmware.log:

Jan 04 17:33:57.265: vmx| DISKLIB-VMFS : "/vmfs/volumes/47789c0b-f68ba42b-f245-0030487d1958/Linux Syslog Server/Linux Syslog Server-000001-delta.vmdk" : failed to open (25): AIOMgr_Open failed. Type 8+ Jan 04 17:33:57.265: vmx| DISKLIB-DSCPTR: Failed to open extents for descriptor file in normal mode Jan 04 17:33:57.265: vmx| DISKLIB-LINK : "/vmfs/volumes/47789c0b-f68ba42b-f245-0030487d1958/Linux Syslog Server/Linux Syslog Server-000001.vmdk" : failed to open (The system cannot find the file specified). Jan 04 17:33:57.265: vmx| DISKLIB-CHAIN : "/vmfs/volumes/47789c0b-f68ba42b-f245-0030487d1958/Linux Syslog Server/Linux Syslog Server-000001.vmdk" : failed to open (The system cannot find the file specified). Jan 04 17:33:57.265: vmx| DISKLIB-LIB : Failed to open '/vmfs/volumes/47789c0b-f68ba42b-f245-0030487d1958/Linux Syslog Server/Linux Syslog Server-000001.vmdk' with flags 0xa (The system cannot find the file specified). Jan 04 17:33:57.265: vmx| Msg_Post: Error Jan 04 17:33:57.265: vmx| http://msg.disk.fileNotFound VMware ESX Server cannot find the virtual disk "/vmfs/volumes/47789c0b-f68ba42b-f245-0030487d1958/Linux Syslog Server/Linux Syslog Server-000001.vmdk". Please verify the path is valid and try again. Jan 04 17:33:57.265: vmx| http://msg.disk.noBackEnd Cannot open the disk '/vmfs/volumes/47789c0b-f68ba42b-f245-0030487d1958/Linux Syslog Server/Linux Syslog Server-000001.vmdk' or one of the snapshot disks it depends on. +Jan 04 17:33:57.265: vmx| http://msg.disk.configureDiskError Reason: The system cannot find the file specified.

Yet the files exist. And are in the correct paths etc. Anyone get this issue?

0 Kudos
myaeger
Contributor
Contributor

I am also experiencing this problem. I am using the same config files that you posted, as well as using -P 0, and have given full file permissions.

So reading your posts, it makes me think I have to upgrade the agent. I currently have 11.5 sp3 on the backup server, but the 11.5 sp2 client on the ESX server. So it sounds like maybe I have to upgrade the ESX client to 11.5 sp3?

Do you have those files and/or instructions for that?

Thanks,

Mike

Please disregard - turns out I had some bad syntax in my uag.cfg file. It's working fine now.

0 Kudos
alecapella
Contributor
Contributor

Hello,

I´m posting the files I used on linux side.

Inside the zip file, there is a file called readme.txt with instructions.

Thanks

Alessandro

0 Kudos
tbrouwer
Hot Shot
Hot Shot

You know what, I have that same problem. In a pinch I was able to edit a line in the .vmx file for the virtual machine and got it to work. I will be re-visiting this today and see what I can find. Alecapella, are you able to restore machine from backup successfully and add them back into inventory without any problems?

0 Kudos
JasonInJersey
Contributor
Contributor

I wound up calling VMWare support and they told me that the fix was to hand edit the vmx file.

0 Kudos