Subscribe

Backup with SMVI

Hi,
I have installed SMVI on a separate WinClient . I have provided the user credentials for logging onto VC Server, that manages the ESX server. I have also set the reqd. credential for logging onto test Filers, that provision storage for the VMFS and NFS Datastores . I am able to see all the datastores through the SMVI GUI.

Now when I try to take a backup of any Datastore or VM, I get the message "Failure in VMGetVirtualMachines to Backup" .

Can someone pls, let me know what am i missing?

-thanks

Re: Backup with SMVI

Try emailing this chap on the other site.

http://forums.netapp.com/message/2840#2840

Re: Backup with SMVI

There is probably more information being reported than what you pasted it. If you can, please zip and attach the server.log files (<SMVI dir>/server/log/server.log*).

Other information that might be of use is to describe what is being backed.

1. Does this happen when backuping up a entire datastore or just a single VM?

2. Does it happen with every VM, or a specific one?

3. Are the VMs contained in a single datastore or contain disks spread across multiple datastores?

4. Are there any RDM disks?

Josh

Re: Backup with SMVI

1. Does this happen when backuping up a entire datastore or just a single VM?

Both datastore and VM

2. Does it happen with every VM, or a specific one?

All the VMS.

3. Are the VMs contained in a single datastore or contain disks spread across multiple datastores?

The C: of the VMs are in one datastore(few VMs have the C: provisioned by Filer and some by local hard disk) . The remaining (DATA) drives are on separate datastores (provisioned by filer)

4. Are there any RDM disks?

No. they are either VMFS luns or NFS

Also, I just created a fresh datastore (NFS), on NetApp filer and tried to take a backup. This also failed. this log is in server.zip

-thanks

Re: Backup with SMVI

Thank you for those files. A few more things to try.

1. What version of SMVI is being run? Run 'smvi version' from the CLI.

2. Run 'smvi discover datastores' from the CLI and attach the output

3. Please make the following change, run a backup and re-attach the updated server log

edit <SMVI dir>/server/etc/smvi.override

Add the line

vim.client.log.verbose=true

Stop/restart the SMVI service and run another backup. This change will log the SOAP interactions between SMVI and VC. Right now, that interaction is the cause of the problems, but the more verbose logs are needed to figure out exactly what is being sent back and forth.

Re: Backup with SMVI

Josh,

Thanks a lot for looking at this issue.

I have attached the output of the CLI command as well as the server log generated while taking a backup after making the suggested changes to the file, smvi.override

Pls let me know if you need access to the Winclient.

-thanks

Re: Backup with SMVI

It appears there is a permission problem when requesting the events for the VM from VirtualCenter. You will find the log entries at the bottom of this message. It is likely that there was also an error at the same time in the VC task output pane (bottom of VC window) that also describes the problem.

I see two problems here.

  1. The customer just needs to add more permissions to their account

  2. SMVI did not handle this case gracefully which lead to having to post

I'll create a burt against SMVI 2.0 to look into handling this problem properly within the product.

I would also suggest that the customer comments out the entry in smvi.override and restart SMVI server. That will cut down on their log file size.

11/20/2008 10:38:38 AM INFO Outbound Message

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Body><QueryEvents xmlns="urn:vim2"><_this type="EventManager">EventManager</_this><filter><entity><entity type="VirtualMachine">vm-401</entity><recursion>all</recursion></entity></filter></QueryEvents></soap:Body></soap:Envelope>

11/20/2008 10:38:38 AM INFO Inbound Message
<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Body>
</soapenv:Body> </soapenv:Envelope>

<soapenv:Fault><faultcode>ServerFaultCode</faultcode><faultstring>Permission to perform this operation was denied.</faultstring><detail><NoPermissionFault xmlns="urn:vim2" xsi:type="NoPermission"><object type="VirtualMachine">vm-401</object><privilegeId>System.View</privilegeId></NoPermissionFault></detail></soapenv:Fault>



11/20/2008 10:38:38 AM ERROR FLOW-11019: Failure in VmGetVirtualMachinesToBackup: null
java.lang.reflect.UndeclaredThrowableException
at $Proxy73.queryEvents(Unknown Source)
at com.netapp.smvi.task.vmware.util.VirtualMachineReferenceUtil.isVirtualMachineMigrating(VirtualMachineReferenceUtil.java:323)
at com.netapp.smvi.task.vmware.VmGetVirtualMachinesToBackup.execute(VmGetVirtualMachinesToBackup.java:165)
at com.netapp.common.flow.TaskInstanceTemplate.execute(TaskInstanceTemplate.java:281)
at com.netapp.common.flow.Operation.executeCurrentStack(Operation.java:132)
at com.netapp.common.flow.Operation.execute(Operation.java:52)
at com.netapp.common.flow.Threadpool$OperationThread.run(Threadpool.java:242)
Caused by: com.sun.xml.messaging.saaj.SOAPExceptionImpl: No NamespaceURI, SOAP requires faultcode content to be a QName
at com.sun.xml.messaging.saaj.soap.impl.FaultImpl.setFaultCode(FaultImpl.java:101)
at com.sun.xml.messaging.saaj.soap.impl.FaultImpl.setFaultCode(FaultImpl.java:138)
at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:190)
... 7 more

Re: Backup with SMVI

Josh,

I had requested the admin to create an user "smvi" in the VC server . This VC server is being used to manage more than one ESX host. Can u pls let me know what sort of permisssions I need to request the admin, to set for the usr "smvi", so that I can backup and restore databases.

-thanks

Re: Backup with SMVI

I believe the SMVI user has to be part of the administrators group in Virtual Center.

Keith

Re: Backup with SMVI

Our lab manager has added the user "smvi" to administators group in VC. I restarted SMVI service and tried to take a backup. But i still see similar error.

-thanks