Despite what I posted yesterday about clustering, mirroring is the preferred option for many DBAs in a virtual world although you can of course combine the two. On the up side mirroring gives you one (and only one) copy of the database in another location which you can’t really use, and failover is instantaneous, the down side is that the connection needs to be mirror aware (e.g.OLE DB) and you are only protecting a database at a time.
However the SQL Server product team have a cunning plan for the next release (Codenamed Denali) originally called HADRON, now called AlwaysOn which provides mirroring like ease of use but is built on Windows Server failover clustering (WSFC). Don’t panic all you need to do in WSFC is turn on the feature and setup a cluster..
As you can see from the above you don’t need shared storage so forget about FCoE, ISCSI Fibre Channel etc. You then enable Always On in configuration manager by right clicking on the SQL Server service and selecting its properties specifically the SQL HADR tab (you’ll need to do this on each node on the cluster)..
The next step is to create an availability group from SQL Server Management Studio (under management), select some databases to include in it and your done. One catch here is the databases have to be suitable , the full list of restrictions is here but essentially they need to be in full recovery mode and backed up. The wizard does all the work for you and of course there are T-SQL commands to do this programmatically as well as PowerShell support for control and management and of course the wizard will generate a script for you as well.
Here you can see I have declared a replica server (in ctp1 you can only have one), and I can decide which connections to allow..
The process also sets up endpoints (note the option to encrypt data)..
You can then synch the data (I created a share called backup for this)..
and then when you go back to management studio you can see that you have something like mirroring setup..
so interesting stuff but you need to be aware that