Thursday, August 29, 2013

SCCM 2012 SP1 Prerequisites - PowerShell Script


For those of you who have done a SCCM 2012 SP1 install would know it can be quite frustrating making sure all the prerequisites are in place before kicking off an install.

I particularly struggle with the Application Catalogue pre-requisites.

 
I came across this great script that will install the required prerequisites for any role and site server combo:


 
Here are the different combinations, as you can see almost every prerequisite scenario is covered off:

.\Install-SCCMPrereqs.ps1 -SiteType CAS

.\Install-SCCMPrereqs.ps1 -SiteType Primary

.\Install-SCCMPrereqs.ps1 -SiteType Secondary

.\Install-SCCMPrereqs.ps1 -SystemRole ApplicationCatalog

.\Install-SCCMPrereqs.ps1 -ExtendSchema

.\Install-SCCMPrereqs.ps1 -InstallWADK

.\Install-SCCMPrereqs.ps1 -InstallWSUS

Thursday, August 1, 2013

Brisbane Hyper-V User Group - New Facebook Group

Aaron Whittaker - Brisbane Hyper-V User Group Host has opened a new Facebook Group for Brisbane Hyper-V professionals to collaborate and share their experiences. Feel free to join.                                                                                                                                     
https://www.facebook.com/groups/bnehyperv

Sunday, July 7, 2013

Data Protection Manager 2012 SP1 and Azure - Long Term Data Retention Options

I recently had an engagement with a customer to provide a solution to facilitate long term retention (10+ years) of backups to the "cloud". The customer wanted to use Microsoft System Center 2012 Data Protection Manager (DPM) with Azure Storage to retain long term backups.

The requirements were as followed:
  • The solution must leverage Microsoft DPM 2012 SP1.
  • Short term data retention (1 week) should be kept on premise on a local DPM Storage Pool.
  • Long term data retention (10 + years) should be kept in Windows Azure Storage.
  • No tapes are to be used for Long term data retention.
What a great idea! Keep short term data on premise for quick DR recovery (short RTO) and use windows Azure to recover ad-hoc files, mailboxes etc (Longer RTO).

Many of you may already know that DPM (as of 2012 SP1) has an inbuilt Windows Azure connector to retain backups in the cloud. See TechNet: http://technet.microsoft.com/en-us/library/jj728752.aspx
This at first seems like a great option (A single solution and single interface for long term data retention in Azure).

During discovery and testing the following roadblocks/issues for meeting the long term retention requirements were encounted with the inbuilt DPM to Azure solution:
  • The maximum retention range for Windows Azure backups of DPM is 120 days. The retention range depends on the synchronization settings. If you set to two backups per day then the retention range will be 60 days.
  • You can synchronize to Windows Azure Backup at a maximum of twice per day.
  • A maximum of 448 days is available for Disk Based Recovery (http://technet.microsoft.com/en-us/library/jj628009.aspx)
At this stage Microsoft's stance on long term retention of backup data (over 448 days Disk Based and 120 days Azure based) is for data to go to tape. With the recent acquisition of StorSimple (http://www.storsimple.com/) Appliances by Microsoft this may potentially change in the future.

In the mean time there is still a solution or workaround to retain long term data in Azure and that is to "trick" DPM into thinking it is writing to a tape by using a Virtual Tape Library (VTL) Product. Another cloud appliance (such as StorSimple or the Riverbed WhiteWater) is then needed to copy the backup data to the cloud for long term retention.

At a high level the solution would look like this:
  • Short term data retention for protection groups (under 448 days) to on premise DPM Disk (Storage Pool).
  • Install a Virtual Tape Library (VTL) on the DPM Server such as FireStreamer (https://www.cristalink.com/fs/).
  • Configure the Virtual Tape Library (VTL) to write it's files to a cloud appliance such as Riverbed WhiteWater (http://www.riverbed.com/products-solutions/products/cloud-storage-whitewater/) or StorSimple (http://www.storsimple.com/).
  • Configure the cloud appliance to connect to Windows Azure and setup the disk and azure retention policies i.e. when data is over a week old copy the data up to Azure storage.
  • Configure your Protection Groups to retain long term backups using tape and point it to the Virtual Tape Library.

The solution is not a fully integrated solution (I have faith Microsoft will introduce something in the future). However once configured the long term retention of data is treated as a traditional Tape method, the good thing is there is no requirement for physically managing the tapes off site (this is all handled by the cloud appliance.

I hope this is useful for anyone thinking of using DPM 2012 SP1 for long term backup (over 120 days) retention in Azure.

Monday, June 3, 2013

New Features: Windows Server 2012 R2

With the unveiling of Windows Server 2012 R2 features at Microsoft TechEd North America there has been allot of talk about the new features that are coming our way.

I came across a New Features article for Windows Server 2012 R2 on Windows IT Pro:
http://windowsitpro.com/windows-server-2012/new-features-windows-server-2012-r2

Some of the new features (specifically around the Hyper-V role) that I am looking forward  to seeing are:
  • Compression of Memory for Live Migrations. This will dramatically reduce Live Migration times.
  • Dynamic VHDX resizing. Finally we will be able to expand Virtual Disks connected to the virtual SCSI controller. This will be a feature that many Hyper-V customers have been hanging out for!
  • Hyper-V Replica Frequency. This will add new functionality from the standard 5 minute replication intervals by providing 30 seconds, 5 minutes and 15 minute intervals to choose from. This will provide more functionality for different link speeds and DR requirements.
  • DeDuplication of VHDX. By removing common blocks this not only going to save space but is set to dramatically increase performance.
  • Shared VHDX. In cases where Guest level clustering is required, this provides an alternative solution that will not require the Guest to connect directly to the Sstorage Array (using iSCSI or virtual Fibre Channel). Instead multiple guests can connect to a VHDX at the same time to provide the "Shared Storage" functionality required.
  • USB Pass through. Another great functionality that makes Hyper-V more competitive to the other Virtualisation Products on the market.
Windows 2012 R2 Preview Release is set for end of June 2013.
Final versions of Windows 2012 R2 is heard to have a release date of end of calendar year 2013.

Looking forward to it!

Friday, May 17, 2013

V2V or P2V failed state and cannot remove VM

Recently I was working with a customer on a VMware to Hyper-V migration. We were leveraging the great inbuilt V2V tool that is part of Virtual Machine Manager 2012. At some point during the virtual-to-virtual conversion the process failed.

After the conversion failed the VM was listed in Virtual Machine as 'Virtual-to-virtual conversion failed'. I decided to clean up the vm and restart the process.
- I tried to delete the VM with no luck.
- I then tried to repair the VM and this also failed as well.

Repairing in the past generally resolves a "stuck" VM. As a result I had to follow the below procedure to clear the error message and allow the VM to be deleted.

Please note this procedure is not a Microsoft official supported procedure and should be carried out with caution (make sure you take a backup of the VMM Datbase):

Backup the VMM 2012 Database:
1. Launch the Virtual Machine Manager Console and go to the 'Settings' view. In the settings view click 'Backup'.





















Edit the relevant table in the VMM Database:
1. Launch SQL Management Studio. Expand the 'VirtualManagerDB' database.




 

2. Expand 'Tables' and scroll down and find 'dbo.tbl_WLC_VObject'.














3. Edit the table and search for the "stuck" VM.

4. We then want to find the 'ObjectState' column for that VM and change the value to '1' and press Enter.
 





















5. In Virtual Machine Manage refresh the Cluster.

6. After the Cluster refreshes the VM can now be deleted.

Check Hyper-V Integration Services Versions

Ensuring that all your hosts have Integration Services Installed and are all the same version is important to keep your Hyper-V environment in a optimal/stable state.

I use the following PowerShell command to list all VM's and associated Integration Services version on a Hyper-V host:
Get-VM | ft Name, IntegrationServicesVersion

I use the following PowerShell command to list all VM's and associated Integration Services version on a entire cluster:
Get-ClusterGroup | Get-VM | ft Name, IntegrationServicesVersion

Hyper-V 2012 Best Practices

I came across a great article on Hyper-V 2012 Best Practices, written by a Microsoft Premier Field Engineer: