« Hyper-V: Released To Manufacturing | Main | Performance Acceleration Module (PAM) »

July 23, 2008

Comments

Nice post.

You can also do file level recoveries with a Linux host that has access to your filer's snapshots. Loopback mount the VMDK file from the snapshot on the Linux host and get the file(s) you need from the VMDK.

If you have Windows guests, you may need to build the NTFS kernel module depending on which Linux distribution you're using.

Thanks Brandon,

You are correct you can do that too. In fact, I've written about it a while back on an old blog I kept:

http://storagefoo.blogspot.com/2007/09/vmware-on-nfs-backup-tricks.html

http://storagefoo.blogspot.com/2007/10/vmware-over-nfs-backup-trickscontinued.html

Very nice post.

This is a very good (real world) example how NFS can help you to simplify your ESX environment.

Same can be done with VMware DiskMount GUI from http://petruska.stardock.net/Software/VMware.html

Hey Nick,
I used the software, it worked good for non-LVM VMs, but it doesnt work with a VM that has linux LVM, which we do to split up the logs from the OS. I ended up after a few days figuring it out myself where you dont need that software at all...here are the steps if your VM has logical volumes.

-----------------------
create NetApp flexclone from snapshot:
-----------------------
1. vol clone create /vol/vmnfsXXXbk -s none -b parent_volume_name snapshot_name
(parent_volume_name = vmnfsXXX in our environment)
2. vol options clone_name nosnap on
3. snap sched clone_name 0 0 0

-----------------------
Run on linux VM:
-----------------------
1. mount your NFS snapshot flex clone in linux:
mount SAN_IP_ADDRESS:/vol/vmnfsXXXbk /mnt/vmnfs
2. losetup /dev/loop0 /mnt/vmnfs/SERVER_NAME/SERVER_NAME-flat.vmdk
(replace SERVER_NAME with actual VMware server path)
Example: losetup /dev/loop0 /mnt/vmnfs/WEB1/WEB1-flat.vmdk
3. kpartx -av /dev/loop0
4. vgscan
this will return something like:
Reading all physical volumes. This may take a while...
Found volume group "VolGroup00" using metadata type lvm2
5. vgchange -ay VolGroup00
This will return something like:
2 logical volume(s) in volume group "VolGroup00" now active
6. lvs
This will return something like:
LogVol00 VolGroup00 -wi-a- 5.06G
LogVol01 VolGroup00 -wi-a- 30.00G
7. mount /dev/VolGroup00/LogVol00 /mnt/vm

Thats it...

--------------------------------------
Unmount the vmdk:
--------------------------------------
1. umount /mnt/vm
2. vgchange -an VolGroup00
3. kpartx -d /dev/loop0
4. losetup -d /dev/loop0

Great stuff Steven. Thanks for figuring this out. Very helpful.

I have followed the instructions to a tee and I get an error when I try to mount the .vmdk file. It tells me that "This file does not have a program associated with it for performing this action. Create an association in the Folder Options control panel."

What did I miss?

Pat,

I had the same issue. It seems the .reg file didn't enter the path into the registry eky.

Try going in and manually entering the paths to the executable into the registry in each location given in the script.

So, in the HKCR\Drive\Vmware.VirtualDisk\Shell\vmdkmounter\command

Double-click the (Default) key and paste the path "cmd.exe /c "c:\\Program Files\\NetApp\\VMDKMounter\\vmdkmounter.bat" mount %1" without the outside double-quotes.

Repeat with the other key.

There seems to be a UFS Reader for free on
sourceforge. Haven't tested it yet.

http://mount-ntfs.sourceforge.net/

sorry, does'nt work

Verify your Comment

Previewing your Comment

This is only a preview. Your comment has not yet been posted.

Working...
Your comment could not be posted. Error type:
Your comment has been posted. Post another comment

The letters and numbers you entered did not match the image. Please try again.

As a final step before posting your comment, enter the letters and numbers you see in the image below. This prevents automated programs from posting comments.

Having trouble reading this image? View an alternate.

Working...

Post a comment

© NetApp, Inc.  |  "Safe Harbor" Statement  |  Privacy Policy