Skip to main content
  1. posts/

Automatically Name Datastores in vSphere?

·315 words·2 mins·
Christian Mohn
VMware Datastore ESXi Ideas Policy Based Computing Storage vCenter Virtualization VMware vSAN vSphere
Author
Christian Mohn
IT veteran, podcaster, author, and blogger from Bergen, Norway.

William Lam posted “Why you should rename the default VSAN Datastore name” where he outlines why the default name for VSAN data stores should be changed. Of course, I completely agree with his views on this; Leaving it at the default might cause confusion down the line.

At the end of the post, William asks the following:

I wonder if it would be a useful to have a feature in VSAN to automatically append the vSphere Cluster name to the default VSAN Datastore name? What do you think?

The answer to that is quite simple too; Yes. It would be great to be able to append the cluster name automatically.

But this got me thinking, wouldn’t it be even better would be to use the same kind of naming pattern scheme we get when provisioning Horizon View desktops, when we provision datastores? In fact, this should also be an option for other datastores, not just when using VSAN.

Imagine the possibilities if you could define datastore naming schemes in your vCenter, and add a few variables like this, for instance: {datastoretype}-{datacentername}-{clustername/hostname}-{fixed:03}.

Then you could get automatic, and perhaps even sensible, datastore naming like this:

local-hqdc-esxi001-001

iscsi-hqdc-cluster01-001

nfs-hqdc-cluster01-001

fc-hqdc-cluster01-001

vsan-hqdc-cluster01-001

And so on…

I’m sure there are other potentially even more useful variables that could be used here, perhaps even incorporating something about tiering and SLA´s (platinum/gold/silver etc.) but that would require that you knew the storage characteristics and how it maps to your naming scheme when it gets defined. But yes, we do need to be able to automatically name our datastores in a coherent matter, regardless of storage type.  

After all, we’re moving to a model of policy based computing, shouldn’t naming of objects like datastores, also be ruled by policy, defined at a Datacenter level in vCenter (wait a minute, why don’t do the same for hosts joined to a datacenter or cluster?)

Related

Can you combine vSphere Host Cache and vFlash on a single SSD?
·215 words·2 mins
Christian Mohn
VMware 5.5 ESXi featured Host Cache vCenter vFlash Virtualization VMware vSphere
VMware vCenter Server Appliance Error: VPXD must be stopped to perform this operation
·252 words·2 mins
Christian Mohn
VMware 5.5 ESXi vCenter vCenter Server Appliance VMware vSphere
Monitoring the ESXi Upgrade Process
·244 words·2 mins
Christian Mohn
VMware ESXi Log Maintenance Ops Real World Upgrade Virtualization VMware vSphere