The below image is Management console in SCDPM 2010. There are protection groups to configure backup policy.
Figure: Protection menu of the management console
I found something new in console, that was Initial backup. I hadn't seen it in my testing server. So I searched what it was on the web.
Someone said:
Initial Store is a Hyper-V security component that stores information relating to role based access permissions for the VMs on that server. It is located at C:\ProgramData\Microsoft\Windows\Hyper-V\InitialStore.xml.
You do need to backup the Initial Store component but you don't need to back it up along with a VM. The same thing with restore. Restore the component when the InitialStore.xml file is missing, corrupt etc. This component is independent of the VMs.
Other added:
The "Initial Store" is related to Azman. The initial store contains the AzMan role-base security specifications. Restore this component when you want to restore the AzMan security settings that you backed up.
If you want to back up an online virtual machine (running VM) by using VSS, you should back up all of the volumes that contain the files for the virtual machine, including the InitialStore.xml file (in %systemdrive%\ProgramData\Microsoft\Windows\Hyper-V, by default) and all volume(s) contains the VHD(s) and configuration XML files.
This would be the point of the post.
So, Do we have to back up initial store?
Figure: Adding initial store to protect
As for the initial store you don't have to protect it necessarily unless you're using authorization manager to delegate and define specific permissions and control for your virtual machines to users.
And it also is related to Hyper-V Authorization Manager. Refer to
http://technet.microsoft.com/en-us/library/dd283088(WS.10).aspx
I've been doing a job that add new some functionaries on my program.
One of them enable ours to run the following through SCDPM 2010.
- Run backup & restore (I've already posted about restore, click here)
- Create and Modify schedule.
- Getting a bakup list
- Install DPM agent
Today, I'd like to explain how to get computer's name from AD(active directory).
When we try to add new server for protection into DPM, we should install agent first. We usually do that work through DPM console. the below picture is the first step while adding new protection server. As we can see, we have to choose servers what we want to.
When Adding DPM functionality to the program, It is effective way to convert powershell cmdlet to programming language, In my case, I use C#. All System Center products support powershell for improving manageability.
I intended to implement to deploy DPM Agent on the desired host and I had to get computer's list from active directory as the first step. However, DPM doesn't provide any powershell cmdlet about this.
So I wrote c# code of it manually.
line 22, type the server name which installed domain controller.
line 27, narrow the target.(here, I only want to get computers)
line 28, add "Name" property to get computer's name only.
Below is web sites I had referenced.
http://www.dreamincode.net/code/snippet1847.htm
http://www.powershellpro.com/computernames-activedirectory/149/
I did trials and errors as to retore the Hyper-V. they were fine until NO.4 and finally produced errors with NO.5. There were some example about SQL and exchange server but I was find it diffcult about resore Hyper-V. Here' is the result I've tested.
1. Set DPM Server Name
PS C:\> $dpm = "SCDPM"
2. Get the hyper-v host that the vm is running on. in this example, I chose a server which contain "host02" in its name.
PS C:\> $ps = Get-ProductionServer $dpm | where {$_.Name -like '*host02*'}
3. Datasource means that all objects that enables backup. These are SQL-Server, shared folder, Drives, Hyper-V VM, System files and so on.
$ds = Get-Datasource $ps | where {$_.protected -eq $true}
I intended to restore a existing VM so I used Where clause to find aleady protected VM by DPM
4. RecoveryPoint is a backup list of a certain datasource. I made backup schedule for a VM at 18:00 on each Monday, Tuesday and Wednessday.
$rp0 = Get-RecoveryPoint $ds
$rp = $rp0[1]
$ro = Get-RecoverableItem -RecoverableItem $rp -BrowseType child
5. Make recovery option. This is about which server you want to respoore and how you restore the vm.
PS C:\> $rop = New-RecoveryOption -HyperVDataSource -TargetServer "host02"
-RecoveryLocation CopyToFolder -TargetLocation "D:\virtualMachines\" -RecoveryType restore
PS C:\> Recover-RecoverableItem -RecoveryOption $rop -RecoverableItem $rp
-RecoverableItem: This can be either RecoverableObject or RecoverableItem.
-HyperVDataSource: It needs when you restore VM.
-TargetServer: Where you want to restore.
-TargetLocation: Specify a folder of TargetServer, DPM will restore the VM on this folder.
then DPM will start restore job juat after execute the last cmdlet.
JobCategory Status HasCompleted
---------- ------ ------------
RestoreAsFilesFromSC InProgress False