Hyper-V: Snapshot in produzione...Sì/No?
Ben Armstrong ha scritto un post proprio sulla questione relativa all'utilizzo degli Snapshot di Hyper-V in produzione. La posizione ufficiale di Microsoft per il loro uso in produzione è: "Supportati ma non raccomandati". Personalmente ne sconsiglio l'utilizzo in produzione, oltre che per i "problemi" che Ben enumera nel post, anche per il fatto che - specialmente quando si hanno piu' snapshot - la loro gestione (eliminazione child, eliminazione parent, eliminazione tree, unione ecc.) non è proprio chiarissima e il rischio di fare la classica "bip" aumenta in maniera esponenziale con il numero degli snapshot. Ottimi invece in preproduzione.
Per la produzione se vogliamo crearci un paracadute da possibili problemi derivanti dall'applicazione di Security Patch, Service Pack ecc.. la vecchia regola è sempre valida: Backup!!
Di seguito il post di Ben:
"...
Should virtual machine snapshots be used in production? [Hyper-V]With all of the information that I have been talking about around snapshotting – one conversation that I have often is whether people should use virtual machine snapshots in production environments (note that this is virtual machine snapshotting I am talking about – not VSS snapshots which are great for backing up production virtual machines).
The short answer is “Virtual machine snapshots are supported in production environments, but not recommended.” The longer answer is that there are a number of issues you should consider before deciding to use virtual machine snapshots in a production environment. The are as follows:
- Performance: as virtual machine snapshots use differencing disks, there is a performance overhead to be considered. This overhead is not too noticeable if you are already using dynamically expanding virtual hard disks, and you only plan to have a small number of snapshots around. If you are using fixed size virtual hard disks – then there will be a noticeable performance hit to using a virtual machine snapshot.
- Disk space: once again, because virtual machine snapshots use differencing disks, there is an added disk space usage involved with having a virtual machine snapshot. This is not too significant if you are using dynamically expanding virtual hard disks – but is more pronounced if using fixed size virtual hard disks (hint: do not use fixed size virtual hard disks and virtual machine snapshots together, it works but does not make a lot of sense as you lose most of the benefits of using fixed size virtual hard disks).
- Downtime: if you create a virtual machine snapshot and then delete it, you will have to turn the virtual machine off at some point in the future to let the snapshot AVHD file merge in.
- Clustering: unfortunately, if you use snapshots on a virtual machine that is part of a cluster, the snapshots will have incorrect network configurations after they have been moved from one node to another.
- Physical disks: if a virtual machine has a physical disk connected directly to it – you cannot use virtual machine snapshots.
So in summary: if you are using dynamically expanding virtual hard disks, have planned the location of your snapshot files, and can tolerate downtime at a later point in time to allow deleted snapshot files to merge – then go for it. Otherwise you may want to carefully consider the usage of virtual machine snapshots in production.
As a side note – the reason that I most often here for people using virtual machine snapshots in production environments is that they want to have a safe point to return to before applying a patch / installing new software / making a configuration change. While it is a bit more work you can use VSS snapshots just as well for this sort of scenario – and you avoid the issues that I have outlined above.
..."
fonte: Ben Armstrong (Microsoft)
Per domande e dubbi è possibile scrivere sul forum di VMexperts.org oppure direttamente a lconte@vmexperts.org.
Luca
Luca Conte, MCSE/MCSA:Security, MCT, MCITP:Windows 2008
MCTS: Windows Virtualization, VMWare VCP
Consulting Services & Professional Training
Virtualization Discovery - http://www.virtualizationdiscovery.com
Virtualization Technical Days - http://days.virtualizationdiscovery.com
Virtualization Webcast - http://webcast.virtualizationdiscovery.com
Should virtual machine snapshots be used in production? [Hyper-V]
Where are my snapshot files? [Hyper-V]
What happens when I delete a snapshot? [Hyper-V]
What happens when a snapshot is being merged? [Hyper-V]
Why does it take so long to delete a virtual machine with snapshots? [Hyper-V]
What happens if I start a virtual machine that is merging snapshot files? [Hyper-V]


Per tutti i membri delle Community VMexperts.org e ISAserver.it è previsto uno sconto sull'abbonamento 
