Datastore not visible after upgrading to ESXi 5

After upgrading my dev datacenter and rebooting the first ESXi 5 host, I realized that one of my fiber datastores was missing.  The path to the datastore was still visible to the host under the HBA, but it was not showing as an available datastore in the storage view.  Upon investigation, the datastore had been tagged as a snapshot datastore and was not mounting properly to the host.  This can be found by running the following:

esxcli storage vmfs snapshot list

You will see an output similar to:

<UDID>

   Volume Name: <VOLUME_NAME>

   VMFS UUID: <UDID>

   Can mount: true

   Reason for un-mountability:

   Can resignature: false

   Reason for non-resignaturability: the volume is being actively used

   Unresolved Extent Count: 2

Next, I had to force mount the datastore in CLI by first changing to “/var/log” and running:

esxcli storage vmfs snapshot mount -u <UUID> -l <VOLUME_NAME>

The command will be persistent across reboots.  If you would like to make it non-persistent then you will need to add “-n” to your command.  Once it is run, check your host and the datastore should be showing as an available datastore again.  No reboot needed and the change takes affect immediately.

You can also mount the datastore using the vSphere client as well by following the below steps:

  1. Go to your host in question
  2. On the storage tab, click add storage
  3. Choose disk/LUN
  4. Find the LUN that is missing. If it is not shown, you will need to use the above steps to mount using CLI
  5. Under mount options, choose “Keep Existing Signature” to mount persistent across reboots
  6. Click through to finish

There are a few caveats to force mounting a datastore though.  The datastore can only be mounted if it doesn’t already exist with a unique UDID.  If you choose to use the client to force mount the datastore, it cannot be mounted to other hosts in the same datacenter.  You will need to use the CLI steps posted above to mount to other hosts.

For more information about this issue and steps to fix in ESX/ESXi 4 and 3.5, you can find the VMware KB here.

Free eBook: vSphere 5.0 Clustering Deepdive June 5th and 6th

I know that vSphere 5.0 has been out for quite some time and most of you out there are probably running 5.1 at this point, but hey it’s a free book!  The vSphere 5.0 Clustering Deepdive and vSphere 4.1 HA and DRS Deepdive will both be free on the Amazon Kindle store for two days only: June 5th and June 6th.

413xcD9GTZL._BO2,204,203,200_PIsitb-sticker-arrow-click,TopRight,35,-76_AA278_PIkin4,BottomRight,-59,22_AA300_SH20_OU01_

Both books are written by Duncan Epping and Frank Denneman.  The two masterminds behind both HA and DRS.  If you haven’t been reading their blogs yet, get on it. Although the book may be a version behind, there is still some great information in here than anyone can use.  And if you are still running 5.0 (like me in my lab), then this is a great pickup for you.

The book goes into depth on the components of HA, DRS and Storage DRS and breaks them down to better understand the architecture behind them.  It will go over Resource Pools, Datastore Clustering, Resource Allocation and more.  And to quote the Amazon Kindle store: “This book is also the ultimate guide to be prepared for any HA, DRS or Storage DRS related question or case study that might be presented during VMware VCDX, VCP and or VCAP exams.”

So get downloading and enjoy some light reading!