ESX Virtualization

VMware ESXi, vSphere, VMware Backup, Hyper-V... how-to, videos....

Nakivo Backup and Replication - #1 Backup solution for Virtual, physical, cloud, NAS and SaaS

Menu
  • Certification
      • VCP-DCV vSphere 8
          • vcp2024-125.
        • Close
    • Close
  • VMware
    • Configuration Maximums
    • vSphere
      • vSphere 8.0
      • vSphere 7.0
      • vSphere 6.7
      • vSphere 6.5
      • vSphere 6.0
      • Close
    • VMworld
      • VMware EXPLORE 2024
      • VMware EXPLORE 2023
      • VMware EXPLORE 2022
      • VMworld 2019
      • VMworld 2018
      • VMworld 2017
      • VMworld 2016
      • VMworld 2015
      • VMworld 2014
      • VMworld 2013
      • VMworld 2012
      • VMworld 2011
      • Close
    • Close
  • Microsoft
    • Windows Server 2012
    • Windows Server 2016
    • Windows Server 2019
    • Close
  • Categories
    • Tips – VMware, Microsoft and General IT tips and definitions, What is this?, How this works?
    • Server Virtualization – VMware ESXi, ESXi Free Hypervizor, VMware vSphere Server Virtualization, VMware Cloud and Datacenter Virtualization
    • Backup – Virtualization Backup Solutions, VMware vSphere Backup and ESXi backup solutions.
    • Desktop Virtualization – Desktop Virtualization, VMware Workstation, VMware Fusion, VMware Horizon View, tips and tutorials
    • How To – ESXi Tutorials, IT and virtualization tutorials, VMware ESXi 4.x, ESXi 5.x and VMware vSphere. VMware Workstation and other IT tutorials.
    • Free – Free virtualization utilities, ESXi Free, Monitoring and free backup utilities for ESXi and Hyper-V. Free IT tools.
    • Videos – VMware Virtualization Videos, VMware ESXi Videos, ESXi 4.x, ESXi 5.x tips and videos.
    • Home Lab
    • Reviews – Virtualization Software and reviews, Disaster and backup recovery software reviews. Virtual infrastructure monitoring software review.
    • Close
  • Partners
    • NAKIVO
    • StarWind
    • Zerto
    • Xorux
    • Close
  • This Web
    • News
    • ESXi Lab
    • About
    • Advertise
    • Archives
    • Disclaimer
    • PDFs and Books
    • Close
  • Free
  • Privacy policy

Mount VMFS Datastore – via GUI or via CLI [Guide]

By Vladan SEGET | Last Updated: May 7, 2015

Shares

Mount VMFS Datastore manually is sometimes necessary when working with DR plans. A volume that isn't automatically mounted on the other side has to be mounted manually. Normaly SRM takes care of it.

Also, sometimes when an existing VMFS volume is still present we have an option to keep an existing signature or choose to resignature. What's the options and the gotchas here? How does this impact the datas which are stored on those volumes?

Keep the existing signature – You basically cannot mount two datastores with the same UUID on the same host.  ESXi uses the UUID to reference the device. However, you may un-mount the initial datastore and mount the duplicate datastore with the same UUID. You can also mount a snapshot/replicated lun, while keeping the existing signature, on a host that does not have access to the original lun (DR plans etc…).

Assign a new signature – This will change the UUID and allow it to be mounted. There are some things to bear in mind before you make your choice. Creating a new signature for a drive is irreversible – once a new signature applied, there is no way back. For example if you have datastore with extents, note that such a datastore may only be resignatured once, and all extents must be online. Last note concerning a resignature is that if a datastore is resignatured, the VMs stored on this a datastore must be reassociated with the disk in their respective configuration files and the VM must be re-registered within vCenter.

In this situation it is usually ok to mount the lun without resignaturing  because the host to which you mount the lun is likely in a DR site, and as such doesn’t have access to the original lun. Basically, it’s fine not to perform the resignature when mounting the volume on a host that is unable to see the original disk. Resignaturing becomes important when you need to mount a replicated lun on the same host(s) that have the original mounted.

So, how it is done?

You can resignature a disk by using the vSphere Client or using the command line. vSphere client gave me no results recently, but normally it's very easy. You just do it when you first select your host > configuration > storage > add storage >  chose disk/lun > and choose the option you want.

Select Assign new signature or keep existing signature, depending on your needs, and click next, next …

how to resignature VMFS

Using ESXCLI

We can list all detected VMFS snapshot volumes with the following command, even if for some reason we aren't able to mount the volume from within vSphere client (it was my case in a lab recently…).
This command will list the names of the VMFS datastores and their UUIDs.

esxcfg-volume –l

As you can see in our case we have the output like this:

Mounting VMFS datastore manually is sometimes necessary when working with DR plans. A volume that isn't automatically mounted on the other side has to be mounted manually. Sometimes when an existing VMFS volume           Keep the existing signature. You cannot mount two datastores with the same UUID on the same host.  ESX uses the UUID to reference the device. As such, two with the same UUID would cause all kinds of issues. However, you may unmount the initial datastore and bring the duplicate datastore with the same UUID online. You can however mount a snapshot/replicated lun, whilst keeping the existing signature, on a host that does not have access to the original lun (this is most commonly seen when carrying out a DR plan). Assign a new signature. This will change the UUID and allow it to be mounted.     There are some things to bear in mind before you make your choice. Creating a new signature for a drive is irreversible – once you have applied the new signature you cannot get the old one back. A datastore with extents may only be resignatured if all extents are online. Finally, if a datastore is resignatured, the VMs that use a datastore must be reassociated with the disk in their respective configuration files. The virtual machines must also be re-registered within vCenter.  The most common scenario in which I come across having to deal with this issue is when working with a disaster recovery plan. When Site Recovery Manager isn’t it use, it is necessary to carry out the mounting of replicated/snapshot luns manually. In this situation it is usually ok to mount the lun without resignaturing  because the host to which you mount the lun is likely in a DR site, and as such doesn’t have access to the original lun. Basically, it’s fine not to perform the resignature when mounting the volume on a host that is unable to see the original disk. Resignaturing becomes important when you need to mount a replicated lun on the same host(s) that have the original mounted.  So, hows it done? You can resignature a disk by using the vSphere Client or using the command line.  Using ESXCLI we can list all detected VMFS snapshot volumes with the following: <blockquote>esxcli storage vmfs snapshot list</blockquote>   This will list the names of the VMFS datastores and their UUIDs. We can then mount the volumes using:  esxcli storage vmfs snapshot resignature –volume-label=<label>|–volume-uuid=<id> As these commands are ran directly on a host, it is necessary to run them on each host in a cluster, if you want to make the volume available to each. NOTE: You will only be able to mount the volume if it has been enabled for Read/Write access – in most environments this will be handled by the storage guys.  As an alternative you can also use the esxcfg-* commands, as follows:  ‘esxcfg-volume –l’ to see a list of copied volumes  Choose either;  ‘esxcfg-volume –r to resignature the volume  ‘esxcfg-volume –M to mount the volume without resignaturing (use lower case m for temporary mount rather than persistent). The process using the vSphere client is as follows:  On your chosen host, browse to the Configuration | Storage tab Click Add Storage Select Disk/LUN and click Next Select the device you wish to add add and click Next Select Assign new signature or keep existing signature, depending on your needs, and click                 <strong>1. Log in to the vSphere Client and select the server from the inventory panel.</strong>  <strong>2. Click the Configuration tab and click Storage in the Hardware panel.</strong>  <strong>3. Click Add Storage.</strong>  <strong>4. Select the Disk/LUN storage type and click Next.</strong>  <strong>5. From the list of LUNs, select the LUN that has a datastore name displayed in the VMFS Label column and</strong>  <strong>click Next.</strong>  <strong>The name present in the VMFS Label column indicates that the LUN is a copy that contains a copy of an</strong>  <strong>existing VMFS datastore.</strong>  <strong>6. Under Mount Options, select Keep Existing Signature.</strong>  <strong>7. In the Ready to Complete page, review the datastore configuration information and click Finish.</strong>        o you are forced to this as described in the knowledge base article above in workaround B (By connecting directly to the ESX host service console):  1. Log in as root to the ESX host which cannot mount the datastore using an SSH client.  2. Run the command:  esxcfg-volume -l  The results appear similar to:  VMFS3 UUID/label: 4b057ec3-6bd10428-b37c-005056ab552a/ TestDS  Can mount: Yes  Can resignature: Yes  Extent name: naa.6000eb391530aa26000000000000130c:1 range: 0 – 1791 (MB)  Record the UUID portion of the output. In the above example the UUID is 4b057ec3-6bd10428-b37c-005056ab552a.  Note: The Can mount value must be Yes to proceed with this workaround.  3. Run the command:  esxcfg-volume -M <UUID>  Where the <UUID> is the value recorded in step 3.  Note: If you do not wish the volume mount to persist a reboot, the -m switch can be used instead.

Choose either:

esxcfg-volume –r

to resignature the volume. The general syntax is following:

esxcli storage vmfs snapshot resignature –volume-label=<label>|–volume-uuid=<id>

OR use the “M” switch (note it's a Capital M) to mount the volume as is (keep existing signature):

esxcfg-volume –M

to mount the volume without resignaturing (use lower case m for temporary mount rather than persistent).

mount existing VMFS volume

Yes, if you do not wish the volume mount to persist a reboot, the -m switch shall be used instead.

Hope it will help when needed…  If you liked this post, just share.

Don’t forget to subscribe to our RSS feed, FB and Twitter !!

Shares
4/5 - (4 votes)

| Filed Under: Server Virtualization Tagged With: Mount VMFS Datastore

About Vladan SEGET

This website is maintained by Vladan SEGET. Vladan is as an Independent consultant, professional blogger, vExpert x16, Veeam Vanguard x9, VCAP-DCA/DCD, ESX Virtualization site has started as a simple bookmarking site, but quickly found a large following of readers and subscribers.

Connect on: Facebook. Feel free to network via Twitter @vladan.

Comments

  1. Robert says

    January 30, 2016 at 4:03 pm

    have you ever tried to “keep existing signature” using the UI if the old datastore still exists within your vCenter inventory?

    The documentation is unclear about this. It sais that the original datastore must be removed before mounting a copy using “keep existing signature”. Yet it also sais that the feature is ment to be used in DR cases. Also kb 1011387 mentions that the UI fully supports the force-mount (esxcfg-volume –M) option.

    In my tests I have found however that in the event of a real DR this doesn’t work as one would expect it to work. If site A goes down and you try to attach the replicas to a host in cluster B (same datcenter object as cluster A) then the UI won’t let you do this. Fatclient will fail with no error message. Webclient will fail telling you that a datastore with the same signature already exists. Although it doesn’t exist on that host nor that cluster, I think the issue is that it exists on atleast one other host which is part of the same datacenter object in vSphere. There are many reasons why one would want to keep two clusters (sites) at the same datacenter object in vSphere. As of vSphere 5.5 even more then as of vSphere 6.0. Whatever the reasons are, the UI will fail you at that point.

    What I found is, however, that using the CLI (esxcfg-volume –M) it will work. After that – again – using the CLI it’s possible to force re-assign a host for a VM that is still registred with a dead host of cluster A.

    The hole point behind that is that one doesn’t want to loose the vCenter inventory information by removing the dead hosts or unregistering and re-registering the dead VMs.

  2. siddharth says

    February 7, 2016 at 10:27 pm

    awesome…it worked for ESXi 5.1 luns went missing..
    for prod environment, multiple LUNs and those had snapshot of VMs as well.
    Host was rebooted and after reboot LUns were not visible.
    this command helped

    esxcfg-volume –l
    esxcfg-volume -M uuid

    • Vladan SEGET says

      February 8, 2016 at 7:36 am

      Thanks for your experience. Glad it worked for you…

  3. TALHA says

    August 22, 2016 at 11:02 am

    THanks..it works for me…

    worth a million….

  4. TALHA says

    August 22, 2016 at 11:03 am

    for esxi 6.0

  5. Rafia says

    March 27, 2017 at 10:48 am

    Works fine on ESXi 6.5

  6. Vice says

    April 19, 2017 at 1:59 pm

    Just the ticket! After downgrading the scsi-hpvsa driver on esxi 6.5 due to performance issues and rebooting the datastore was missing. This worked like a charm.

  7. Steve says

    April 26, 2017 at 5:55 pm

    Great article and comments. Is there a way to do this using PowerCLI?

  8. jake says

    February 24, 2018 at 2:07 pm

    Thank you very much, you saved me !

  9. Danny says

    March 17, 2018 at 3:24 pm

    Thanks for this – very helpful

  10. Paul says

    February 12, 2019 at 12:50 pm

    Thanks for this – production environment up and running again…!

    Paul

  11. Srini says

    February 14, 2019 at 1:37 am

    can we add this in vsphere webclient VCP6.5?

  12. Branislav Kopun says

    June 7, 2019 at 11:08 am

    This hint saves our life. Thanks a lot

  13. iliya says

    October 15, 2019 at 8:52 am

    Great article . Thank you.

  14. Mike says

    January 9, 2020 at 11:23 pm

    This hint (-M) mounted my first datastore1 perfect.
    After the reboot I tried it on the 3 remaining datastore2/3/4 it did not work
    I see the drives under Datastore >>> Devices BUT the datastores wil not mount ?
    When I run “esxcfg-volume -l” Nothing is listed anymore ?

    Plse assit asap

  15. Leonardo says

    January 19, 2020 at 10:16 am

    It helped me a lot!
    OVH Rents a 4 drive server, but 1 drive i did need to rescue using this method. OVH install ESXI in this drive and it is unmountable tru graphical interface.

  16. Nouman Dogar says

    February 20, 2020 at 8:02 pm

    Your procedure helps a lot thank you for your solution.

Private Sponsors

Featured

  • Thinking about HCI? G2, an independent tech solutions peer review platform, has published its Winter 2023 Reports on Hyperconverged Infrastructure (HCI) Solutions.
  • Zerto: One Platform for Disaster Recovery, Backup & Cloud Mobility: Try FREE Hands-On Labs Today!
Click to Become a Sponsor

Most Recent

  • Veeam Backup & Replication v13 Beta: A Game-Changer with Linux
  • What is Veeam Data Cloud Vault and how it can help SMBs
  • Nakivo Backup and Replication – Malware Scan Feature
  • Zerto 10 U7 released with VMware NSX 4.2 Support
  • XorMon NG 1.9.0 Infrastructure Monitoring – now also with Veeam Backup Support
  • Heartbeat vs Node Majority StarWind VSAN Failover Strategy
  • Vulnerability in your VMs – VMware Tools Update
  • FREE version of StarWind VSAN vs Trial of Full version
  • Commvault’s Innovations at RSA Conference 2025 San Francisco
  • VMware ESXi FREE is FREE again!

Get new posts by email:

 

 

 

 

Support us on Ko-Fi

 

 

Buy Me a Coffee at ko-fi.com

Sponsors

Free Trials

  • DC Scope for VMware vSphere – optimization, capacity planning, and cost management. Download FREE Trial Here.
  • Augmented Inline Deduplication, Altaro VM Backup v9 For #VMware and #Hyper-V – Grab your copy now download TRIAL.

VMware Engineer Jobs

VMware Engineer Jobs

YouTube

…

Find us on Facebook

ESX Virtualization

…

Copyright © 2025 ·Dynamik-Gen · Genesis Framework · Log in