Cohesity Basics – Excluding VMs Using Tags – Real World Example

I’ve written before about using VM tags with Cohesity to exclude VMs from a backup. I wanted to write up a quick article using a real world example in the test lab. In this instance, we had someone deploying 200 VMs over a weekend to test a vendor’s storage array with a particular workload. The problem was that I had Cohesity set to automatically protect any new VMs that are deployed in the lab. This wasn’t a problem from a scalability perspective. Rather, the problem was that we were backing up a bunch of test data that didn’t dedupe well and didn’t need to be protected by what are ultimately finite resources.

As I pointed out in the other article, creating tags for VMs and using them as a way to exclude workloads from Cohesity is not a new concept, and is fairly easy to do. You can also apply the tags in bulk using the vSphere Web Client if you need to. But a quicker way to do it (and something that can be done post-deployment) is to use PowerCLI to search for VMs with a particular naming convention and apply the tags to those.

Firstly, you’ll need to log in to your vCenter.

PowerCLI C:\> Connect-VIServer vCenter

In this example, the test VMs are deployed with the prefix “PSV”, so this makes it easy enough to search for them.

PowerCLI C:\> get-vm | where {$_.name -like "PSV*"} | New-TagAssignment -Tag "COH-NoBackup"

This assumes that the tag already exists on the vCenter side of things, and you have sufficient permissions to apply tags to VMs. You can check your work with the following command.

PowerCLI C:\> get-vm | where {$_.name -like "PSV*"} | Get-TagAssignment

One thing to note. If you’ve updated the tags of a bunch of VMs in your vCenter environment, you may notice that the objects aren’t immediately excluded from the Protection Job on the Cohesity side of things. The reason for this is that, by default, Cohesity only refreshes vCenter source data every 4 hours. One way to force the update is to manually refresh the source vCenter in Cohesity. To do this, go to Protection -> Sources. Click on the ellipsis on the right-hand side of your vCenter source you’d like to refresh, and select Refresh.

You’ll then see that the tagged VMs are excluded in the Protection Job. Hat tip to my colleague Mike for his help with PowerCLI. And hat tip to my other colleague Mike for causing the problem in the first place.

Brisbane VMUG – July 2019

hero_vmug_express_2011

The July edition of the Brisbane VMUG meeting will be held on Tuesday 23rd July at Fishburners from 4 – 6pm. It’s sponsored by Pivotal and promises to be a great afternoon.

Here’s the agenda:

  • VMUG Intro
  • VMware and Pivotal Presentation: Rapid and automated deployment of Kubernetes with VMware and Pivotal
  • Q&A
  • Refreshments and drinks.

Pivotal have gone to great lengths to make sure this will be a fun and informative session and I’m really looking forward to hearing more about what they’re doing. You can find out more information and register for the event here. I hope to see you there. Also, if you’re interested in sponsoring one of these events, please get in touch with me and I can help make it happen.

Random Short Take #14

Here are a few links to some random news items and other content that I found interesting. You might find them interesting too. Episode 14 – giddy-up!

Brisbane VMUG – May 2019

hero_vmug_express_2011

The May 2019 edition of the Brisbane VMUG meeting will be held on Tuesday 28th May at Fishburners from 4pm – 6pm. It’s sponsored by Cohesity and promises to be a great afternoon.

Here’s the agenda:

  • VMUG Intro
  • Cohesity Presentation: Changing Data Protection from Nightmares to Sweet Dreams
  • vCommunity Presentation – Introduction to Hyper-converged Infrastructure
  • Q&A
  • Light refreshments.

Cohesity have gone to great lengths to make sure this will be a fun and informative session and I’m really looking forward to hearing about how they can make recovery simple. You can find out more information and register for the event here. I hope to see you there. Also, if you’re interested in sponsoring one of these events, please get in touch with me and I can help make it happen.

Random Short Take #12

Here are a few links to some random news items and other content that I found interesting. You might find it interesting too. Maybe.

  • I’ve been a fan of Backblaze for some time now, and I find their blog posts useful. This one, entitled “A Workflow Playbook for Migrating Your Media Assets to a MAM“, was of particular interest to me.
  • Speaking of Backblaze, this article on SSDs and reliability should prove useful, particularly if you’re new to the technology. And the salty comments from various readers are great too.
  • Zerto just announced the myZerto Labs Program as a way for “IT professionals to test, understand and experiment with the IT Resilience Platform using virtual infrastructure”. You can sign up here.
  • If you’re in the area, I’m speaking at the Sydney VMUG UserCon on Tuesday 19th March. I’ll be covering how to “Build Your Personal Brand by Starting and Maintaining a Blog”. It’s more about blogging than branding, but I’m hoping there’s enough to keep the punters engaged. Details here. If you can’t get along to the event, I’ll likely publish the deck on this site in the near future.
  • The nice people at Axellio had some success at the US Air Force Pitch Day recently. You can read more about that here.
  • UltraViolet is going away. This kind of thing is disheartening (and a big reason why I persist in buying physical copies of things still).
  • I’m heading to Dell Technologies World this year. Michael was on the TV recently, talking about the journey and looking ahead. You can see more here.

VMware – vExpert 2019

 

I’m very happy to have been listed as a vExpert for 2019. This is the seventh time that they’ve forgotten to delete my name from the list (if you think I’ll ever give up on that joke you are sadly mistaken). Read about it here, and more news about this year’s programme is coming shortly. Thanks again to Corey Romero and the rest of the VMware Social Media & Community Team for making this kind of thing happen. And thanks also to the vExpert community for being such a great community to be part of.

Brisbane VMUG – March 2019

hero_vmug_express_2011

The March 2019 edition of the Brisbane VMUG meeting will be held on Tuesday 26th March at Fishburners from 4pm – 6pm. It’s sponsored by Dell and promises to be a great afternoon.

Here’s the agenda:

  • VMUG Intro (by me)
  • VMware / Dell Presentation: Dell Factory Provisioning for Windows 10 with Workspace ONE (Pete Lindley)
  • VMware Presentation: VMware Education update and roadmap discussion (Shamus Hayes)
  • Q&A
  • Refreshments and drinks.

Dell have gone to great lengths to make sure this will be a fun and informative session and I’m really looking forward to hearing about some of the cool stuff you can do with Workspace ONE. You can find out more information and register for the event here. I hope to see you there. Also, if you’re interested in sponsoring one of these events, please get in touch with me and I can help make it happen.

VMUG UserCon Sydney 2019 – See You There?

I’ll be presenting at VMUG UserCon in Sydney this year. If you’re unfamiliar with UserCon, it’s a free event run by the larger VMUG groups and brings together a mix of different folk, all of whom are focused on VMware technologies in one way or another. There are plenty of technical discussions to be had, as well as community talks on “soft” skills from people like me. I’ll be doing a presentation called “Build A Personal Brand: How to Start and Maintain a Blog!”. The alternative title is “Become an overnight sensation in just 11 years”. The first title is probably better though (and more accurate). It covers a lot of the basics of getting started with a blog, using it to maintain a voice in the community, and a bunch of lessons learnt over the last few years.

In any case, even if you don’t want to hear me talk, there’s sure to be something there that will spark your interest. The keynote speakers are Chris Wolf and Brian Madden – both very interesting people. The event’s being held at the Sydney International Convention Centre on Tuesday March 19th. And it’s free to boot. So get along if you can. And there’s also an event happening in Melbourne on Thursday 21st. I won’t be there, but I’m sure it will be very good. I know the VMUG teams are working on the schedule, and I’ll post that here as soon as I know it.

VMware vSphere and NFS – Some Links

Most of my experience with vSphere storage has revolved around various block storage technologies, such as DAS, FC and iSCSI. I recently began an evaluation of one of those fresh new storage startups running an NVMe-based system. We didn’t have the infrastructure to support NVMe-oF in our lab, so we’ve used NFS to connect the datastores to our vSphere environment. Obviously, at this point, it is less about maximum performance and more about basic functionality. In any case, I thought it might be useful to include a series of links regarding NFS and vSphere that I’ve been using to both get up and running, and troubleshoot some minor issues we had getting everything running. Note that most of these links cover vSphere 6.5, as our lab is currently running that version.

Basics

Create an NFS Datastore

How to add NFS export to VMware ESXi 6.5

NFS Protocols and ESXi

Best Practice

Best Practices for running VMware vSphere on Network Attached Storage

Troubleshooting

Maximum supported volumes reached (1020652)

Increasing the default value that defines the maximum number of NFS mounts on an ESXi/ESX host (2239)

Troubleshooting connectivity issues to an NFS datastore on ESX and ESXi hosts (1003967)

Brisbane VMUG – November 2018

hero_vmug_express_2011

The November 2018 edition of the Brisbane VMUG meeting (and last one of the year) will be held on Tuesday 20th November at Toobirds at 127 Creek Street from 4:30 pm – 6:30 pm. It’s sponsored by Cisco and promises to be a great afternoon.

Here’s the agenda:

  • VMUG Intro
  • VMware Presentation:Workspace ONE UEM Modern Management for Windows 10
  • Cisco Presentation:Cloud First in a Multi-cloud world
  • Q&A
  • Refreshments and drinks.

Cisco have gone to great lengths to make sure this will be a fun and informative session and I’m really looking forward to hearing what they’ve been up to. You can find out more information and register for the event here. I hope to see you there. Also, if you’re interested in sponsoring one of these events, please get in touch with me and I can help make it happen.