
Resource Management
259
www.vmware.com
<nshares> shares. The valid range of values for <nshares> is 0 to 100000,
enabling a large range of allocation ratios. If the number of shares for a disk is not
specified, the default allocation is 1000.
Note: It is important to use the same name when you specify the virtual disk name
and the shares for that disk. If <fsname> is used to specify the name of a virtual disk,
the same <fsname> must be used to specify the shares. If a fully qualified set of
numbers is used to specify the virtual disk name (for example, vmhba0:5:0), then
the same set of numbers should be used to specify <fsname> when you are setting
the number of shares.
Note: It is possible for a configuration file to have multiple lines specifying the
number of shares. If this happens, the value specified in the last of those lines is used.
Configuration File Examples
scsi0.virtualdev = vmxbuslogic
scsi0:1.present = TRUE
scsi0:1.name = rootdiskfs:rh6.2.dsk
scsi0:1.mode = persistent
sched.disk.shares.rootdiskfs = 800
scsi0:2.present = TRUE
scsi0:2.name = scratchfs:scratch1.dsk
sched.disk.shares.scratchfs = 400
In the example above, the first four lines in the first group and the first two lines in the
second group are present in the configuration file before you make your changes. The
final line in each group is the added line to specify the disk bandwidth allocation. As
described above, check the value of <fsname> in the line specifying the VMFS file
and use the same value in the line specifying the disk bandwidth allocation. In the first
group of lines in the example, that value is rootdiskfs; in the second group of
lines, it is scratchfs.
Managing Disk Bandwidth from the Console Operating System
Use the following guidelines for the console operating system commands to monitor
and manage allocation of disk bandwidth on an ESX Server computer.
/proc/VMware/vm/<id>/disk/vmhba<x:y:z>
Reading from this file reports the number of disk bandwidth shares allocated to the
virtual machine identified by <id> for the disk identified by vmhba<x:y:z>. It also
reports disk usage statistics.
Kommentare zu diesen Handbüchern