If you’ve managed a View Linked Clone pool for any amount of time, you probably know the frustration that can come with trying to determine which replica is tied to a particular pool. This information can be especially important when trying to find unused replicas that are hanging around using up precious storage space. Or maybe when auditing your inventory, you find you have 5 View Pools, but 6 replica VMs. How do we know if we really are using all 6 replicas?
There is a public VMware Knowledge Base article (2009844) that utilizes SviConfig.exe to automate the process of finding unused Replicas, but sometimes this command can be less than helpful. The command can often fail with vague errors, and only works with registered replicas in vCenter’s inventory. It also doesn’t tell you what pool the replica is tied to!
There is also KB1031842 that goes over an ESXi command that can show mapping of what VM is using a particular replica. But in a large environment, this can be a tedious task parsing through the hundreds of lines of output.
The nice thing about Replicas is that they are simply a clone of our Parent VM. This means that outside of the protection View puts on the VM itself.. it’s a regular ol’ virtual machine! These objects easily Tagged to help with sorting and inventory management.
Tags are a very powerful organization mechanism that were introduced in vSphere 5.1. Tags are recorded as metadata for the object it’s assigned to and can be super helpful for searching the vCenter.
To create a Tag
- From the vSphere Web Client Home, click Tags
- Click the Items tab and click Tags
- Click the New Tag icon
- In the vCenter Server drop-down menu, select the vCenter you want the Tag to reside on
- Enter a name for your Tag. I have matched my Tag name to my View Pool Name
- For Category, select/create a Category. I named mine View
- For the Tag Category options, choose Many tags per object. This allows multiple tags from the View category to be applied to an object at any one time.
NOTE: You cannot change the cardinality from Many tags per object to 1 tag per object
- Click OK
- After creating your Linked Clone Pool in View, you’ll find the parent VM being cloned to the Replica in the More Tasks pane
- Find and Right Click the desired Replica
- Click Assign Tag
- Choose your Tag and click OK
- Your Replica is now tagged!