none
Backup hyper-v using child partition RRS feed

  • Question

  • Hi,

    I am using DPM 2012 SP1 to backup my hyper-v servers.

    All my servers are backed up using child state. But only one server that is backed up using saved state. This server was off when I set up the backup for it for the first time, that is why it showed me as backing up using saved state. I thought that when the server will be online, it will back it up using child partition, but it did not.

    I tried removing the agent, reboot, re-install the agent. But still no go, it doesn't give me the option to back up using child partition.

    Any help please.

    Thank you.


    -Mehdi

    Sunday, April 28, 2013 7:39 PM

All replies

  • Hi,

    When DPM protects a Hyper-V guest using HOST level protection, the Hyper-V writer on the hyper-V host communicates with the integration components inside the guest and determines if child partition or saved state backup will be performed.  Once DPM adds the guest to a protection group, the description: "Backup using child partition" or "backup using saved state" will not change, even thought the condition that determines the state may change.

    To get a real-time view of how then next backup will be perfomed, you can run the following test.

    To list hyper-V writer captions for guests to see if online or saved state backups can be done:

    From an administrative command prompt:

    a. Type: copy con script.txt and press enter
     b. Type: list writers and press enter
     c. Press CTRL + Z (to save)
     d. Type: diskshadow /s script.txt | find /i "caption: backup using"

    Output will be displayed for each guest.


    Here are the general conditions that make a VM go into a saved state during backup.

    Protecting Hyper-V machines
    http://technet.microsoft.com/en-us/library/hh757866.aspx


    Conditions when DPM fails to back up Hyper-V virtual machines in an online state

    By default, System Center 2012 – Data Protection Manager (DPM) performs a backup of a Hyper-V Virtual Machine (VM) in an online state. However, DPM cannot back up a Hyper-V VM in an online state, if one or more of the following conditions are true:

    •Backup (Volume Snapshot) Integration Service is disabled or not installed.
    •The virtual machine has one or more dynamic disks.
    •The virtual machine has one or more non-NTFS based volumes.
    •The virtual machine Cluster Resource Group in a cluster setup is offline.
    •The virtual machine is not in a running state.
    •A ShadowStorage assignment of a volume inside the virtual machine is explicitly set to a different volume other than itself.
    •An App-V drive is installed on the virtual machine that creates a non-NTFS volume.

    These conditions are set by the Hyper-V writer. In such a case, the VM is put in a saved state before a snapshot of host volumes are taken (except when the VM is turned off) for a backup. The Hyper-V writer adds the VM in the following format:
    •For offline backups: Backup Using Saved State\<VMName>
    •For online backups: Backup Using Child Partition Snapshot\<VMName>

    Additional reason is if there is less than 300MB free space on a volume in the guest.


    If you are using DPM 2010/2012/2012 Sp1 to backup Windows 2008 (R2) hyper-v guests you may observe that Windows 2012 server / Windows 8 guest VM's only get the option "Backup using saved state". It is also reported that some Windows 2012 server guests transfer the whole VM during backups instead on block level changes. 

    The below resolves both of these issues.

    SOLUTION
    =======

    The Hyper-V integration components needs to have scoped VSS snapshots to be turned off in order to support hot backups. This is a new feature apparently in Win8/2012 and the default is enabled.

    Implement this registry key on EACH Windows 8 or Windows 2012 guest to resolve the issue.  You must add a key called SystemRestore, then add a value called ScopeSnapshots as follows.

    HKLM\Software\Microsoft\Windows NT\CurrentVersion\SystemRestore
    REG_DWORD ScopeSnapshots 0x0

    See the additional info on scoped snapshots.

    http://msdn.microsoft.com/en-us/library/windows/desktop/aa378941(v=vs.85).aspx


    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. Regards, Mike J. [MSFT] This posting is provided "AS IS" with no warranties, and confers no rights.

    Sunday, April 28, 2013 11:34 PM
    Moderator
  • Thank you for your answer.

    I understand that description "backup using saved state" will not change. I will run the tests tomorrow morning to determine what is the real method used. But my question then will be, how do I change the description? is there a way to erase DPM any memory or notion of ever backed up this server and add it as if it was a new server so that it will show me the right description from the start?

    Thank you,


    -Mehdi

    Monday, April 29, 2013 2:53 AM
  • Hi,

    DPM will retain the original caption for that guest until you stop protection, delete the replica, and then re-protect the guest.


    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. Regards, Mike J. [MSFT] This posting is provided "AS IS" with no warranties, and confers no rights.

    Monday, April 29, 2013 5:17 PM
    Moderator
  • That's the thing. I've never protected this guest and it's not listed under protected guests.

    -Mehdi

    Monday, April 29, 2013 10:56 PM
  • Hm - I'm lost - read your original post.

    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. Regards, Mike J. [MSFT] This posting is provided "AS IS" with no warranties, and confers no rights.

    Monday, April 29, 2013 11:02 PM
    Moderator
  • mmm I think I was confusing a bit. What I meant is that as far as DPM is concerned, I've never protected this guest, because the agent was removed from the guest and the protected data was deleted from DPM. So it shouldn't consider it as a protected guest.


    -Mehdi

    Friday, May 3, 2013 3:34 PM
  • Hi

    It appears that you had protected that guest in two ways.

    Guest level - by installing a DPM agent inside the VM - this would protect file data or workloads inside the guest and DPM would show an agent for it under the agents tab.

    Host level - by protecting the guest under Hyper-V as "backup using saved state" - that protects the whole VM including configuration and all .VHD's. DPM will not show an agent for it under the agents tab.

    If you remove the HOST level protection and delete the replica, then re-protect it at the host level - then the description of "backup using child partition" should be displayed and used going forward.


    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. Regards, Mike J. [MSFT] This posting is provided "AS IS" with no warranties, and confers no rights.


    Friday, May 3, 2013 3:48 PM
    Moderator
  • Hi thank you for your answer.

    I didn't want to take any chance, I removed the agent from the guest vm. So no guest level backup is used.

    I also deleted any replica from the host level.

    When I want to add it to my VM protection group it shows me "backup using saved state"

    -Mehdi


    -Mehdi

    Saturday, May 4, 2013 5:49 PM
  • Hi,

    Delete the hyper-v cache, then let dpm re-enumerate the guests.


    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. Regards, Mike J. [MSFT] This posting is provided "AS IS" with no warranties, and confers no rights.

    Saturday, May 4, 2013 7:08 PM
    Moderator
  • I did delete the cache. (is it the button that you click on when you go to modify a protection group)

    Is there another way to delete the cache?

    I also rebooted the server just in case.

    No change.


    -Mehdi

    Saturday, May 4, 2013 8:40 PM
  • Yes, that is the proper way of clearing the cache.

    So that means that windows hyper-v writer is till reporting that the guest can only be backed up in a saved state.

    Repeat the below test.

    To list hyper-V writer captions for guests to see if online or saved state backups can be done:

    From an administrative command prompt:

    a. Type: copy con script.txt and press enter
    b. Type: list writers and press enter
    c. Press CTRL + Z (to save)
    d. Type: diskshadow /s script.txt | find /i "caption: backup using"

    Output will be displayed for each guest


    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. Regards, Mike J. [MSFT] This posting is provided "AS IS" with no warranties, and confers no rights.

    Saturday, May 4, 2013 9:20 PM
    Moderator
  • The output shows that this specific guest is backed up using saved state.


    -Mehdi

    Sunday, May 5, 2013 2:37 PM
  • Right, Since Hyper-V writer is saying the guest can only be backed up in saved state, you need to fix that.  DPM has no control over that decision.

    Please open a post in the Windows Hyper-V forum for additional troubleshooting: http://social.technet.microsoft.com/Forums/en-US/winserverhyperv/threads

     

    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. Regards, Mike J. [MSFT] This posting is provided "AS IS" with no warranties, and confers no rights.

    Monday, May 6, 2013 3:23 PM
    Moderator