Update volumes.md (#5026)

* Update volumes.md

Fix leading spaces in commands. And fix command line format.

* change bullet points into tabs

* tidy
This commit is contained in:
Stewart-YU 2017-08-22 08:31:29 +08:00 committed by Andrew Chen
parent eb84048739
commit 33ae774e3f
1 changed files with 14 additions and 5 deletions

View File

@ -581,18 +581,27 @@ __Important: You must create VMDK using one of the following method before using
#### Creating a VMDK volume
* Create using vmkfstools.
Choose one of the following methods to create a VMDK.
First ssh into ESX and then use following command to create vmdk,
{% capture vmkfstools %}
First ssh into ESX, then use the following command to create a VMDK:
```shell
vmkfstools -c 2G /vmfs/volumes/DatastoreName/volumes/myDisk.vmdk
vmkfstools -c 2G /vmfs/volumes/DatastoreName/volumes/myDisk.vmdk
```
{% endcapture %}
{% capture vdiskmanager %}
Use the following command to create a VMDK:
* Create using vmware-vdiskmanager.
```shell
vmware-vdiskmanager -c -t 0 -s 40GB -a lsilogic myDisk.vmdk
vmware-vdiskmanager -c -t 0 -s 40GB -a lsilogic myDisk.vmdk
```
{% endcapture %}
{% assign tab_names = 'Create using vmkfstools,Create using vmware-vdiskmanager' | split: ',' | compact %}
{% assign tab_contents = site.emptyArray | push: vmkfstools | push: vdiskmanager %}
{% include tabs.md %}
#### vSphere VMDK Example configuration