1. Introduction
1.1 Challenges and Solutions
In QTS 4.2, the snapshot function in Storage Manager supports not only volumes, but also iSCSI LUNs to rapidly back up and restore your valuable data.
The challenge when creating a LUN snapshot is to ensure that all data is included, such as unsaved application data, buffers, memory and logs.
The solution provided by QNAP is an Application Consistent option for iSCSI snapshots while using QNAP Snapshot Agent for Windows Server or VMware vCenter. It allows the NAS to communicate with the remote server to ensure that you can have a complete backup using our QNAP snapshot function.
1.2 Audience
This application note is suitable for anyone using a QNAP NAS as an iSCSI target to create an iSCSI LUN for other devices or virtual machines. Some terms in this document will not be explained in detail.
2. How to Start
2.1 How it works
QNAP Snapshot Agent is created mainly to allow taking Application Consistent snapshots for an iSCSI LUN, while at the same time it also provides a VSS Hardware Provider feature.
In the first workflow below, whenever you need to take a snapshot on a iSCSI LUN from the NAS, the agent will inform the remote server to flush all the data into the iSCSI LUN (for Windows Server) or to take a virtual machine snapshot before the iSCSI LUN snapshot (for VMware), therefore when a snapshot is taken from the NAS, it will contain all the necessary application data to ensure a consistent snapshot.
Examples:
- Microsoft Hyper-V Server will create a VM checkpoint including the memory to avoid data loss and to ensure a consistent state in the snapshot.
- SQL Server will flush the database logs on the disk to ensure a consistent state in the snapshot.
- VMware will create a VM snapshot for each VM located in the LUN to ensure a consistent state in the snapshot, as seen below:
Furthermore, QNAP Snapshot Agent also includes VSS Hardware Provider for Windows Server. If you want to conduct a backup job for an iSCSI LUN from Windows with backup software* that supports VSS, the VSS Hardware Provider will allow to use NAS ROW (Redirect on Write) instead of Windows COW (Copy on Write) to take the snapshot on the Windows Server and therefore increase the backup efficiency.
*The backup software must support VSS Snapshot.
2.2. System Requirements
- You must use QTS 4.2 (or later) to use Snapshot Agent.
- QNAP Snapshot Agent is compatible with Windows Server 2008 or later. GUI management must be enabled. Windows Server Core and Windows Hyper-V are not supported.
- Except from Windows Server, VMware vCenter is also needed when you need to use Snapshot Agent for virtual machines deployed in VMware.
- To use Snapshot Agent, you must open the incoming TCP port 11169 on Windows Server. Please follow the guidelines provided by Microsoft to open the port. It may also be necessary to use Group Policies if your server is a member of Active Directory and the firewall is controlled by GPO. Please refer to the following pages provided by Microsoft to conduct these operations:
http://windows.microsoft.com/en-us/windows/open-port-windows-firewall
https://technet.microsoft.com/en-us/library/cc753295
- It is strongly recommended to use a fixed IP address on the NAS.
2.3. Known Limitations
- To take an application consistent snapshot for a virtual machine in Windows Hyper-V or VMware, the VM configuration, disk, and snapshot/checkpoint must be located on the same iSCSI LUN to be included in the snapshot.
- Snapshot Agent cannot be installed if SMI-S Provider is already installed on the server.
- Snapshot Agent does not support Extents function in VMware, the datastore must have only ONE iSCSI LUN.
- Snapshot Agent does not support a LUN that is mapped to a target with multiple LUNs
- Snapshot Agent does not support a LUN that connected with MPIO.
- Snapshot Agent does not support a LUN that is mapped to a target with CHAP.
- During reverting, Snapshot Agent only reverts VMs that are currently registered in vSphere Inventory. If a VM has already been deleted in vSphere, Snapshot Agent will not add the VM to the inventory.
2.4. Download and Install Snapshot Agent
Please go to the QNAP Download Center > Utility to download our Snapshot Agent:
https://www.qnap.com/utility
To install Snapshot Agent, “.Net Framework 3.5” must be installed and enabled in “Application Server” on the Server Manager. To install this feature, go to “Server Manager” > “Add roles and features” section and select “Application Server” at the Roles section and “.Net Framework 3.5 feature” in the Feature section.
Select ".Net Framework 3.5 Features" to install this feature in the Add Roles and Features Wizard.
When this feature's installation is confirmed, open the Snapshot Agent application file to start the installation. After completing the installation, you should see a shortcut called QNAP Agent Manager on your desktop.
Follow the Setup wizard to complete the installation of Snapshot Agent.
The QNAP Agent Manager shortcut will then be displayed on your desktop.
3. Configure Snapshot Agent
3.1. Configure Snapshot Agent in Windows Server
Once you have completed the Snapshot Agent installation, open the “QNAP Agent Manager”. You will need to add the QNAP NAS that your Windows Server is using as iSCSI storage by providing the IP address or by clicking “Scan NAS” to directly let the agent find the NAS on the local network.
The start page allows you to input the QNAP NAS IP that provides the iSCSI target for this server
Or you can scan for the QNAP NAS that supports Snapshot Agent on the local network.
After inputting or selecting the QNAP NAS, you will be asked to provide your NAS login credentials, to confirm the port for the connection, and to enable the functions you want to use. In this example, we have selected both VSS H/W provider and Snapshot Agent for Windows, then click “Ok” to confirm these settings. The Snapshot Agent will connect to the QNAP NAS and you can see the NAS been added to the list on the start page.
Input the QNAP NAS username & password and select the functions you want to enable.
The NAS appears in the list.
3.2 Configure Snapshot Agent for vCenter
To back up iSCSI LUNs that are being used for virtual machines in VMware, you can go to “VMware Settings” in Agent Manager. In vCenter Credential settings, please input the IP address of your vCenter Server, the account/password of your Single Sign On, and select how VMware should take a snapshot for its virtual machine when receiving a request from the NAS.
Configure “VMware settings” in QNAP Agent Manager. We selected “Snapshot virtual machine's memory”, which allows vCenter to take snapshots for virtual machines that do not have the VM tools installed.
After finishing, now when you add a QNAP NAS to QNAP Agent Manager, the option “Snapshot Agent for VMware” will be enabled, or you can right click on any existing NAS and select “Edit” to enable this option.
Enable Snapshot Agent for VMware by editing a QNAP NAS in QNAP Agent Manager.
After editing, the Snapshot Agent for VMware is displayed in the “Components” column and ready to work.
4. Take an iSCSI LUN snapshot
4.1. Take iSCSI LUN Snapshots with Windows Server
It is possible to check if the agent is connected to the QNAP NAS correctly from the NAS UI. Open your web browser, log into QTS, and enter “Storage Manager”. In “iSCSI Storage” > “Snapshot”, open the menu “Snapshot Agent”. A list will be displayed to let you see all the Snapshot Agents that are currently connected to the NAS.
Select “Snapshot” > “Snapshot Agent” in the iSCSI Storage section
The Snapshot Agent that is connected to this NAS will be displayed.
To take an Application Consistent snapshot, in “iSCSI Storage” please select a iSCSI LUN, and from the “Snapshot” dropdown button select “Take a Snapshot”.
Select "Take a Snapshot" in the "iSCSI Storage" section.
When the confirm window displays, select "Application Consistent" in "Snapshot Type" and click "OK" to start taking the snapshot.
In the "Snapshot Type", please select "Application Consistent"
Note: “Crash Consistent” snapshots will not contact the remote server before taking the snapshot as they are just standard NAS snapshots.
When taking an Application Consistent snapshot, the QNAP NAS will send a request to Windows Server. It will flush all the related data into the iSCSI LUN before the snapshot.
In the following example, using Hyper-V, the iSCSI LUN contains a virtual machine that is running 24/7. When using the snapshot function from the NAS, with the Application Consistent option, the Windows Server receives the request from the NAS and creates a checkpoint of the VM.
This can be visible for a short time on the Hyper-V Manager interface*: The status of the VM changes while creating the checkpoint. The VM state, memory and disk will be included in the iSCSI LUN snapshot.
*The VM configuration, disk, and checkpoint must be located on the iSCSI LUN to be included in the snapshot.
When selecting “Take a Snapshot” in QTS, the status of Q’center virtual appliances will change to “Backing up”. This indicates that Windows Server has received the request from the NAS and will start flushing data to the iSCSI LUN.
*Depending on the Hyper-V version, the UI may be different.
4.2. Take iSCSI LUN Snapshot with VMware
The operations needed to take a snapshot for iSCSI LUNs with VMware are the same as Windows Server. Log into QTS, go to the “Storage Manager”, and in “iSCSI Storage” select the iSCSI LUN that has been used for storing virtual machines in VMware. Select “Snapshot” > “Take a Snapshot”.
Select the iSCSI LUN used by VMware to take a snapshot with the “Application Consistent” snapshot type.
When receiving the snapshot request from the QNAP NAS, vCenter will take a VMware snapshot for each virtual machine that is stored in the NAS iSCSI LUN and will store these snapshots at the iSCSI LUN. Afterwards, the NAS will take another application consistent iSCSI LUN snapshot which includes VMware snapshots for each virtual machine. This action is visible in the Tasks section of the vSphere Web Client. The VMware snapshots will be removed once they are included in the iSCSI LUN snapshot.
vCenter servers will take VMware snapshots for each virtual machine when the agent sends out a snapshot request, and will remove them once every VMware snapshot is included in the iSCSI LUN snapshot.
*Depending on vSphere Web Client version, the UI may be different.
It is also possible to use “Snapshot Manager” or “Snapshot Replica” to create a scheduled backup job. The “Application Consistent” option is available.
You can also use Snapshot Manager to create a snapshot schedule for you iSCSI LUN with Application Consistent Snapshots.
4.3 Revert a Snapshot
You can revert an Application Consistent snapshot to iSCSI LUN just as reverting a snapshot to a NAS volume. To check if a snapshot is application consistent, select a LUN and open “Snapshot Manager”. In list view, you can see if the snapshots taken with Snapshot Agent are application consistent.
The snapshots taken with Snapshot Agent will be classed as “application consistent” in Snapshot Manager.
To revert a snapshot for a iSCSI LUN that is connected to Windows Server, you will need to first disconnect the LUN, then select the LUN and check “Snapshot” > “Snapshot Manager” to select the snapshot you want to use.
Make sure to disconnect an iSCSI LUN that is connected from Windows Server before reverting.
Otherwise, the snapshot process will fail.
After disconnecting, confirm the revert action in the Snapshot Manager.
After confirmation, you can see the revert progress in Snapshot Manager.
Once the revert process is completed, you can than reconnect the iSCSI LUN from the Windows Server. In case of Hyper-V, all the configurations of the virtual machines are stored in the iSCSI LUN including their checkpoints.
As for VMware, when Snapshot Agent is installed and connected, you can directly revert the snapshot of a iSCSI LUN without disconnecting the LUN as the Snapshot Agent will automatically disconnect the iSCSI LUN (Datastore) from the ESXi hosts, revert the snapshot, then reconnect the reverted LUN (Datastore) and revert VM (but it still may be necessary to manually read the VM in the inventory if the VM is deleted before reverting.) Once added, vCenter can continue using the VMware snapshot to restore the virtual machine in the iSCSI LUN, and therefore ensure that the restored virtual machines in the iSCSI LUN are application consistent.
In vSphere Web Client you will see that the iSCSI LUN is detached from the vCenter once the revert process starts and can be reattached again when the revert process is completed. vCenter will then use the VMware Snapshot in the iSCSI LUN to restore virtual machines stored in the iSCSI LUN.
5. VSS Hardware provider for Windows Server
Snapshot Agent includes VSS Hardware provider. To use this function, you need to have backup software that supports the VSS snapshot function. In this document, we use QNAP NetBak Replicator as an example. The first step to use VSS hardware provider function is to configure your backup software to enable VSS and allow the software to create snapshots. After finishing these settings, you can use the backup software to create a backup job for an iSCSI LUN on QNAP NAS.
In “Advanced Settings” > “Backup Settings for Opened Files”, you can enable VSS and allow NetBak Replicator to take snapshots when backing up files.
Use the backup software to create backup jobs for the iSCSI LUN provided by QNAP NAS.
When the backup software uses VSS to create a snapshot, the snapshot will be taken on the NAS instead of Windows Server.
This can be seen on the NAS UI while the backup is in progress: in “Storage Manager” > “iSCSI storage”, you will find that another iSCSI LUN named “vss” has been created during the duration of the backup. This LUN is the snapshot that the NAS created for the backup job so the backup software will use this snapshot iSCSI LUN to back up the data.
The backup software is creating a snapshot.
The snapshot was not created on Windows Server, but on the NAS. In the “iSCSI Storage” another iSCSI LUN call “vss” will be temporary created for the backup job.
After confirming that the backup job is completed, you will find the “vss” iSCSI LUN snapshot on the NAS has been removed by VSS components in Windows Server.
1. Giriş
1.1 Zorluklar ve Çözümler
QTS 4.2'de, Depolama Yöneticisi'ndeki Anlık Görüntü işlevi, yalnızca birimleri değil, aynı zamanda iSCSI LUN'leri de hızlı bir şekilde yedeklemek ve değerli verilerinizi geri yüklemek için destekler.
Bir LUN Anlık Görüntü oluştururken karşılaşılan zorluk, kaydedilmemiş uygulama verileri, tamponlar, bellek ve günlükler gibi tüm verilerin dahil edilmesini sağlamaktır.
QNAP tarafından sağlanan çözüm, Windows Server veya VMware vCenter için QNAP Anlık Görüntü Aracını kullanırken iSCSI Anlık Görüntü için Uygulama Uyumlu bir seçenek sunmaktır. Bu, NAS'ın uzaktaki sunucuyla iletişim kurarak QNAP Anlık Görüntü işlevimizi kullanarak eksiksiz bir yedekleme yapmanızı sağlar.

1.2 Hedef Kitle
Bu uygulama notu, diğer cihazlar veya sanal makineler için bir iSCSI LUN oluşturmak amacıyla QNAP NAS'ı iSCSI hedefi olarak kullanan herkes için uygundur. Bu belgede bazı terimler ayrıntılı olarak açıklanmayacaktır.
2. Nasıl Başlanır
2.1 Nasıl çalışır
QNAP Anlık Görüntü Aracı, esas olarak bir iSCSI LUN için Uygulama Uyumlu Anlık Görüntü almak için oluşturulmuştur, aynı zamanda VSS Donanım Sağlayıcı özelliği de sunar.
Aşağıdaki ilk iş akışında, NAS'den bir iSCSI LUN üzerinde Anlık Görüntü almak istediğinizde, aracı, iSCSI LUN'ye (Windows Sunucusu için) tüm verileri aktarmak veya iSCSI LUN Anlık Görüntü'den önce sanal makine Anlık Görüntü almak için (VMware için) uzak sunucuyu bilgilendirecektir; bu nedenle NAS'tan bir Anlık Görüntü alındığında, uyumlu bir Anlık Görüntü sağlamak için gerekli tüm uygulama verilerini içerecektir.
Örnekler:
- Microsoft Hyper-V Server, veri kaybını önlemek ve Anlık Görüntü içinde tutarlı bir durum sağlamak için belleği içeren bir VM kontrol noktası oluşturacaktır.
- SQL Server, Anlık Görüntü içinde tutarlı bir durum sağlamak için disk üzerindeki veritabanı günlüklerini temizleyecektir.
- VMware, Anlık Görüntü içinde tutarlı bir durum sağlamak için LUN'da bulunan her VM için bir VM Anlık Görüntü oluşturacaktır, aşağıda görüldüğü gibi:

Ayrıca, QNAP Anlık Görüntü Agent, Windows Server için VSS Donanım Sağlayıcısını da içerir. VSS'yi destekleyen yedekleme yazılımı* ile Windows'tan bir iSCSI LUN için yedekleme işi yapmak istiyorsanız, VSS Donanım Sağlayıcısı, Windows Server üzerinde Anlık Görüntü almak için Windows COW (Copy on Write) yerine NAS ROW (Redirect on Write) kullanmanıza olanak tanır ve böylece yedekleme verimliliğini artırır.
*Yedekleme yazılımı VSS Anlık Görüntü desteklemelidir.

2.2. Sistem Gereksinimleri
- Anlık Görüntü Agent'i kullanmak için QTS 4.2 (veya daha yeni) kullanmalısınız.
- QNAP Anlık Görüntü Agent, Windows Server 2008 veya daha yenisi ile uyumludur. GUI yönetimi etkinleştirilmelidir. Windows Server Core ve Windows Hyper-V desteklenmez.
- Windows Server dışında, VMware'de dağıtılan sanal makineler için Anlık Görüntü Agent kullanmanız gerektiğinde VMware vCenter da gereklidir.
- Anlık Görüntü Agent'ı kullanmak için Windows Server'da gelen TCP portu 11169'u açmanız gerekmektedir. Lütfen portu açmak için Microsoft tarafından sağlanan yönergeleri takip edin. Sunucunuz Active Directory üyesiyse ve Güvenlik Duvarı GPO tarafından kontrol ediliyorsa Grup İlkelerini kullanmanız da gerekebilir. Bu işlemleri gerçekleştirmek için Microsoft tarafından sağlanan aşağıdaki sayfalara başvurun:
http://windows.microsoft.com/en-us/windows/open-port-windows-firewall
https://technet.microsoft.com/en-us/library/cc753295 - NAS üzerinde sabit bir IP adresi kullanmanız şiddetle tavsiye edilir.
2.3. Bilinen Kısıtlamalar
- Windows Hyper-V veya VMware'de bir sanal makine için uygulama uyumlu Anlık Görüntü almak için, VM yapılandırması, disk ve Anlık Görüntü/kontrol noktası aynı iSCSI LUN üzerinde bulunmalı ve Anlık Görüntü'ya dahil edilmelidir.
- Sunucuda SMI-S Sağlayıcısı zaten yüklüyse Anlık Görüntü Agent yüklenemez.
- Anlık Görüntü Agent, VMware'de Extents işlevini desteklemez, veri deposunda yalnızca BİR iSCSI LUN olmalıdır.
- Anlık Görüntü Agent, birden fazla LUN'a sahip bir hedefe eşlenen bir LUN'u desteklemez.
- Anlık Görüntü Agent, MPIO ile bağlı bir LUN'u desteklemez.
- Anlık Görüntü Agent, CHAP ile eşlenmiş bir hedefe eşlenen LUN'u desteklemez.
- Geri alma sırasında, Anlık Görüntü Agent yalnızca şu anda vSphere Envanteri'nde kayıtlı olan VM'leri geri alır. Eğer bir VM vSphere'de zaten silinmişse, Anlık Görüntü Agent VM'i envantere eklemez.
2.4. Anlık Görüntü Agent'ı İndirin ve Yükleyin
Lütfen QNAP İndirme Merkezi > Yardımcı Program'a giderek Anlık Görüntü Agent'ımızı indirin:
https://www.qnap.com/utility
Anlık Görüntü Agent'ı yüklemek için, Sunucu Yöneticisi'nde “Uygulama Sunucusu”nda “.Net Framework 3.5” yüklenmiş ve etkinleştirilmiş olmalıdır. Bu özelliği yüklemek için, “Sunucu Yöneticisi” > “Roller ve özellikler ekle” bölümüne gidin ve Roller bölümünde “Uygulama Sunucusu”nu ve Özellik bölümünde “.Net Framework 3.5 özelliği”ni seçin.

Bu özelliği yüklemek için Roller ve Özellikler Ekle Sihirbazı'nda ".Net Framework 3.5 Özellikleri"ni seçin.
Bu özelliğin kurulumu onaylandığında, kurulumu başlatmak için Anlık Görüntü Agent uygulama dosyasını açın. Kurulumu tamamladıktan sonra, masaüstünüzde QNAP Agent Manager adlı bir kısayol görmelisiniz.

Anlık Görüntü Agent kurulumunu tamamlamak için Kurulum sihirbazını takip edin.

QNAP Agent Manager kısayolu daha sonra masaüstünüzde görüntülenecektir.
3. Anlık Görüntü Agent'ı yapılandırın
3.1. Windows Server'da Anlık Görüntü Agent'ı yapılandırın
Anlık Görüntü Agent kurulumunu tamamladıktan sonra, “QNAP Agent Manager”ı açın. Windows Server'ınızın iSCSI Depolama olarak kullandığı QNAP NAS'ı IP adresini sağlayarak veya “Scan NAS” seçeneğine tıklayarak yerel ağda NAS'ı doğrudan bulması için eklemeniz gerekecektir.

Başlangıç sayfası, bu sunucu için iSCSI hedefini sağlayan QNAP NAS IP'sini girmenize olanak tanır

Veya yerel ağda Anlık Görüntü Agent'ı destekleyen QNAP NAS'ı tarayabilirsiniz.
QNAP NAS'ı girdikten veya seçtikten sonra, NAS giriş bilgilerinizi sağlamanız, bağlantı için portu onaylamanız ve kullanmak istediğiniz işlevleri etkinleştirmeniz istenecektir. Bu örnekte, hem VSS H/W sağlayıcısını hem de Windows için Anlık Görüntü Agent'ı seçtik, ardından bu ayarları onaylamak için “Ok” seçeneğine tıklayın. Anlık Görüntü Agent, QNAP NAS'a bağlanacak ve başlangıç sayfasındaki listeye NAS'ın eklendiğini görebilirsiniz.

QNAP NAS kullanıcı adı ve şifresini girin ve etkinleştirmek istediğiniz işlevleri seçin.

NAS listede görünüyor.
3.2 vCenter için Anlık Görüntü Agent'ı yapılandırın
VMware'de sanal makineler için kullanılan iSCSI LUN'ları yedeklemek için Agent Manager'da “VMware Ayarları”na gidebilirsiniz. vCenter Kimlik Bilgileri ayarlarında, vCenter Sunucunuzun IP adresini, Tek Oturum Açma hesabı/şifresini girin ve NAS'tan gelen bir isteği aldığında VMware'in sanal makinesi için nasıl Anlık Görüntü alması gerektiğini seçin.

QNAP Agent Manager'da “VMware ayarları”nı yapılandırın. VM araçları yüklü olmayan sanal makineler için vCenter'ın Anlık Görüntü almasına olanak tanıyan “Anlık Görüntü sanal makinenin belleği”ni seçtik.
Tamamladıktan sonra, QNAP Agent Manager'a bir QNAP NAS eklediğinizde, “Anlık Görüntü Agent for VMware” seçeneği etkinleştirilecek veya mevcut herhangi bir NAS'a sağ tıklayıp “Düzenle”yi seçerek bu seçeneği etkinleştirebilirsiniz.

QNAP Agent Manager'da bir QNAP NAS'ı düzenleyerek Anlık Görüntü Agent for VMware'i etkinleştirin.

Düzenledikten sonra, “Bileşenler” sütununda Anlık Görüntü Agent for VMware görüntülenir ve çalışmaya hazırdır.
4. Bir iSCSI LUN Anlık Görüntü alın
4.1. Windows Server ile iSCSI LUN Anlık Görüntü alın
Agent'ın QNAP NAS'a doğru şekilde bağlı olup olmadığını NAS UI'dan kontrol etmek mümkündür. Web tarayıcınızı açın, QTS'ye giriş yapın ve “Depolama Manager”a girin. “iSCSI Depolama” > “Anlık Görüntü”da, “Anlık Görüntü Agent” menüsünü açın. Şu anda NAS'a bağlı olan tüm Anlık Görüntü Agent'ları görmenizi sağlayacak bir liste görüntülenecektir.

iSCSI Depolama bölümünde “Anlık Görüntü” > “Anlık Görüntü Agent”ı seçin

Bu NAS'a bağlı olan Anlık Görüntü Agent görüntülenecektir.
Uygulamayla Tutarlı Anlık Görüntü almak için, “iSCSI Depolama” kısmında bir iSCSI LUN seçin ve “Anlık Görüntü” açılır düğmesinden “Anlık Görüntü Al” seçeneğini seçin.

"iSCSI Depolama" bölümünde "Anlık Görüntü Al" seçeneğini seçin.
Onay penceresi görüntülendiğinde, "Anlık Görüntü Türü" kısmında "Uygulamayla Tutarlı" seçeneğini seçin ve Anlık Görüntü almaya başlamak için "Tamam" düğmesine tıklayın.

"Anlık Görüntü Türü" kısmında lütfen "Uygulamayla Tutarlı" seçeneğini seçin.
Not: “Çökme Tutarlı” Anlık Görüntü, standart NAS Anlık Görüntü oldukları için Anlık Görüntü almadan önce uzak sunucuyla iletişim kurmayacaktır.
Uygulamayla Tutarlı Anlık Görüntü alırken, QNAP NAS Windows Sunucusu'na bir istek gönderir. Anlık Görüntü öncesinde ilgili tüm verileri iSCSI LUN'a aktaracaktır.
Aşağıdaki örnekte, Hyper-V kullanılarak, iSCSI LUN 24/7 çalışan bir sanal makine içerir. NAS'tan Anlık Görüntü işlevini kullanırken, Uygulamayla Tutarlı seçeneği ile Windows Sunucusu NAS'tan gelen isteği alır ve VM'nin bir kontrol noktası oluşturur.
Bu, kısa bir süre için Hyper-V Manager arayüzünde görülebilir*: Kontrol noktası oluşturulurken VM'nin durumu değişir. VM durumu, bellek ve disk iSCSI LUN Anlık Görüntü'e dahil edilecektir.
*VM yapılandırması, disk ve kontrol noktası, Anlık Görüntü'a dahil edilmek üzere iSCSI LUN üzerinde bulunmalıdır.

QTS'de “Anlık Görüntü Al” seçildiğinde, Q’center sanal cihazlarının durumu “Yedekleniyor” olarak değişecektir. Bu, Windows Server'ın NAS'tan isteği aldığını ve verileri iSCSI LUN'a aktarmaya başlayacağını gösterir.
*Hyper-V sürümüne bağlı olarak, kullanıcı arayüzü farklı olabilir.
4.2. VMware ile iSCSI LUN Anlık Görüntü alma
iSCSI LUN'lar için VMware ile Anlık Görüntü almak için gereken işlemler Windows Server ile aynıdır. QTS'ye giriş yapın, “Depolama Yöneticisi”ne gidin ve “iSCSI Depolama” bölümünde VMware'de sanal makineleri depolamak için kullanılan iSCSI LUN'u seçin. “Anlık Görüntü” > “Bir Anlık Görüntü Al” seçeneğini seçin.

“Uygulama Uyumlu” Anlık Görüntü türü ile Anlık Görüntü almak için VMware tarafından kullanılan iSCSI LUN'u seçin.
QNAP NAS'tan Anlık Görüntü isteği alındığında, vCenter NAS iSCSI LUN'unda depolanan her sanal makine için bir VMware Anlık Görüntü alacak ve bu Anlık Görüntü'ları iSCSI LUN'da depolayacaktır. Ardından, NAS her sanal makine için VMware Anlık Görüntü içeren başka bir uygulama uyumlu iSCSI LUN Anlık Görüntü alacaktır. Bu işlem vSphere Web Client'in Görevler bölümünde görülebilir. VMware Anlık Görüntü, iSCSI LUN Anlık Görüntü'a dahil edildikten sonra kaldırılacaktır.

vCenter sunucuları, aracı bir Anlık Görüntü isteği gönderdiğinde her sanal makine için VMware Anlık Görüntü alacak ve her VMware Anlık Görüntü iSCSI LUN Anlık Görüntü'a dahil edildikten sonra bunları kaldıracaktır.
*vSphere Web Client sürümüne bağlı olarak, kullanıcı arayüzü farklı olabilir.
Ayrıca, planlanmış bir yedekleme işi oluşturmak için “Anlık Görüntü Yöneticisi” veya “Anlık Görüntü Çoğaltma” kullanmak da mümkündür. “Uygulama Uyumlu” seçeneği mevcuttur.

Uygulama Uyumlu Anlık Görüntü ile iSCSI LUN için bir Anlık Görüntü programı oluşturmak için Anlık Görüntü Yöneticisi'ni de kullanabilirsiniz.
4.3 Bir Anlık Görüntü'i Geri Alma
Bir Uygulama Tutarlı Anlık Görüntü'i, bir Anlık Görüntü'i NAS birimine geri almak gibi iSCSI LUN'a geri alabilirsiniz. Bir Anlık Görüntü'in uygulama tutarlı olup olmadığını kontrol etmek için bir LUN seçin ve “Anlık Görüntü Yöneticisi”ni açın. Liste görünümünde, Anlık Görüntü Agent ile alınan Anlık Görüntü'lerin uygulama tutarlı olup olmadığını görebilirsiniz.

Anlık Görüntü Agent ile alınan Anlık Görüntü, Anlık Görüntü Yöneticisi'nde “uygulama tutarlı” olarak sınıflandırılacaktır.
Windows Server'a bağlı bir iSCSI LUN için bir Anlık Görüntü'i geri almak için önce LUN'u bağlantısını kesin, ardından LUN'u seçin ve kullanmak istediğiniz Anlık Görüntü'i seçmek için “Anlık Görüntü” > “Anlık Görüntü Yöneticisi”ni kontrol edin.

Geri almadan önce Windows Server'dan bağlı bir iSCSI LUN'un bağlantısını kestiğinizden emin olun.

Aksi takdirde, Anlık Görüntü işlemi başarısız olacaktır.

Bağlantıyı kestikten sonra, Anlık Görüntü Yöneticisi'nde geri alma işlemini onaylayın.

Onayladıktan sonra, Anlık Görüntü Yöneticisi'nde geri alma ilerlemesini görebilirsiniz.
Geri alma işlemi tamamlandıktan sonra, iSCSI LUN'u Windows Server'dan yeniden bağlayabilirsiniz. Hyper-V durumunda, sanal makinelerin tüm yapılandırmaları, kontrol noktaları dahil olmak üzere iSCSI LUN'da saklanır.
VMware için, Anlık Görüntü Agent yüklendiğinde ve bağlandığında, iSCSI LUN'un Anlık Görüntü'ini doğrudan geri alabilirsiniz, çünkü Anlık Görüntü Agent, iSCSI LUN'u (Datastore) ESXi ana bilgisayarlarından otomatik olarak ayıracak, Anlık Görüntü'i geri alacak, ardından geri alınan LUN'u (Datastore) yeniden bağlayacak ve VM'i geri alacaktır (ancak VM geri almadan önce silinmişse, envanterde VM'i manuel olarak okumak gerekebilir). Eklendikten sonra, vCenter, iSCSI LUN'daki sanal makineyi geri yüklemek için VMware Anlık Görüntü'i kullanmaya devam edebilir ve böylece iSCSI LUN'da geri yüklenen sanal makinelerin uygulama tutarlı olmasını sağlayabilir.

vSphere Web Client'te, geri alma işlemi başladığında iSCSI LUN'un vCenter'dan ayrıldığını ve geri alma işlemi tamamlandığında tekrar bağlanabileceğini göreceksiniz. Ardından vCenter, iSCSI LUN'da depolanan sanal makineleri geri yüklemek için VMware Anlık Görüntü kullanacaktır.
5. Windows Server için VSS Donanım Sağlayıcı
Anlık Görüntü Aracısı, VSS Donanım Sağlayıcı içerir. Bu işlevi kullanmak için VSS Anlık Görüntü işlevini destekleyen yedekleme yazılımına sahip olmanız gerekir. Bu belgede, örnek olarak QNAP NetBak Replicator kullanıyoruz. VSS donanım sağlayıcı işlevini kullanmanın ilk adımı, yedekleme yazılımınızı VSS'i etkinleştirecek şekilde yapılandırmak ve yazılımın Anlık Görüntü oluşturmasına izin vermektir. Bu ayarları tamamladıktan sonra, QNAP NAS üzerindeki bir iSCSI LUN için yedekleme işi oluşturmak üzere yedekleme yazılımını kullanabilirsiniz.

“Gelişmiş Ayarlar” > “Açık Dosyalar için Yedekleme Ayarları” bölümünde, VSS'i etkinleştirebilir ve NetBak Replicator'ın dosyaları yedeklerken Anlık Görüntü almasına izin verebilirsiniz.

QNAP NAS tarafından sağlanan iSCSI LUN için yedekleme işleri oluşturmak üzere yedekleme yazılımını kullanın.
Yedekleme yazılımı VSS kullanarak bir Anlık Görüntü oluşturduğunda, Anlık Görüntü Windows Server yerine NAS üzerinde alınacaktır.
Yedekleme devam ederken NAS arayüzünde görülebilir: “Depolama Yöneticisi” > “iSCSI Depolama” bölümünde, yedekleme süresi boyunca “vss” adlı başka bir iSCSI LUN'un oluşturulduğunu göreceksiniz. Bu LUN, NAS'ın yedekleme işi için oluşturduğu Anlık Görüntü'dir, böylece yedekleme yazılımı bu Anlık Görüntü iSCSI LUN'u kullanarak verileri yedekleyecektir.

Yedekleme yazılımı bir Anlık Görüntü oluşturuyor.

Anlık Görüntü, Windows Server'da değil, NAS üzerinde oluşturuldu. “iSCSI Depolama” bölümünde yedekleme işi için geçici olarak “vss” adlı başka bir iSCSI LUN oluşturulacaktır.
Yedekleme işinin tamamlandığını onayladıktan sonra, NAS üzerindeki “vss” iSCSI LUN Anlık Görüntü'nin Windows Server'daki VSS bileşenleri tarafından kaldırıldığını göreceksiniz.