Revision 90bb3fe1

b/man/gnt-backup.rst
136 136
instance. If no such parameters are specified, the values are
137 137
inherited from the export. Possible parameters are:
138 138

  
139
memory
140
    the memory size of the instance; as usual, suffixes can be used to
141
    denote the unit, otherwise the value is taken in mebibites
139
maxmem
140
    the maximum memory size of the instance; as usual, suffixes can be
141
    used to denote the unit, otherwise the value is taken in mebibites
142

  
143
minmem
144
    the minimum memory size of the instance; as usual, suffixes can be
145
    used to denote the unit, otherwise the value is taken in mebibites
142 146

  
143 147
vcpus
144 148
    the number of VCPUs to assign to the instance (if this value makes
b/man/gnt-cluster.rst
321 321
    Number of VCPUs to set for an instance by default, must be an
322 322
    integer, will be set to 1 if no specified.
323 323

  
324
memory
325
    Amount of memory to allocate for an instance by default, can be
326
    either an integer or an integer followed by a unit (M for mebibytes
327
    and G for gibibytes are supported), will be set to 128M if not
328
    specified.
324
maxmem
325
    Maximum amount of memory to allocate for an instance by default, can
326
    be either an integer or an integer followed by a unit (M for
327
    mebibytes and G for gibibytes are supported), will be set to 128M if
328
    not specified.
329

  
330
minmem
331
    Minimum amount of memory to allocate for an instance by default, can
332
    be either an integer or an integer followed by a unit (M for
333
    mebibytes and G for gibibytes are supported), will be set to 128M if
334
    not specified.
329 335

  
330 336
auto\_balance
331 337
    Value of the auto\_balance flag for instances to use by default,
b/man/gnt-instance.rst
128 128
parameters for the instance. If no such parameters are specified, the
129 129
values are inherited from the cluster. Possible parameters are:
130 130

  
131
memory
132
    the memory size of the instance; as usual, suffixes can be used to
133
    denote the unit, otherwise the value is taken in mebibites
131
maxmem
132
    the maximum memory size of the instance; as usual, suffixes can be
133
    used to denote the unit, otherwise the value is taken in mebibites
134

  
135
minmem
136
    the minimum memory size of the instance; as usual, suffixes can be
137
    used to denote the unit, otherwise the value is taken in mebibites
134 138

  
135 139
vcpus
136 140
    the number of VCPUs to assign to the instance (if this value makes
......
140 144
    whether the instance is considered in the N+1 cluster checks
141 145
    (enough redundancy in the cluster to survive a node failure)
142 146

  
147
Note that before 2.6 Ganeti had a ``memory`` parameter, which was the
148
only value of memory an instance could have. With the
149
``maxmem``/``minmem`` change Ganeti guarantees that at least the minimum
150
memory is always available for an instance, but allows more memory to be
151
used (up to the maximum memory) should it be free.
143 152

  
144 153
The ``-H (--hypervisor-parameters)`` option specified the hypervisor
145 154
to use for the instance (must be one of the enabled hypervisors on the
......
617 626

  
618 627
Example::
619 628

  
620
    # gnt-instance add -t file --disk 0:size=30g -B memory=512 -o debian-etch \
629
    # gnt-instance add -t file --disk 0:size=30g -B maxmem=512 -o debian-etch \
621 630
      -n node1.example.com --file-storage-dir=mysubdir instance1.example.com
622
    # gnt-instance add -t plain --disk 0:size=30g -B memory=512 -o debian-etch \
623
      -n node1.example.com instance1.example.com
631
    # gnt-instance add -t plain --disk 0:size=30g -B maxmem=1024,minmem=512 \
632
      -o debian-etch -n node1.example.com instance1.example.com
624 633
    # gnt-instance add -t plain --disk 0:size=30g --disk 1:size=100g,vg=san \
625
      -B memory=512 -o debian-etch -n node1.example.com instance1.example.com
626
    # gnt-instance add -t drbd --disk 0:size=30g -B memory=512 -o debian-etch \
634
      -B maxmem=512 -o debian-etch -n node1.example.com instance1.example.com
635
    # gnt-instance add -t drbd --disk 0:size=30g -B maxmem=512 -o debian-etch \
627 636
      -n node1.example.com:node2.example.com instance2.example.com
628 637

  
629 638

  
......
708 717
        "iallocator": "dumb",
709 718
        "hypervisor": "xen-hvm",
710 719
        "hvparams": {"acpi": true},
711
        "backend": {"memory": 512}
720
        "backend": {"maxmem": 512, "minmem": 256}
712 721
      }
713 722
    }
714 723

  
......
1033 1042
forth, e.g.::
1034 1043

  
1035 1044
    # gnt-instance start -H kernel_args="single" instance1
1036
    # gnt-instance start -B memory=2048 instance2
1045
    # gnt-instance start -B maxmem=2048 instance2
1037 1046

  
1038 1047

  
1039 1048
The first form will start the instance instance1 in single-user mode,

Also available in: Unified diff