vmfs-tools

最後更新: 2016-06-23

 

介紹

home: http://glandium.org/projects/vmfs-tools/

  • vmfs-tools – supports VMFS 3 (ESXi 3.x, 4x) andVMFS 5 (ESXi 5.x)
  • vmfs6-tools – VMFS 6 (used by default in modern versions of ESXi since vSphere 6.5)

 


Version:

0.2.5 => VMFS v5

Install:

apt-get install vmfs-tools

Usage:

mkdir /mnt/vmfs

vmfs-fuse /dev/sdc1 /mnt/vmfs

check

mount

/dev/fuse on /mnt/vmfs type fuse (rw,nosuid,nodev,relatime,user_id=0,group_id=0,default_permissions)

P.S.

** ESXi 5 uses VMFS v5 with GPT

所以要用 "parted -l" 去看 partition table

 


Compile

 

yum install libuuid-devel fuse-devel asciidoc

wget http://glandium.org/projects/vmfs-tools/vmfs-tools-0.2.5.tar.gz

tar -xvzf vmfs-tools*

./configure

make

make install

debugvmfs

i.e.

debugvmfs /dev/sda1 df -h

  - ls : List files in specified directory
  - df : Show available free space

 

mount vmfs datastore esxi 6.7

VMFS: Unsupported version 6
Unable to open device/file "/dev/loop0p3".
Unable to open filesystem

 


vmfs6-tools

 

apt-get install libfuse2

https://packages.debian.org/sid/vmfs6-tools

wget http://ftp.us.debian.org/debian/pool/main/v/vmfs6-tools/vmfs6-tools_0.2....

dpkg -i vmfs6-tools_0.2.1-1+b1_amd64.deb

 

blkid /dev/loop0p3

/dev/loop0p3: UUID_SUB="?-?-?-?" TYPE="VMFS_volume_member" ...

Supported version 6

wget https://launchpad.net/ubuntu/+archive/primary/+sourcefiles/vmfs6-tools/0...

tar -zxf vmfs6-tools_0.1.0.orig.tar.gz

cd vmfs6-tools-0.1.0

./configure

make -j

mv vmfs6-fuse/vmfs6-fuse /usr/sbin

vmfs6-fuse /dev/sdg3 /mnt/tmp

VMFS version: 6

 


 

 

 

 


 

 

 

Creative Commons license icon Creative Commons license icon