|
VMWare: create VMFS storage from the commandline |
|
|
|
|
Saturday, 28 March 2009 15:33 |
|
I just had to create a couple VMFS volumes from the command-line on a local disk. It’s pretty straight forward but I needed to document it anyway, here it is: - fdisk -l (check what the last partition is)
- fdisk /dev/disks/vmhba1\:0\:0\:0
- d (I had to delete formerly created linux partitions)
- n (new)
- default (start block)
- default (end block)
- t (partition type)
- fb (vmfs type)
- X
- b
- 1
- 128 (disk alignment, check your SAN manual for the correct value, 128 is correct in most cases…)
- W
- reboot if needed (I did not have to reboot on my ESXi USB VMware server)
- ~ # vmkfstools -C vmfs3 /dev/disks/vmhba1\:0\:0\:1
Creating vmfs3 file system on "vmhba1:0:0:1" with blockSize 1048576 and volume label "none". Successfully created new volume: 49ce3608-2b378b66-c502-00123fba3df2 - Go to VI Client, Refresh storage view and rename the newly created volume
|