Mount VMFS snapshot to vSphere ESX(i) hosts

Shares

There are some situations (disaster recovery, restore etc) were replicated LUN with VMFS or VMFS snapshot has to be mounted. There are two ways doing that either GUI (vSphere client) or from command line esxcfg-volume -M. Below are both ways with full explanation.

LUM which will be mounted is called 0_DR_TEST_6061 with LUNID 6016 and size 20GB – replicated LUN ID is 8016

  1. vSphere client
    Go to ESX host – Configuration – Storage – Add storage  Disk\LUN  choose right LUN to add – snapshot LUN’s are always with Header with VMFS datastore name, like on the screen below

    Click Next – and now the most important part of a task – you have to keep signature. Basically that’s all what you need to do to mount VMFS snapshots or replicated LUN. Now VMFS volume should be visible under ESX host inventory. Sometime happes that during mounting VMFS snapshot ESX(i) give’s an error[box] Resolve VMFS volumes Cannot change the host configuration.
    [/box] When error appear volume has to be mounted manually from command line
  2. From command line
    Log in to ESX host via ssh and execute a command line esxcfg-volume -l and output should show snapshot LUN – our replicated LUN (ID 8016 and size 20GB)Write down LUN UUID  and execute command esxcfg-volume -M it will mount volume and VMFS datastore will appear in ESX inventory. If doesn’t appear rescan HBA cards on ESX server. All the VM which are registered in inventory and placed on 0_DR_test_6016 will be ready for start (no need to reregister in inventory)To be sure that we have snapshot mounted instead of original LUN Right click on a VMFS – Unmount option should be visible in a right-click menu
0 0 votes
Article Rating

Artur Krzywdzinski

Artur is Consulting Architect at Nutanix. He has been using, designing and deploying VMware based solutions since 2005 and Microsoft since 2012. He specialize in designing and implementing private and hybrid cloud solution based on VMware and Microsoft software stacks, datacenter migrations and transformation, disaster avoidance. Artur holds VMware Certified Design Expert certification (VCDX #077).

You may also like...

Subscribe
Notify of
guest
2 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
Joe Sanchez

Mount VMFS snapshot through CLI can be tricky…thanks!

2
0
Would love your thoughts, please comment.x
()
x

FOR FREE. Download Nutanix port diagrams

Join our mailing list to receive an email with instructions on how to download 19 port diagrams in MS Visio format.

NOTE: if you do not get an email within 1h, check your SPAM filters

You have Successfully Subscribed!

Pin It on Pinterest