1.1K
http://www.yellow-bricks.com posted a Blog Entry titled : Create VMFS volumes from the command-line
“
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/sda
- n (new)
- default (start block)
- default (end block)
- t (partition type)
- 10 (partition 10, just created)
- fb (vmfs type)
- w (write config)
- reboot (Reboot the host before you format the newly created partition)
- vmkfstools -C vmfs3 /vmfs/devices/disks/vmhba0:0:0:10
- Go to VI Client, Refresh storage view and rename the newly created volume
You can align the VMFS volume as follows, before you do step 9:
- X
- b
- 1
- 128 (disk alignment, check your SAN manual for the correct value, 128 is correct in most cases…)
- W
“
I was looking for this the other day, and was asking about alignment before the last VMware Roundtable. http://blogs.vmware.com/vmtn/podcasts/
Full post http://www.yellow-bricks.com/2008/12/15/create-vmfs-volumes-from-the-commandline/