Lucene search

K
veeamVeeam softwareVEEAM:KB1681
HistoryOct 04, 2012 - 12:00 a.m.

VM Loses Connection During Snapshot Removal

2012-10-0400:00:00
Veeam software
www.veeam.com
5

AI Score

6.6

Confidence

Low

Challenge

During the snapshot removal step of a Veeam Backup & Replication task, the source VMware VM loses connectivity temporarily.

Cause

Veeam does not remove the snapshot itself, Veeam sends an API call to VMware to have the action performed.

The snapshot removal process significantly lowers the total IOPS that can be delivered by the VM because of additional locks on the VMFS storage due to the increase in metadata updates, as well as the added IOP load of the snapshot removal process itself. In most environments, if you are already over 30-40% IOP load for your target storage, which is not uncommon with a busy SQL/Exchange server, then the snapshot removal process will easily push that into the 80%+ mark and likely much higher. Most storage arrays will see a significant latency penalty once IOP’s get into the 80%+ mark which will of course be detrimental to application performance.

Isolation Testing

The following test should be performed when connectivity to the VM is not sensitive, for instance, during off-peak hours.

To isolate the VMware snapshot removal event, Veeam suggests the following isolation test:

  1. Create a snapshot on the VM in question.
  2. Leave the snapshot on the VM for the duration of time that a Veeam job runs against that VM.
  3. Remove the snapshot.
  4. Observe the VM during the snapshot removal.

While performing the test above, if you observe the same connectivity issues as during the Veeam job run, the issue likely exists within the VMware environment itself. Review the following list of troubleshooting steps and known issues. If none of the following work to resolve the issue, we advise that you contact VMware support directly regarding the snapshot removal issue.

Snapshot Stun Troubleshooting

  • If the VM being stunned is stored on an NFS 3.0 Datastore, see the section below about a Known Issue with NFS 3.0 and Hotadd.
  • Check for snapshots on the VM while no Veeam job is running and remove any that are found.

Veeam Backup & Replication can back up a VM that has snapshots present. However, it has been observed that when VMware attempts to remove the snapshot created during a Veeam job operation, and there was a snapshot present on the VM before the Veeam job, snapshot stun may occur.

  • Check for orphaned snapshots on the VM. (See: <https://kb.vmware.com/s/article/1005049&gt;)
  • Reduce the number of concurrent tasks that are occurring within Veeam. This will reduce the number of active snapshot tasks on the datastores.
  • Move VM to a datastore with more available IOPS, or split the disks of the VM up into multiple datastores to more evenly spread the load.
  • If the VM’s CPU resources spike heavily during Snapshot consolidation, consider increasing the CPU reservation for that VM.
  • Ensure you are on the latest build of your current version of vSphere, hypervisors, VMware Tools, and SAN firmware when applicable.
  • Move VM to a host with more available resources.
  • If possible, change the time of day that the VM gets backed up or replicated to a time when the least storage activity occurs.
  • Use a workingDir to redirect Snapshots to a different datastore than the one the VM resides on. <https://kb.vmware.com/s/article/1002929&gt;

Known Issue with NFS 3.0 Datastores

This issue will present as multiple minutes worth of stun. Normal snapshot stun is only mere seconds.

There is a known issue with NFS 3.0 Datastores and Virtual Appliance (HOTADD) transport mode. The issue is documented in this VMware KB article: <https://kb.vmware.com/s/article/2010953&gt;. “This issue occurs when the target virtual machine and the backup appliance [proxy] reside on two different hosts, and the NFSv3 protocol is used to mount NFS datastores. A limitation in the NFSv3 locking method causes a lock timeout, which pauses the virtual machine being backed up [during snapshot removal].”

If this issue occurs, you should implement one of three following solutions:

Use Direct NFS Mode (Best Performance Option)

In the Direct NFS access mode, Veeam Backup & Replication bypasses the ESXi host and reads/writes data directly from/to NFS datastores. To do this, Veeam Backup & Replication deploys its native NFS client on the backup proxy and uses it for VM data transport. VM data still travels over LAN but there is no load on the ESXi host.

More details are available here.

Configuration Tips:

  • Backup Proxy must be able to reach the NFS storage backing the Production Datastores.
    If the proxy is a VM, this may require creating a VM Port Group on the vSwitch where the NFS storage is connected.
  • Backup Proxy’s IP address must be on the NFS export whitelist.
  • Backup Proxy’s Managed Server entry must be rescanned to make Veeam Backup & Replication aware of the NFS access.

Force Veeam Backup & Replication to use the Hotadd Proxy on the same host as the VM

  1. Create a Backup Proxy on every host in the VMware cluster where backups occur
  2. Create the following registry value on the Veeam Backup & Replication server.
    **
    Key Location: **HKLM\Software\Veeam\Veeam Backup and Replication\ Value Name: EnableSameHostHotaddMode ** Value Type: DWORD (32-Bit) Value
    Value Data: ** ** **
    For the value data there are two options, 1 or
    2
    . Both values 1 or 2 will enable a feature which forces Veeam Backup & Replication to first attempt to use, and wait for, the Proxy that is on the same host as the VM to be backed up. The difference between the two is as follows: **1 **- If proxy on same host as VM becomes unavailable, Veeam Backup & Replication will fail over to any available proxy and use the available transport mode. This may lead to a situation where a proxy on another host is selected, and hotadd is used, which may cause stun. This ensures highest performance, but may risk VM stun.

2 - If proxy on same host as VM becomes unavailable, Veeam Backup & Replication will use any available proxy, but use network transport mode. This minimizes all stun risk, but may lead to reduced backup performance when forced to use Network transport mode.

_
Veeam automatically scans for registry values every 15 minutes. Wait 15 minutes for the value to take effect, or stop all jobs and reboot to force the value to be checked.
_

Force Backup Proxies to use Network Transport mode.

  1. Edit the proxies listed under [Backup Infrastructure] > [Backup Proxies].
  2. Click the [Choose] button next to "Transport mode".
  3. Select the radio option for "Network" mode.
  4. Click [OK] to close the prompt and then [Finish] to commit the change.

More Information

To submit feedback regarding this article, please click this link: Send Article Feedback
To report a typo on this page, highlight the typo with your mouse and press CTRL + Enter.

Affected configurations

Vulners
Node
veeamveeam_backup_\&_replicationMatch12.2
OR
veeamveeam_backup_\&_replicationMatch12.1
OR
veeamveeam_backup_\&_replicationMatch12
OR
veeamveeam_backup_\&_replicationMatch11
OR
veeamveeam_backup_\&_replicationMatch10
OR
veeamveeam_backup_\&_replicationMatch9.5
VendorProductVersionCPE
veeamveeam_backup_\&_replication12.2cpe:2.3:a:veeam:veeam_backup_\&_replication:12.2:*:*:*:*:*:*:*
veeamveeam_backup_\&_replication12.1cpe:2.3:a:veeam:veeam_backup_\&_replication:12.1:*:*:*:*:*:*:*
veeamveeam_backup_\&_replication12cpe:2.3:a:veeam:veeam_backup_\&_replication:12:*:*:*:*:*:*:*
veeamveeam_backup_\&_replication11cpe:2.3:a:veeam:veeam_backup_\&_replication:11:*:*:*:*:*:*:*
veeamveeam_backup_\&_replication10cpe:2.3:a:veeam:veeam_backup_\&_replication:10:*:*:*:*:*:*:*
veeamveeam_backup_\&_replication9.5cpe:2.3:a:veeam:veeam_backup_\&_replication:9.5:*:*:*:*:*:*:*

AI Score

6.6

Confidence

Low