I used java based code to mount vmfs disk as read only. All extra information and usage details can be found at this website.
I have java installed at “C:\Program Files (x86)\Java”
I have downloaded java code and copied in “C:\Program Files (x86)\Java\jre6\bin” in vmfs_r95 folder.
Now you can run java code by executing following:
C:\Program Files (x86)\Java\jre6\bin>java -jar vmfs_r95\fvmfs.jar VMFSTools (C) by fluid Operations (v0.9.8.18 r95 / 2010-01-25_15-57-35) http://www.fluidops.com Arguments: VMFSVolume info VMFSVolume dir path VMFSVolume dirall path VMFSVolume cat path VMFSVolume fileinfo path VMFSVolume filecopy path [newname position size] VMFSVolume filedump path position size VMFSVolume showheartbeats VMFSVolume webdav [host port] VMFSVolume can be any mounted VMFS volume, or a volume reachable by SSH/SFTP. Multiple VMFS extents can be specified using a comma-separated list. Examples: \\sambaserver\luns\bigdisk dir /Linux_VMs ssh://root:passwd@linuxhost/mnt/vmfslun fileinfo /disks/SwapDisk-flat.vmdk \\.\PhysicalDrive3,\\.\PhysicalDrive4 filecopy /Windows-Template/W2008.vmdk x: \recover\W2008.vmdk |
I connected vmfs disk using USB disk. So I run this command to see disk information.
I used diskpart command to list disks You can see steps below:
vmfs formatted disk is “Disk 2” So physical drive path is \\.\PhysicalDrive2
So I used Command below :
C:\Program Files (x86)\Java\jre6\bin>java -jar vmfs_r95\fvmfs.jar \\.\PhysicalDrive2 webdav VMFSTools (C) by fluid Operations (v0.9.8.18 r95 / 2010-01-25_15-57-35) http://www.fluidops.com *** Serving WebDAV/HTTP at http://localhost:50080/vmfs log4j:WARN No appenders could be found for logger (org.mortbay.log). log4j:WARN Please initialize the log4j system properly. |
Browse page at http://localhost:50080/vmfs and see vmfs disks content.
You can even define host and port to connect another machine.
C:\Program Files (x86)\Java\jre6\bin>java -jar vmfs_r95\fvmfs.jar \\.\PhysicalDrive2 webdav 172.16.12.2 12312 VMFSTools (C) by fluid Operations (v0.9.8.18 r95 / 2010-01-25_15-57-35) http://www.fluidops.com *** Serving WebDAV/HTTP at http://172.16.12.2:12312/vmfs log4j:WARN No appenders could be found for logger (org.mortbay.log). log4j:WARN Please initialize the log4j system properly. |