Archive

Archive for the ‘Work related’ Category

Cluster Aware Updating really works!

October 28, 2012 Leave a comment

 

One of the things that can set apart a business is failover technology – lets’ face it stuff happens. Hard drives develop errors, power fails and your computers just stop. As a MSP I can wait to find out about it a few minutes after it does from my clients (who are not very happy because it failed) or I can find out with extensive monitoring that is constantly checking the hardware/software environment but I can’t really do anything about it unless we configure additional hardware/software to kick in when it happens. Until now those setups were large and expensive and involved clustering file systems, multiple servers and quite frankly would require dozens of man-hours to setup and maintain. Disaster recovery involved thousands of dollars per month to have on hand just in case you needed it.

Along comes Windows 2012 Hyper-V with features that help bring the cost of having the benefits of this technology to a small business for a few thousand dollars per year!

Enter Cluster aware updating – this new feature of Hyper-V allows any small to medium enterprise (SME) to implement two Hyper-V servers with enough memory to run all of the virtual servers they need to operate their business (Exchange, SharePoint, File server, SQL, etc.) Most systems come with redundant hardware (power supplies, hard drives, etc.) so a single point of failure is all but eliminated but what about updates and maintenance? If you want to keep everything running or even just want to test your recover options in the event of failure you need to fail over your live system with as little or no downtime right?

Let’s looks at an example below

image

Cluster Aware Updating initiates an update. It is determined that one of our Hyper-V machines needs an update so it is downloaded. CAU migrates the VMs off to another member of the cluster.

 

image

 

Next is a screen of the CAU progress as it begins to apply the update

 

 

image

After the update is applied CAU issues a restart of that member of the cluster.

 

 

image

Once the restart is complete for the patched Hyper-V machine all members are scanned again for patches

 

 

image

Migration back to preferred machines occurs once all Hyper-V machines have been updated and restarted.

 

 

All of this can happen automatically just as you schedule Autoupdates for all of your desktops. There is no need for an administrator to manage each patch and to manually apply them. You can still have little or no downtime and have complete fault tolerance for your SQL and Exchange databases which means no interruption for your business.

Now did I mention that it’s all free! Not one maintenance fee, not one software license or add-on cost associated with this solution – all you need are a few machines to run Hyper-V and your finished. Now I would like to see VMware come up with something that tops that!

New Hyper-V Replica feature makes migration easier

October 11, 2012 Leave a comment

 

I recently had a problem when I upgraded to Hyper-V 2012 with an older test machine (DC5750) that just wouldn’t work with the new kernel. I decided that it was time to create a new Cluster and dreaded the Import/Export that I was going to have to do. I thought this would be a great time to test the Replica feature. Not only will it allow you to replicate VMs onto another Hyper-V machine for disaster recovery but it will also allow you to replicate to another cluster!

image

Here I show you a snap of the Failover Cluster Manager with both of my clusters (MyCluster is the old cluster I am migrating from – you can see Hyperv8 is the only node and Cluster1 is the new one). You have to create a Replica Broker for Replications to occur on a cluster and I have now setup SW1 to replicate to the new cluster. Now I have all four of my VMs configured to replicate changes ever 5 minutes and can take my old cluster offline when I am ready. It will require me to start the new VMs on the new cluster but I can do this at any time.

Hyper-V Replica keeps a log of any changes to these VHD files and replicates those changes to the other VM. This results in a fairly quick time to recovery if any issues should ever happen to your main cluster. Initial replication can even be done offline to a disk and imported into the other site so bandwidth issues and large VMs are not a problem. You can even do all of this with a single NIC!

I am not happy that at the time of this writing they still do not have any management upgrades for Windows 7 (you will need to have a full version of Windows 2012 or Windows 8 to manage these new features) but I like the fact that the old Hyper-V management application will still allow you to work with your VMs.

Windows has hit this one out of the park and has challenged both Citrix and VMware to step up to the plate for most SMBs. I hope you find it as robust as I do and consider implementing your own CFS.

Setting up your 2012 Hyper-V Cluster

September 19, 2012 1 comment

I decided to undertake an upgrade of my Windows 2008 R2 Hyper-V cluster this week and assumed that it would be easy (it wasn’t). After getting it up and running there were a few lessons I learned that I wanted to share with my readers.

If you haven’t already read my previous post regarding getting your cluster up and running with the older 2008 R2 version here it is. Reviewing it will help expose some of you neophytes to the process of using clustered storage. There is a new feature available with the new Hyper-V 2012 that is called Replication and I first thought this would work for my application but it doesn’t automatically start the VMs (which can be a good thing but more on that in another post). You still need to get shared storage working so I began by reusing my 32-bit version of Open E-DSS 6 (http://www.open-e.com/products/open-e-data-storage-software-v6/).

It turns out that trying to mount the iSCSI shares proved too difficult for me to simply reuse so I had to format my Clustered Shared Volume (CSV1) so I could use it again with the new Hyper-V servers.

To add the storage to a newly installed version of Hyper-V 2012 I had to type

‘netsh firewall set service type = remoteadmin mode = enable’

on the console to enable remote management from a Windows 2012 server. (The server manager won’t connect to Windows 2012 from Windows 7 – I think you must be using Windows 8). I then typed powershell to begin a shell on the hyperv box. image

‘Import-Module servermanager’

followed by

‘add-windowsfeature Failover-Clustering, MultiPath-IO’

to install the features. This is even easier than dism on the old server.

Next we run ‘iscsicpl’ to add the iSCSI node for storage. This is my DSS box with a RAID 5 SCSI array that has 5 36G drives in it. 4 drives in a 100G array with one hot spare.

Next I exit out of powershell by typing ‘exit’ and then run ‘diskpart’ to format the drives (on the first machine – I only cover the data drive below but you will need to configure the Quorum drive if you are setting everything up for the first time). This puts you in a terminal style windows so we type commands on a new line and hit enter to run them. To see all of your existing disks you can type ‘list disk’.

‘select disk ?’ (replace ? with whatever the new disk number for the iSCSI disk is)

‘create partition primary’ (this will create a new partition on the drive you selected above)

(if it gives you a read only error you can force it off by typing ‘attr disk clear readonly’  first and then repeat the command to create the partition.

format fs=ntfs label=”CSV1” quick (this will format the partition as a NTFS filesystem so that you can use it as a clustered file system. Type exit to leave the diskpart shell.

If you want to use some powershell cmdlets for configuring the vms or the cluster options you will need to add a few additional roles and features. I have outlined all of mine below.

 

 image

I have chosen to configure storage and the hyper-V options from my Windows 2012 server with the GUI enabled. This also gives me the option of configuring the Cluster features remotely too because I do not have a working Windows 8 desktop yet.

If you want to use the Cluster Aware Updating that comes with Hyper-V 2012 there are a few things that must also be done (aside from adding those features above).

To enable Cluster aware Updates you must disable Automatic Updates on each HyperV server. You must also install the Cluster Powershell tools Features. Run the following powershell commands to allow the Cluster Manager to restart your HyperV after applying updates

‘Set-NetFirewallRule -Group "@firewallapi.dll,-36751" -Profile Domain -Enabled true’

To verify if your cluster can use Cluster Updates run the Cluster Update awareness tool.

image

I am very impressed at the functionality of the new hyper-V and I think it will give VMware a good run for the money. With replication for DR and Live migration to and from clusters to standalone machines this VM host platform with allow SMBs to have enterprise features without the costs.

Backing up your Hyper-V cluster with Trilead

September 2, 2012 Leave a comment

It’s been a while since I wrote about any VM backup software (or for that matter ANYTHING) but I wanted to take some time to update my readers on a great little software from the folks at Trilead. I have been using this software since the early version 3 releases and they lost my attention when they began to require the VMware guests be shutdown before they were backed up. Now in version 4.0.37 I noticed that they have added that functionality back along with Hyper-V support! (actually Hyper-v had been added earlier than 4.0.37 but now that I have a Windows 2012 test machine I noticed that it was supported).

They have added a two server restriction so you will only be able to connect to a maximum of two servers but as long as you don’t have more than two nodes in your cluster you can use the Free version.

image

You can backup all of your virtual machines running on your Hyper-V cluster and you can even move them by backing it up and then restoring it to another host (unfortunately you cannot use the replication feature in the free version although who would want to – migrating from one hyper-v to another in a cluster is easy).

You can only perform a full backup on any of these vms but since this is a free product and you can do it while the guest is running I think this software is a great plus you can check them out at http://www.trilead.com/Editions.   Where else can you find a software that will allow you to backup a vm – convert it and then import it to a hyper-v cluster that is free?

How to extend your NTFS partition with a vmdk file on ESXi

April 28, 2012 Leave a comment

 

If you are using a large windows file server on your VMware server you will probably end up with a low disk space warning one day. You could choose to resize a partition in-place there but if something goes wrong you are kinda hosed unless you have a backup. You could copy it but not everyone has that kind of disk space so I like to add an ISCSI datastore to my ESXi server and choose to copy the VM to another datastore first. Then I can try to extend the copied vmdk file using a helper vm. It required a combination of stopping the vm, copying the file, renaming the original vm and bringing the new extended vmdk file online to extend it. Once I verify that everything was working our plan was to then remove the old VM once we were completely sure it was working and to free up the space for other projects.

In ESXi vsphere Shutdown vm

Login to ESXi server using putty

cp /vmfs/volumes/datastore1/WindowsXP /vmfs/volumes/datastore2

image

Here we see the copied file is exactly the same at the original

In ESXi vsphere

Rename Old VM to .old (this changes the VM name not the directory name)

image

Open helper vm and edit settings, close

Open settings again and increase the hard drive to desired size

Attach copied vmdk file from new datastore directory to existing VM as another drive

In helper OS

Open command prompt and type diskpart

List volume

image

Select volume (new volume number)

extend

quit

In ESXi vsphere

Create new VM (custom) with old name and do not attach hard drive

Add hard drive and use existing vmdk from new datastore directory

 

When you boot the machine it might do a check disk to resize the partition or after it boots it might need to restart with the new device added.

Verify IP address assignments make changes after initial boot if you do not assign IP automatically using static DHCP addressing.

Reboot and verify operation and once you are satisfied to can delete the old VM.

Categories: Work related Tags:

Backing up your Hyper-V cluster isn’t expensive

March 22, 2012 Leave a comment

It’s becoming very easy to backup virtual machines these days, there are even free versions becoming available (http://www.trilead.com/ – for VMware and http://www.altaro.com/ for Hyper-V – there is also script for XenServer available from Jeff Riechers) but one of the problems with using a high availability cluster is affordable backup. Most companies take the approach that only large companies are using cluster file systems and so they can afford the cost of an enterprise solution.

Well I am here to tell you about a software that is coming from the UK called Hyperoo (www.hyperoo.net) that is as little as 79 bucks! The software is a rsync client/server model and it works with VSS snapshots so there is no downtime. First you setup a server that will receive and house your backups. These are basically the VHD disk files and a Virtual Machine subdirectory that contains the configuration. (Most people agree that it is easier to restore a VM by recreating the configuration and using the VHD file so this is all that is really needed.)

image

We used a local USB drive on our workstation to save the backups. This make it easier to deploy to other VM servers like XenServer.

We also find that it’s easier to install VMs on our Hyper-V servers by making an ISO directory on the shared filesystem for installations.image

You can see that we have several VM directories on our shared filesystem that we will backup along with our ISO directory. Since this system only deals with a delta backup (files that change) it will not take up very much space on the backup drive.

Now we will install and setup the client portion on one of our Hyper-V servers. (Fortunately we will only need one license and one server to contain the backup software because the shared file system contains all of the VMs whether they are running on this particular Hyper-V server or not) We will need to add a few Server-Core components in order to install our software. From a command prompt on the Hyper-V server type the following;

dism /online /enable-feature /featurename:NetFx2-ServerCore

dism /online /enable-feature /featurename:NetFx2-ServerCore-WOW64

dism /online /enable-feature /featurename:NetFx3-ServerCore

dism /online /enable-feature /featurename:NetFx3-ServerCore-WOW64

(I can’t remember which one I used and I do remember something about the WOW64 is for 32bit machine but maybe someone else can elaborate?)

Once you have updated your server you can run the Hyperoo client from the command prompt. (BTW there is a great project running around that gives you an applet to add remove applications, run updates, etc. called CoreConfig from codeplex at http://coreconfig.codeplex.com/). When you have finished the install you can open the app by typing ‘hyperooconfig’ from the Program files (x86)\Hyperoo directory. You should get an app that looks like this (without the configurations).

image

We have configured our storage root and all sub directories and setup a schedule to run at midnight every night. We have also setup email notification so our backup status report is emailed to us (see below).

Backup Profile: Backups

Machine name: HYPERV2

Remote Backup completed successfully.

Number of files transferred: 7

Number of files skipped: 20

Matched data: 26.70 GB

Skipped data: 6.22 GB

Changed data: 1.33 GB

Total sent: 1.33 GB

Total received: 23.11 MB

Remote backup start time: 7:07:06 AM

Remote backup end time: 7:43:24 AM

Backup duration : 00:36:17

As you can see on our Gigabyte network using a USB 2.0 backup drive we manage to syncronize our backup copies of almost 27Gig of data in just over 35 minutes! This custom rsync algorithm  is very quick. We could even run this job every hour resulting in very little lost data if disaster ever occurs.

For the cost of a few Core 2 Duo or Core 2 Quad computers and 79 bucks you can have the benefits of High availability between two live VM servers and back them up in the event of disaster recovery. All this for under 1000.00 makes Hyper-V a great solution for any business that needs 5 9s (99.999%) of uptime.

Categories: Work related Tags:

Deploy Hyper-V Cluster image using PlateSpin Migrate 9.1

February 6, 2012 Leave a comment

 

The new platespin migrate has come out last August and we thought it was time to test drive it on the Hyper-V SP2 cluster we have created. Unfortunately you cannot directly connect to a cluster or a Hyper-v host so you have to setup your new environment in what PlateSpin calls a semi-automatic mode. This requires that you boot an ISO image on the target virtual machine making sure to set it up with as little or more resources as your source (hard drive, space, RAM, etc.)

One of the nice things we notice right away is the use of a debugger for determining why the boot loading/registering process won’t work. It also has the ability to inject drivers after a failed migration which is very handy too! Platespin-Migrate-Boot-ISO

Hyper-V-memory-settings

 

 

(As an aside – we noticed that our XP test failed to boot stating that there was not enough memory when in fact we were using 512MB and platespin only requires 384MB. They do have a smaller memory boot ISO available if you need it but in our test platform this issue was resolved by using the new dynamic memory feature of Hyper-V SP2.)

 

 

 

After the controller is downloaded and started we wait a few minutes for the discovery process to finish and we have a new target that shows up in our Platespin migrate client.

PlateSpin-Discovery

You can see the new target appearing on the bottom of our display above. The boot ISO images register with the PlateSpin Migrate server using a randomly generated host name.

We can then deploy our Windows XP image using an image that we have captured to our new Hyper-V target.

Want to recover some space on your ESXi server–read on

February 5, 2012 Leave a comment

I wanted to tell my readers about a great tool I found from those creative people at Quest Software called vOptimizer. This tool is an essential part of any virtual administrators toolbox.

You start by connecting to your ESXi server and create a Project. This project will use a boot ISO uploaded by the windows client wizard during initialization and it will allow you to run a disk optimization that can do things like removing old temp files all the way to resizing your VM disk!

 vOptimizer-GUI

We started by connecting to a Windows 2003 VM on our ESXi 5 server that was grossly oversized at 40G. This project was setup to remove every excess file (including removing the swap file) and once we had successfully ran the disk optimizer we were left with a running server that was only about 11G in size. The entire process only took about 40 minutes of downtime.

vOptimizer

We checked the ESXi summary before it was completed (left) and after (right).VM-disk-summary-beforeVM-disk-summary-after

Now I used to run a gparted iso and change the size of the disk and then expand the NTFS partition to make a disk larger but this trick allows you to make it bigger or smaller.

Unfortunately is does not work for LVM disks and with most of the Linux distros moving towards this default installation we are still looking to resolve this issue (gparted still doesn’t support it either).

(BTW this tool cannot optimize a VM if there is a snapshot so you will need to back it up first and then remove the snapshot before you can run the optimizer. This is true for windows vms as well).

After 30 days this tool will run as a free tool and only optimize 2 VMs but it is still a handy tool to have in your toolbox.

Categories: Work related Tags: , ,

Want to do more with just a single phone line–ask us how.

February 1, 2012 Leave a comment

Some of my readers may already be familiar with Marc Spencer and his creation of Asterisk (for instance anyone who has called some of the Canadian Government services) and may know about Alison and her beautiful voice but for the rest of you, I want to talk about phone systems today.

I have been working with Digium and Asterisk products for more than a decade now and I am hear to tell you that you can run a small business with just one phone line and have all the benefits of voicemail, IVR and faxing for free* (this assumes that you know how to program and maintain your system).

AsteriskNOW

AsteriskNOW is a CentOS Distribution that is already configured with a web based front end that allows you to create a phone system using any PC based hardware. (We even run it in a virtual environment on a Windows HYPER-V Cluster using a Linksys SPA3102 – see our article here).

It can act as a host for so many applications;

VoIP Gateway Skype Gateway
IP PBX Call Center ACD
Conference Bridge IVR Server
Voicemail System Call Recorder
Fax Server Speech Server

One of the best reasons I found to run it at my home office was to force Telemarketers to press a digit to speak to me. I haven’t been interrupted at dinner in more than a decade thanks to one of these servers.

If you need to press a button when someone calls you to receive a fax then you can use of these machines. It can be setup to email you a fax instead of wasting paper when you receive those fax advertisements. No more waiting for someone to send a fax to you. You can use the same number you use for your phone calls. The system can recognize that a fax is coming in and automatically send it to you. You can even set your system send your received faxes and voicemails to your inbox as attachments.

Voicemail

Hardware is available to have multiple phone lines and multiple telephones connected so you can create a call center complete with screen pops for inbound and outbound calling.

Setup an outbound dialer to make telemarketing calls to your potential clients and play them a message informing them about your specials.

Maybe you need to record all of your calls for quality purposes or just to ensure accuracy while you or your employees are doing business.

The system can be programmed to work with almost any Contact manager or database you currently have. Imagine creating a phone system for your clients that call often for information. They can use your new Interactive Voice Response system to make inquiries, place orders or even make payments.

All of these features can be setup on just one one phone line today and your system can grow with you. Comes complete with updates and add-on modules to enable all of this functionality so what are you waiting for?

With more than 15 years in the communications industry working with IVR/Fax/Data I can tell you that this phone system can be setup to do almost anything. More information is available by sending an email to sales@the-techy.com to arrange for a free consultation. We can speak on the phone or visit you at your office and discuss how this phone system can help you.

Categories: Work related Tags: , ,

Migrating AsteriskNOW VMs from ESXi to Hyper-V

January 30, 2012 Leave a comment

 

I wanted to touch base with some of you and share my experiences with virtualization. For those of you who have followed some of my posts you may be asking ‘how can I export/import’ between the different virtual hosts. (I have been asking myself this question for a few years now). As some of you are no doubt aware there are a number of tools available for a price that will enable the user to make this migration with as little time as a can of coke and some tim-bits but for the average tech out there these tools are expensive. Some of them work great between one platform or another but not all of them work perfectly. As I am a man on a budget and choose only to spend money when I have to I tend to lean towards tools that are free that, although they may take time and expertise to operate, make my bottom line, and that of my clients, easier to swallow.

Part of the problem with changing hypervisors is that apps like Xen and Hyper-V use vhd files while vendors like VMware have made their own type called vmk. There are some tools that will convert from one file type to another but they don’t take into consideration the different architectures that you made the VM image with and plan to run it on. Then there are drivers – those can blue screen a windows system or hang a Linux based system if you aren’t careful.

Well I recently tried to migrate some vms from my ESXi 5 machines onto a Hyper-V cluster and made some interesting observations.

OpenSUSE has a hard time converting from vmk to vhd because of the sixe of the resulting vhd reporting a superblock size difference. If you run resize2fs on the disk you can actually get the vm to boot on the Hyper-v system.AsteriskNOW-config (Might require the Integration tools – more on that later)

AsteriskNOW runs on CentOS and has no problem running on Hyper-V clusters but I warn you – you must set the MAC address to be static on a Virtual Network Adapter in order to have the IP come up on the other Hyper-V hosts in the cluster. (Incidently I have used VMs to run asterisk in my home office for almost a year now without any issues).

We need to do a few things to add the Hyper-V Integration tools for Linux to make this complete. You need to install the GCC compiler and any dependancies to be able to compile the Hyper-V tools (storage, VM bus, synthetic NICs, etc.) Once installed you should see the boot screen resemble something like this 

Hyper-V-Linux-Tools

Now that we have confirmed that the guest is back online let’s shut it down with the tools.

AsteriskNOW-HANext we can add the VM to the list of HA apps on the cluster.  Once we have done that let’s start it up again to confirm it can boot.

 

Now if one of my vm hosts goes offline (loss of power, network, etc.) then my PBX is dynamically moved to a new host and brought online again with a short downtime (about 15 seconds) shown below.

AsteriskNOW-Failover

It sure is nice to have AsteriskNOW running on a free cluster now (without the cost of running enterprise software Winking smile.