VMDK size is one of the main aspects to consider for administrators when deploying new VMs since it could introduce several hazards in storage space usage. By introducing thin provisioning VMware mitigated space exhaustion issues due to the fact that this provisioning mechanism allocates only blocks that are effectively used by the operating system residing on VMDK itself preventing in this way storage to be pre-emptively filled by overzealous admins planning for big virtual machine disks.
But what about shrinking size of those VMDKs that were already provisioned using thick provisioning? They usually consume a lot of storage space and not always their thick allocation is justified. Usually thick eager is the allocation mechanism choosen for I/O intensive virtual machines due to the fact that by zeroing blocks during VMDK creation, and not when operating system issues the first write on a block, introduce a little performance increase (just on first write though).
As most of you certainly know thick lazy zeroed is another allocation mechanism that pre-emptively reserve storage space required by the virtual machine VMDK. Difference between thick lazy and thick eager is that the former reserve whole VMDK size on storage without zeroing blocks, which will be zeroed at first write.
Another crucial aspect to consider is that ESXi is not aware of space freed by the upper operating system due to file deletion. This space cannot be reclaimed by underlying hypervisor and because of this VMDK cannot be "downsized automatically".
Let's clarify this with an example: suppose that we have a virtual machine whose VMDK is thin provisioned.
Operating system is 5GB in size. We install 2GB of additional software. Operating system will report a space consumption of 5+2=7GB. VMDK will be the same (5+2=7GB) size.
We later decide that additional software just installed is useless so we delete/uninstall it. Operating system will report a space consumption of 7-2=5GB. VMDK will be unchanged with a size of 7GB.
This is because ESXi is not aware that space is currently unused by the guest OS and cannot reclaim it.
By shrinking VMDKs this space can be reclaimed. A prior important condition for unused space reclamation is that operating system zeroes currently unused blocks, this means that for shrink to be the most effective guest operating system should fill all currently unused space with zeroes. This can be done in Windows guests by using softwares like Hard Disk Scrubber or SDelete and in Linux guest with dd if=/dev/zero of=/<destination_path>/placeholderfile bs=8192 && rm -rf /<destination_path>/placeholderfile command.
Since unused space is reclaimed after a shrink operation VMDK will be converted from thin, eager zeroed, lazy zeroed to a thin provisioned VMDK.
Let's now delve into how shrinking is performed. A common method is using Storage vMotion. When storage vMotioning a virtual machine resulting disk format can be choosen. Another method is using VMware Converter by converting guest OS like a classic P2V conversion. Pros of those two methods is that they can be performed while VM is powered on.
A third method to shrink a VMDK is by Using vmkfstools.
This method requires the VM to be powered off during shrinking process and you to connect to ESXi host using SSH to run some commands.
For article purpouse I created a VM with a thick provisioned VMDK. Following image show you space usage reported at Linux guest level:
Guest OS reports a total space of 60GB of which 2.3 GB are currently used.
Since it's thick provisioned VMDK is also 60GB in size
To shrink VMDK using vmkfstools the following command is used:
vmkfstools --punchzero <path_to_VMDK_to_shrink>.vmdk
--punchzero option is quite self-explicative, it basically removes all zeroed blocks in a VMDK by freeing up space.
As you can expect, based on previous explanation, the resultant VMDK will be shrinked down to the size of effective guest OS space usage.
That's all!!
Visualizzazione post con etichetta virtualization. Mostra tutti i post
Visualizzazione post con etichetta virtualization. Mostra tutti i post
lunedì 30 dicembre 2013
lunedì 16 dicembre 2013
VMware: vSphere Replication Part 7 - Provision additional Replication Servers
As stated in previous article vSphere Replication architecture comprises two key elements: vSphere Replication Manager and one or more vSphere Replication Servers. Although there is only one vSphere Replication Manager in a vSphere Replication deployment we can add more than just one vSphere Replication Server in our environment to achieve a better load balancing for replicating VMs to target site.
Provisioning more than one vSphere Replication Server concurr in offloading replication tasks to more than just one server leading to a potentially faster replication process.
How can we deploy more than just the standard vSphere Replication Server comprised in vSphere Replication Appliance?
The process is really simple, just login to vSphere Web Client and select vSphere Replication -> Home -> Manage -> vSphere Replication -> Replication Servers and click Deploy Additional RS Server.
The usual OVF deploy form will pop-out, make sure you select the assembly file vSphere_Replication_AddOn_OVF10.ovf that came with vSphere Replication appliance iso downloaded from VMware website.
You will need to provide IP address or leave DHCP assignation if you prefer, and an administrative password to manage the server. Please bear in mind that vSphere Replication Server unlike vSphere Replication Management Server does not have a VAMI so you cannot login to a webpage to configure it but vSphere Replication Management Server will address this for you and will give you the opportunity to configure additional vSphere Replication Servers from it's VAMI.
Once deployed and powered on we can add it as an additional replication server.
Click Register vSphere Replication Server and select the newly deployed standalone server.
Newly deployed vSphere Replication Server will be added and will be listed under Replication Servers page.
Additional vSphere Replication Server can now be selected when performing a replication. Auto-assign mechanisms will always choose least busy vSphere Replication Server (i.e the one with least replications assigned) while manual selection gives you the opportunity to manually choose by which server your VMs will be replicated to target.
Other blog posts in vSphere Replication Series:
vSphere Replication Part 1 - Introduction
vSphere Replication Part 2 - Installation
vSphere Replication Part 3 - Roles & Permissions
vSphere Replication Part 4 - Configuration
vSphere Replication Part 5 - Enable Replication
vSphere Replication Part 6 - Perform Recovery
vSphere Replication Part 7 - Provision additional Replication Servers
Provisioning more than one vSphere Replication Server concurr in offloading replication tasks to more than just one server leading to a potentially faster replication process.
How can we deploy more than just the standard vSphere Replication Server comprised in vSphere Replication Appliance?
The process is really simple, just login to vSphere Web Client and select vSphere Replication -> Home -> Manage -> vSphere Replication -> Replication Servers and click Deploy Additional RS Server.
The usual OVF deploy form will pop-out, make sure you select the assembly file vSphere_Replication_AddOn_OVF10.ovf that came with vSphere Replication appliance iso downloaded from VMware website.
You will need to provide IP address or leave DHCP assignation if you prefer, and an administrative password to manage the server. Please bear in mind that vSphere Replication Server unlike vSphere Replication Management Server does not have a VAMI so you cannot login to a webpage to configure it but vSphere Replication Management Server will address this for you and will give you the opportunity to configure additional vSphere Replication Servers from it's VAMI.
Once deployed and powered on we can add it as an additional replication server.
Click Register vSphere Replication Server and select the newly deployed standalone server.
Newly deployed vSphere Replication Server will be added and will be listed under Replication Servers page.
Additional vSphere Replication Server can now be selected when performing a replication. Auto-assign mechanisms will always choose least busy vSphere Replication Server (i.e the one with least replications assigned) while manual selection gives you the opportunity to manually choose by which server your VMs will be replicated to target.
Other blog posts in vSphere Replication Series:
vSphere Replication Part 1 - Introduction
vSphere Replication Part 2 - Installation
vSphere Replication Part 3 - Roles & Permissions
vSphere Replication Part 4 - Configuration
vSphere Replication Part 5 - Enable Replication
vSphere Replication Part 6 - Perform Recovery
vSphere Replication Part 7 - Provision additional Replication Servers
venerdì 13 dicembre 2013
VMware: vSphere Replication Part 6 - Perform Recovery
When everything goes berserk it is time to perform a recovery!!
vSphere Replication's main goal is to allow administrators to recover corrupted or lost VM disks. Recovery process is quite simple yet at the same time really ingenious. How does it works?
On a global level the process comprises the following steps:
1)Select VM to recover
2)Recover VM on replication site, power it on, verify it works as expected
3)Configure an inverse replication process to move back VM from destination to source site
Let's now delve more into these steps to see how recovery is performed.
As first it could be intresting to note the fact that if virtual machine is available at source site vSphere Replication allows you to synchronize disk data back from target site to source site. This could be useful in case of something goes wrong at source site VM but VM itself is still available and running.
For this article purpose I will consider a proper failure scenario in which VM at source site went corrupted.
As pointed out in previous articles my lab comprises two sites: SiteA and SiteB each managed by a different vCenter.
To perform VM recovery connect to vCenter at remote site (SiteB) and select Monitor -> vSphere Replication -> Manage -> Incoming Replications. Select the VM, right click on it and then click Recover button.
Recover procedure will pop-out and will guide you through the process.
First selection concerns recovery options, as said before I will go through a complete failure of source SiteA.
Select where to recover VM. In this case I created a dedicated folder in my datacenter where to place recovered VMs.
Select host that will host your VM
Then when ready click Finish. You also might want to select Power on the virtual machine after recovery. Don't worry about potential VM IP address conflicts, I will later explain why.
Once recovery has been performed a new VM will be created on your source site (SiteB) and on Summary tab of the VM you will be informed the VM was recovered.
If when enabling replication you selected to keep PIT copies of your VM all these point in times were associated to the VM as form of snapshots. To recover VM state at a certain PIT right click VM, select Snapshots Manager and all snapshots (PITs) will be listed there.
Once the VM has been recovered to the desired PIT and powered on if you open VM console you will notice that VM has no network attached. This is because recovering a VM and powering it on on remote site (SiteB) could introduce IP addresses conflicts with other VMs already there at the remote site.
To prevent such conflicts by default recovered VMs has no network connected.
To re-attach network adapter in recovered VM just right click it, select Edit Settings and check Connected box right to the network adapter.
VM is now fully functional at remote site (SiteB) but how about moving it back to local site (SiteA)? To move VM back to source site a reverse replication must be configured. By enabling vSphere Replication on recovered VM at target site back to source site will bring VM back at it's original place.
This can be performed as explained in vSphere Replication Part 5 - Enable Replication article reversing sites i.e. SiteB will be source site and SiteA will be destination site.
Other blog posts in vSphere Replication Series:
vSphere Replication Part 1 - Introduction
vSphere Replication Part 2 - Installation
vSphere Replication Part 3 - Roles & Permissions
vSphere Replication Part 4 - Configuration
vSphere Replication Part 5 - Enable Replication
vSphere Replication Part 6 - Perform Recovery
vSphere Replication Part 7 - Provision additional Replication Servers
vSphere Replication's main goal is to allow administrators to recover corrupted or lost VM disks. Recovery process is quite simple yet at the same time really ingenious. How does it works?
On a global level the process comprises the following steps:
1)Select VM to recover
2)Recover VM on replication site, power it on, verify it works as expected
3)Configure an inverse replication process to move back VM from destination to source site
Let's now delve more into these steps to see how recovery is performed.
As first it could be intresting to note the fact that if virtual machine is available at source site vSphere Replication allows you to synchronize disk data back from target site to source site. This could be useful in case of something goes wrong at source site VM but VM itself is still available and running.
For this article purpose I will consider a proper failure scenario in which VM at source site went corrupted.
As pointed out in previous articles my lab comprises two sites: SiteA and SiteB each managed by a different vCenter.
To perform VM recovery connect to vCenter at remote site (SiteB) and select Monitor -> vSphere Replication -> Manage -> Incoming Replications. Select the VM, right click on it and then click Recover button.
Recover procedure will pop-out and will guide you through the process.
First selection concerns recovery options, as said before I will go through a complete failure of source SiteA.
Select where to recover VM. In this case I created a dedicated folder in my datacenter where to place recovered VMs.
Select host that will host your VM
Then when ready click Finish. You also might want to select Power on the virtual machine after recovery. Don't worry about potential VM IP address conflicts, I will later explain why.
Once recovery has been performed a new VM will be created on your source site (SiteB) and on Summary tab of the VM you will be informed the VM was recovered.
If when enabling replication you selected to keep PIT copies of your VM all these point in times were associated to the VM as form of snapshots. To recover VM state at a certain PIT right click VM, select Snapshots Manager and all snapshots (PITs) will be listed there.
Once the VM has been recovered to the desired PIT and powered on if you open VM console you will notice that VM has no network attached. This is because recovering a VM and powering it on on remote site (SiteB) could introduce IP addresses conflicts with other VMs already there at the remote site.
To prevent such conflicts by default recovered VMs has no network connected.
To re-attach network adapter in recovered VM just right click it, select Edit Settings and check Connected box right to the network adapter.
VM is now fully functional at remote site (SiteB) but how about moving it back to local site (SiteA)? To move VM back to source site a reverse replication must be configured. By enabling vSphere Replication on recovered VM at target site back to source site will bring VM back at it's original place.
This can be performed as explained in vSphere Replication Part 5 - Enable Replication article reversing sites i.e. SiteB will be source site and SiteA will be destination site.
Other blog posts in vSphere Replication Series:
vSphere Replication Part 1 - Introduction
vSphere Replication Part 2 - Installation
vSphere Replication Part 3 - Roles & Permissions
vSphere Replication Part 4 - Configuration
vSphere Replication Part 5 - Enable Replication
vSphere Replication Part 6 - Perform Recovery
vSphere Replication Part 7 - Provision additional Replication Servers
lunedì 9 dicembre 2013
VMware: vSphere Replication Part 5 - Enable Replication
We already discussed about vSphere Replication, how to install it, how to configure it and now it is finally time to replicate VMs.
Replication can be set on individual VMs through a step-by-step guided configuration in which you will be prompted for destination datastore, RPO, replication server to use, wheter to keep or not PIT copies, etc.
As discussed in vSphere Replication Part 2 - Installation my environment comprises two sites (local SiteA and remote SiteB) managed by two different vCenters.
vSphere Replication can only be managed from vSphere Web Client, so login into it and click on vSphere Replication.
Select Home tab, then your local (SiteA) vCenter Server and click Manage.
To verify everything is properly working we need to check that our local Replication Server is connected. Click on vSphere Replication -> Replication Servers.
vSphere Replication Appliance will be listed since as for now it is the only vSphere Replication Server deployed in our environment.
Let's add a target site establishing connection to remote SiteB's vCenter. Click Target Sites.
Enter remote vCenter Server FQDN or IP Address and credentials. Since this is a test deployment and I'm the only user administrating the whole infrastructure I will use Administrator role to connect to remote vCenter. A best practice is to restrict users permissions whether your infrastructure comprises different users or not. For further informations have a look at previous article: vSphere Replication Part 3 - Roles & Permission.
Target site (SiteB) will be listed as connected.
We have completed the initial replication setup, we have linked our local vSphere Replication Server to the remote vSphere Replication Server using vCenters as replication proxyies.
Let's enable replications on single VMs.
Select the VM(s) you need to replicate, right click then select All vSphere Replication Actions -> Configure Replication.
Select vSphere Replication Server location to use for replication. Here you can select both local vSphere Replication Server and remote vSphere Replication Server. I will be using SiteB remote vSphere Replication Server.
Since every location could have more than one vSphere Replication Servers you can use Auto-assign vSphere Replication Server or manually select it. Auto-assign will assign by default the least busy one (i.e. the one that has fewer replications).
Select Target Datastore, this will be replication destination datastore. If you selected a remote vSphere Replication Server remote datastores managed by remote vCenter will be available.
Next select quiescing method for VM. VSS is only enabled if you are replicating a Windows virtual machine. Using VSS while quiescing VM for creating PIT consistent copy to be sent to target datastore provides consistency not only to VM itself but even application-level consistency. If VSS quiescing occurrs correctly data integrity is retained in databases like Exchange, ActiveDirectory, etc.
Next selection is RPO. Recovery Point Objective (RPO) metric indicates how much data your are willing to loss in case of a distaster. vSphere Replication allow RPO from a maximum of 24 hours up to a minimum of 15 minutes. As explained in introduction post more aggressive RPOs cannot be achieved due to the fact that quiescing too frequently a VM could introduce a performance degradation of the VM itself.
RPO selection is a key setting during replication and must be planned carefully. Low RPOs cannot always be achieved due to technical constraints. A key element to consider is the bandwidth available between source site and target site since it affects the time needed to copy changes from SiteA to SiteB therefore RPOs.
Let's discuss it in a more detailed and practical aspect to better clarify this concept. Consider a VM that has the most aggressive RPO allowed by vSphere Replication (15minutes). A common disbelief is that RPO of 15mins means that every 15 minutes virtual machine at source site is replicated over to destination site. This is incorrect, RPO of 15 minutes means that VM state at remote site can be at a maximum of 15mins older in comparison to the virtual machine state at source site. vSphere Replication documentation has a nice example of this concept, let's quote it:
You set the RPO during replication configuration to 15 minutes. If the replication starts at 12:00 and it takes five minutes to transfer to the target site, the instance becomes available on the target site at 12:05, but it reflects the state of the virtual machine at 12:00. The next replication can start no later than 12:10. This replication instance is then available at 12:15 when the first replication instance that started at 12:00 expires.
If you set the RPO to 15 minutes and the replication takes 7.5 minutes to transfer an instance, vSphere Replication transfers an instance all the time. If the replication takes more than 7.5 minutes, the replication encounters periodic RPO violations. For example, if the replication starts at 12:00 and takes 10 minutes to transfer an instance, the replication finishes at 12:10. You can start another replication immediately, but it finishes at 12:20. During the time interval 12:15-12:20, an RPO violation occurs because the latest available instance started at 12:00 and is too old.
Another element to consider when planning RPO is the average amount of modified data in the VM. Since vSphere Replication transfer deltas only you should consider the variation of delta size between two replications. Can available connection bandwidth transfer this delta over to the destination site meeting selected RPO? Is this delta quite constant in its size or VM workload patterns bring in some spikes in data committed to VM disks making these deltas grow bigger and unpredictably therefore potentially preventing connection to complete the transfer of the entire delta during replication?
In conclusion when considering the right RPO for your VMs you must do some math based on available bandwidth between source and target site as well as delta file size increase due to virtual machine workload patterns.
Another feature of vSphere Replication are Point In Time (PIT) instances. These are used to "freeze" the state of a certain virtual machine at a certain moment. By enabling PIT copies you can select how many instances to keep and for how many days.
Once selected RPO we are ready to complete, click Finish.
Click on the replicated VM, under Summary tab a new dashboard called VM Replication will appear.
To monitor current replication configured for vCenter, both incoming or outgoing, go to vCenter -> Monitor -> vSphere Replication.
Other blog posts in vSphere Replication Series:
vSphere Replication Part 1 - Introduction
vSphere Replication Part 2 - Installation
vSphere Replication Part 3 - Roles & Permissions
vSphere Replication Part 4 - Configuration
vSphere Replication Part 5 - Enable Replication
vSphere Replication Part 6 - Perform Recovery
vSphere Replication Part 7 - Provision additional Replication Servers
Replication can be set on individual VMs through a step-by-step guided configuration in which you will be prompted for destination datastore, RPO, replication server to use, wheter to keep or not PIT copies, etc.
As discussed in vSphere Replication Part 2 - Installation my environment comprises two sites (local SiteA and remote SiteB) managed by two different vCenters.
vSphere Replication can only be managed from vSphere Web Client, so login into it and click on vSphere Replication.
Select Home tab, then your local (SiteA) vCenter Server and click Manage.
To verify everything is properly working we need to check that our local Replication Server is connected. Click on vSphere Replication -> Replication Servers.
vSphere Replication Appliance will be listed since as for now it is the only vSphere Replication Server deployed in our environment.
Let's add a target site establishing connection to remote SiteB's vCenter. Click Target Sites.
Enter remote vCenter Server FQDN or IP Address and credentials. Since this is a test deployment and I'm the only user administrating the whole infrastructure I will use Administrator role to connect to remote vCenter. A best practice is to restrict users permissions whether your infrastructure comprises different users or not. For further informations have a look at previous article: vSphere Replication Part 3 - Roles & Permission.
Target site (SiteB) will be listed as connected.
We have completed the initial replication setup, we have linked our local vSphere Replication Server to the remote vSphere Replication Server using vCenters as replication proxyies.
Let's enable replications on single VMs.
Select the VM(s) you need to replicate, right click then select All vSphere Replication Actions -> Configure Replication.
Select vSphere Replication Server location to use for replication. Here you can select both local vSphere Replication Server and remote vSphere Replication Server. I will be using SiteB remote vSphere Replication Server.
Since every location could have more than one vSphere Replication Servers you can use Auto-assign vSphere Replication Server or manually select it. Auto-assign will assign by default the least busy one (i.e. the one that has fewer replications).
Select Target Datastore, this will be replication destination datastore. If you selected a remote vSphere Replication Server remote datastores managed by remote vCenter will be available.
Next select quiescing method for VM. VSS is only enabled if you are replicating a Windows virtual machine. Using VSS while quiescing VM for creating PIT consistent copy to be sent to target datastore provides consistency not only to VM itself but even application-level consistency. If VSS quiescing occurrs correctly data integrity is retained in databases like Exchange, ActiveDirectory, etc.
Next selection is RPO. Recovery Point Objective (RPO) metric indicates how much data your are willing to loss in case of a distaster. vSphere Replication allow RPO from a maximum of 24 hours up to a minimum of 15 minutes. As explained in introduction post more aggressive RPOs cannot be achieved due to the fact that quiescing too frequently a VM could introduce a performance degradation of the VM itself.
RPO selection is a key setting during replication and must be planned carefully. Low RPOs cannot always be achieved due to technical constraints. A key element to consider is the bandwidth available between source site and target site since it affects the time needed to copy changes from SiteA to SiteB therefore RPOs.
Let's discuss it in a more detailed and practical aspect to better clarify this concept. Consider a VM that has the most aggressive RPO allowed by vSphere Replication (15minutes). A common disbelief is that RPO of 15mins means that every 15 minutes virtual machine at source site is replicated over to destination site. This is incorrect, RPO of 15 minutes means that VM state at remote site can be at a maximum of 15mins older in comparison to the virtual machine state at source site. vSphere Replication documentation has a nice example of this concept, let's quote it:
You set the RPO during replication configuration to 15 minutes. If the replication starts at 12:00 and it takes five minutes to transfer to the target site, the instance becomes available on the target site at 12:05, but it reflects the state of the virtual machine at 12:00. The next replication can start no later than 12:10. This replication instance is then available at 12:15 when the first replication instance that started at 12:00 expires.
If you set the RPO to 15 minutes and the replication takes 7.5 minutes to transfer an instance, vSphere Replication transfers an instance all the time. If the replication takes more than 7.5 minutes, the replication encounters periodic RPO violations. For example, if the replication starts at 12:00 and takes 10 minutes to transfer an instance, the replication finishes at 12:10. You can start another replication immediately, but it finishes at 12:20. During the time interval 12:15-12:20, an RPO violation occurs because the latest available instance started at 12:00 and is too old.
Another element to consider when planning RPO is the average amount of modified data in the VM. Since vSphere Replication transfer deltas only you should consider the variation of delta size between two replications. Can available connection bandwidth transfer this delta over to the destination site meeting selected RPO? Is this delta quite constant in its size or VM workload patterns bring in some spikes in data committed to VM disks making these deltas grow bigger and unpredictably therefore potentially preventing connection to complete the transfer of the entire delta during replication?
In conclusion when considering the right RPO for your VMs you must do some math based on available bandwidth between source and target site as well as delta file size increase due to virtual machine workload patterns.
Another feature of vSphere Replication are Point In Time (PIT) instances. These are used to "freeze" the state of a certain virtual machine at a certain moment. By enabling PIT copies you can select how many instances to keep and for how many days.
Once selected RPO we are ready to complete, click Finish.
Click on the replicated VM, under Summary tab a new dashboard called VM Replication will appear.
To monitor current replication configured for vCenter, both incoming or outgoing, go to vCenter -> Monitor -> vSphere Replication.
Other blog posts in vSphere Replication Series:
vSphere Replication Part 1 - Introduction
vSphere Replication Part 2 - Installation
vSphere Replication Part 3 - Roles & Permissions
vSphere Replication Part 4 - Configuration
vSphere Replication Part 5 - Enable Replication
vSphere Replication Part 6 - Perform Recovery
vSphere Replication Part 7 - Provision additional Replication Servers
venerdì 6 dicembre 2013
VMware: vSphere Replication Part 4 - Configuration
vSphere Replication is ready out-of-the-box, once the appliance has been deployed it is ready to be used but what if you need to change some settings?
vSphere Replication Appliance has a VAMI (VMware Appliance Management Interface) that can be accessed from:
https://<vSphere_Replication_IP_or_FQDN>:5480
All configuration changes are performed through VAMI
The most important tabs are VR -> Configuration
Here you can configure vSphere Replication database. If embedded database is not sufficient for your deployment you can also use and external SQL or Oracle database as well as import existing DB from another vSphere Replication Manager Server.
VRM Host can be edited in case you need to change to another vSphere Replication Manager Server in your environment.
VRM Site Name and vCenter Server Address, vCenter Server Port and vCenter Server Admin Mail can also be customized.
SSL section allows you to accept only signed certificates as well as generate a self-signed certificate and/or upload an existing one.
Service Status section allow you to monitor the state of vSphere Replication Manager Server and restart it.
VR -> Security tab allows you to change vSphere Replication password and VR -> Support to generate the support bundle useful in case of service request.
Network -> Address is used to change vSphere Replication Appliance network settings like hostname, IP address, default gateway, etc.
Other blog posts in vSphere Replication Series:
vSphere Replication Part 1 - Introduction
vSphere Replication Part 2 - Installation
vSphere Replication Part 3 - Roles & Permissions
vSphere Replication Part 4 - Configuration
vSphere Replication Part 5 - Enable Replication
vSphere Replication Part 6 - Perform Recovery
vSphere Replication Part 7 - Provision additional Replication Servers
vSphere Replication Appliance has a VAMI (VMware Appliance Management Interface) that can be accessed from:
https://<vSphere_Replication_IP_or_FQDN>:5480
All configuration changes are performed through VAMI
The most important tabs are VR -> Configuration
Here you can configure vSphere Replication database. If embedded database is not sufficient for your deployment you can also use and external SQL or Oracle database as well as import existing DB from another vSphere Replication Manager Server.
VRM Host can be edited in case you need to change to another vSphere Replication Manager Server in your environment.
VRM Site Name and vCenter Server Address, vCenter Server Port and vCenter Server Admin Mail can also be customized.
SSL section allows you to accept only signed certificates as well as generate a self-signed certificate and/or upload an existing one.
Service Status section allow you to monitor the state of vSphere Replication Manager Server and restart it.
VR -> Security tab allows you to change vSphere Replication password and VR -> Support to generate the support bundle useful in case of service request.
Network -> Address is used to change vSphere Replication Appliance network settings like hostname, IP address, default gateway, etc.
Other blog posts in vSphere Replication Series:
vSphere Replication Part 1 - Introduction
vSphere Replication Part 2 - Installation
vSphere Replication Part 3 - Roles & Permissions
vSphere Replication Part 4 - Configuration
vSphere Replication Part 5 - Enable Replication
vSphere Replication Part 6 - Perform Recovery
vSphere Replication Part 7 - Provision additional Replication Servers
lunedì 2 dicembre 2013
VMware: vSphere Replication Part 3 - Roles & Permissions
Since vSphere Replication features multisite and cross-vCenter replication capabilities VMware introduced new roles to meet strict security requirements of a deployment scenario with multiple vCenter servers.
New roles are added into vCenter as vSphere Replication Appliance deployment is completed.
These roles will be assigned to specific users and/or groups who will specifically deal with vSphere Replication.
Roles are pre-built to allow users to perform just certain specific tasks they are permitted to. These tasks are such as recovering replicated VMs or viewing replication status with no further permissions.
The following Roles are added:
VRM Replication Viewer:
View replications
Cannot change replication parameters
VRM Virtual Machine Replication User:
View replications
Manage datastores
Configure and unconfigure replications
Manage and monitor replications
VRM Administrator:
Incorporates all vSphere Replication privileges
VRM Diagnostics:
Generate, retrieve, and delete log bundles
VRM Target Datastore User:
Configure and reconfigure replications
Used on target site in combination with the VRM virtual machine replication user role on both sites
VRM Virtual Machine Recovery User:
Recover virtual machines
For any further information regarding these roles refer to vSphere Replication Roles Reference.
To assign to a certain user/group vSphere Replication roles have a look at my previous article: Users, Groups and Roles management in vSphere 5.5.
Other blog posts in vSphere Replication Series:
vSphere Replication Part 1 - Introduction
vSphere Replication Part 2 - Installation
vSphere Replication Part 3 - Roles & Permissions
vSphere Replication Part 4 - Configuration
vSphere Replication Part 5 - Enable Replication
vSphere Replication Part 6 - Perform Recovery
vSphere Replication Part 7 - Provision additional Replication Servers
New roles are added into vCenter as vSphere Replication Appliance deployment is completed.
These roles will be assigned to specific users and/or groups who will specifically deal with vSphere Replication.
Roles are pre-built to allow users to perform just certain specific tasks they are permitted to. These tasks are such as recovering replicated VMs or viewing replication status with no further permissions.
The following Roles are added:
VRM Replication Viewer:
View replications
Cannot change replication parameters
VRM Virtual Machine Replication User:
View replications
Manage datastores
Configure and unconfigure replications
Manage and monitor replications
VRM Administrator:
Incorporates all vSphere Replication privileges
VRM Diagnostics:
Generate, retrieve, and delete log bundles
VRM Target Datastore User:
Configure and reconfigure replications
Used on target site in combination with the VRM virtual machine replication user role on both sites
VRM Virtual Machine Recovery User:
Recover virtual machines
For any further information regarding these roles refer to vSphere Replication Roles Reference.
To assign to a certain user/group vSphere Replication roles have a look at my previous article: Users, Groups and Roles management in vSphere 5.5.
Other blog posts in vSphere Replication Series:
vSphere Replication Part 1 - Introduction
vSphere Replication Part 2 - Installation
vSphere Replication Part 3 - Roles & Permissions
vSphere Replication Part 4 - Configuration
vSphere Replication Part 5 - Enable Replication
vSphere Replication Part 6 - Perform Recovery
vSphere Replication Part 7 - Provision additional Replication Servers
mercoledì 27 novembre 2013
VMware: vSphere Replication Part 2 - Installation
Let's continue with vSphere Replication series after last vSphere Replication Part 1 - Introduction post.
vSphere Replication installation is a pretty straigth-forward process since in most cases it is just necessary to deploy a single appliance to have everything setup and properly running.
vSphere Replication can replicate VMs between different datastores managed by the same vCenter or across sites managed by different vCenters.
Test scenario comprises two vCenter Servers managing two different datacenters:
1)SiteA with "localhost" vCenter that manages one host
2)SiteB with "vcenter-test" vCenter that also manages one host
vSphere Replication will be configured from SiteA to SiteB.
Installation will be shown just for SiteA, if your deployment comprises multiple vCenters to install vSphere Replication in SiteB you need to do repeat the same procedure as for SiteA.
Right click Cluster or alternatively one host and select Deploy OVF Template
Select the vSphere Replication OVF file, in this case: vSphere_Replication_OVF10.ovf
Review details
Choose where to deploy
Setup network connections by setting up IP allocation, DNS server, Gateway and Netmask.
Enter administrative password and, if Static - Manual IP Allocation was selected, enter IP address for vSphere Replication Appliance.
Verify that vSphere Replication binds to your correct vCenter identified by IP address or, as best practice, by FQDN.
Press Finish and wait for the appliance to be deployed and powered on. It will automatically integrate with vSpehere Web Client.
A logout/login is required after vSphere Replication startup is finished in order to view the new vSphere Replication plugin enabled in vSpehere Web Client.
vSphere Replication is now deployed and fully functional, ready to replicate VMs.
Other blog posts in vSphere Replication Series:
vSphere Replication Part 1 - Introduction
vSphere Replication Part 2 - Installation
vSphere Replication Part 3 - Roles & Permissions
vSphere Replication Part 4 - Configuration
vSphere Replication Part 5 - Enable Replication
vSphere Replication Part 6 - Perform Recovery
vSphere Replication Part 7 - Provision additional Replication Servers
vSphere Replication installation is a pretty straigth-forward process since in most cases it is just necessary to deploy a single appliance to have everything setup and properly running.
vSphere Replication can replicate VMs between different datastores managed by the same vCenter or across sites managed by different vCenters.
Test scenario comprises two vCenter Servers managing two different datacenters:
1)SiteA with "localhost" vCenter that manages one host
2)SiteB with "vcenter-test" vCenter that also manages one host
vSphere Replication will be configured from SiteA to SiteB.
Installation will be shown just for SiteA, if your deployment comprises multiple vCenters to install vSphere Replication in SiteB you need to do repeat the same procedure as for SiteA.
Right click Cluster or alternatively one host and select Deploy OVF Template
Select the vSphere Replication OVF file, in this case: vSphere_Replication_OVF10.ovf
Review details
Choose where to deploy
Setup network connections by setting up IP allocation, DNS server, Gateway and Netmask.
Enter administrative password and, if Static - Manual IP Allocation was selected, enter IP address for vSphere Replication Appliance.
Verify that vSphere Replication binds to your correct vCenter identified by IP address or, as best practice, by FQDN.
Press Finish and wait for the appliance to be deployed and powered on. It will automatically integrate with vSpehere Web Client.
A logout/login is required after vSphere Replication startup is finished in order to view the new vSphere Replication plugin enabled in vSpehere Web Client.
vSphere Replication is now deployed and fully functional, ready to replicate VMs.
Other blog posts in vSphere Replication Series:
vSphere Replication Part 1 - Introduction
vSphere Replication Part 2 - Installation
vSphere Replication Part 3 - Roles & Permissions
vSphere Replication Part 4 - Configuration
vSphere Replication Part 5 - Enable Replication
vSphere Replication Part 6 - Perform Recovery
vSphere Replication Part 7 - Provision additional Replication Servers
Iscriviti a:
Commenti (Atom)















































