Manualy create a vmfs volume

to align VMFS volumes, the alignment will be done at ESX server level using fdisk and at the VM level. This is because both the ESX Server and the clients will put MBRs on the LUNs. The ESX must align the VMFS volume, and the client systems must align their virtual disks.
To align the ESX server:

1. On service console, execute fdisk /dev/sd<x> where sd<x> is the device on which you would like to create the VMFS.

2. Type “n” to create a new partition.

3. Type “p” to create a primary partition.

4. Type “1” to create partition #1.

5. Select the defaults to use the complete disk.

6. Type “x” to get into expert mode.

7. Type “b” to specify the starting block for partitions.

8. Type “1” to select partition #1.

9. Type “128” to make partition #1 to align on 64KB boundary.

10. Type “r” to return to the main menu.

11. Type “t” to change partition type.

12. Type “1” to select partition #1.

13. Type “fb” to set the type to fb (VMFS volume).

14. Type “w” to write label and the partition information to disk.

By declaring the partition type as fb, the ESX server will recognize the partition as an unformatted VMFS volume. You should be able to put a VMFS file system on it using the MUI or vmkfstools. Next, the virtual disks for each VM must be aligned. For Linux VMs follow the procedure listed above. For Windows VMs, use the procedure for Windows, above.

创建卷标为 sp1 ,块大小为2MB 的一个存储器

vmkfstools -C vmfs3 -S sp1 -b 2m /vmfs/devices/disks/vmhba0\:1\:1\:1

Creating vmfs3 file system on “vmhba0:1:1:1” with blockSize 2097152 and volume label “sp1”.

Successfully created new volume: 486977c0-4c1ca488-de18-001cc4a84d52

存储器容量扩展
vmkfstools -Z  /vmfs/devices/disks/vmhba2\:1\:0\:1 /vmfs/devices/disks/vmhba0\:1\:1\:1
VMware ESX Server Question:
All data on vmhba2:1:0:1 will be lost. Continue and format?
0) Yes
1) No
Please choose a number [0-1]: 0
创建rdm映射vmkfstools -r /vmfs/devices/disks/vmhba0\:1\:1\:0 rdm.vmdk

此篇文章已被阅读1956 次

Add a Comment

邮箱地址不会被公开。 必填项已用*标注