Statistics
| Branch: | Tag: | Revision:

root / man / gnt-group.rst @ e4c03256

History | View | Annotate | Download (7.2 kB)

1
gnt-group(8) Ganeti | Version @GANETI_VERSION@
2
==============================================
3

    
4
Name
5
----
6

    
7
gnt-group - Ganeti node-group administration
8

    
9
Synopsis
10
--------
11

    
12
**gnt-group** {command} [arguments...]
13

    
14
DESCRIPTION
15
-----------
16

    
17
The **gnt-group** command is used for node group administration in
18
the Ganeti system.
19

    
20
COMMANDS
21
--------
22

    
23
ADD
24
~~~
25

    
26
| **add**
27
| [--node-parameters=*NDPARAMS*]
28
| [--alloc-policy=*POLICY*]
29
| [{-D|--disk-parameters} *disk-template*:*disk-param*=*value*[,*disk-param*=*value*...]]
30
| [--specs-cpu-count *spec-param*=*value* [,*spec-param*=*value*...]]
31
| [--specs-disk-count *spec-param*=*value* [,*spec-param*=*value*...]]
32
| [--specs-disk-size *spec-param*=*value* [,*spec-param*=*value*...]]
33
| [--specs-mem-size *spec-param*=*value* [,*spec-param*=*value*...]]
34
| [--specs-nic-count *spec-param*=*value* [,*spec-param*=*value*...]]
35
| [--disk-state *diskstate*]
36
| [--hypervisor-state *hvstate*]
37
| {*group*}
38

    
39
Creates a new group with the given name. The node group will be
40
initially empty; to add nodes to it, use ``gnt-group assign-nodes``.
41

    
42
The ``--node-parameters`` option allows you to set default node
43
parameters for nodes in the group. Please see **ganeti**(7) for more
44
information about supported key=value pairs and their corresponding
45
options.
46

    
47
The ``--alloc-policy`` option allows you to set an allocation policy for
48
the group at creation time. Possible values are:
49

    
50
unallocable
51
    nodes in the group should not be candidates for instance allocation,
52
    and the operation (e.g., instance creation) should fail if only
53
    groups in this state could be found to satisfy the requirements.
54

    
55
last_resort
56
    nodes in the group should not be used for instance allocations,
57
    unless this would be the only way to have the operation succeed.
58

    
59
preferred
60
    nodes in the group can be used freely for allocation of instances
61
    (this is the default). Note that prioritization among groups in this
62
    state will be deferred to the iallocator plugin that's being used.
63

    
64
The ``-D (--disk-parameters)`` option allows you to set the disk
65
parameters for the node group; please see the section about
66
**gnt-cluster add** in **gnt-cluster**(8) for more information about
67
disk parameters
68

    
69
The ``--specs-..`` options specify instance policy on the cluster. Each
70
option can have two values: ``min`` and ``max``.
71
``--specs-cpu-count`` sets the number of VCPUs that can be used by an
72
instance.
73
``--specs-disk-count`` sets the number of disks
74
``--specs-disk-size`` limits the disk size for every disk used
75
``--specs-mem-size`` limits the amount of memory available
76
``--specs-nic-count`` sets limits on the amount of nics used
77

    
78
ASSIGN-NODES
79
~~~~~~~~~~~~
80

    
81
| **assign-nodes**
82
| [--force]
83
| {*group*} {*node*...}
84

    
85
Assigns one or more nodes to the specified group, moving them from their
86
original group (or groups).
87

    
88
By default, this command will refuse to proceed if the move would split
89
between groups any instance that was not previously split (a split
90
instance is an instance with a mirrored disk template, e.g. DRBD, that
91
has the primary and secondary nodes in different node groups). You can
92
force the operation with ``--force``.
93

    
94
MODIFY
95
~~~~~~
96

    
97
| **modify**
98
| [--node-parameters=*NDPARAMS*]
99
| [--alloc-policy=*POLICY*]
100
| [--hypervisor-state *hvstate*]
101
| [{-D|--disk-parameters} *disk-template*:*disk-param*=*value*[,*disk-param*=*value*...]]
102
| [--disk-state *diskstate*]
103
| [--specs-cpu-count *spec-param*=*value* [,*spec-param*=*value*...]]
104
| [--specs-disk-count *spec-param*=*value* [,*spec-param*=*value*...]]
105
| [--specs-disk-size *spec-param*=*value* [,*spec-param*=*value*...]]
106
| [--specs-mem-size *spec-param*=*value* [,*spec-param*=*value*...]]
107
| [--specs-nic-count *spec-param*=*value* [,*spec-param*=*value*...]]
108
| {*group*}
109

    
110
Modifies some parameters from the node group.
111

    
112
The ``--node-parameters`` and ``--alloc-policy`` options are documented
113
in the **add** command above. ``--hypervisor-state`` as well as
114
``--disk-state`` are documented in detail in **ganeti**(7).
115

    
116
The ``--node-parameters``, ``--alloc-policy``, ``-D
117
(--disk-parameters)`` and ``--specs-..`` options are documented in the
118
**add** command above.
119

    
120
REMOVE
121
~~~~~~
122

    
123
| **remove** {*group*}
124

    
125
Deletes the indicated node group, which must be empty. There must always be at
126
least one group, so the last group cannot be removed.
127

    
128
LIST
129
~~~~
130

    
131
| **list** [--no-headers] [--separator=*SEPARATOR*] [-v]
132
| [-o *[+]FIELD,...*] [--filter] [group...]
133

    
134
Lists all existing node groups in the cluster.
135

    
136
The ``--no-headers`` option will skip the initial header line. The
137
``--separator`` option takes an argument which denotes what will be
138
used between the output fields. Both these options are to help
139
scripting.
140

    
141
The ``-v`` option activates verbose mode, which changes the display of
142
special field states (see **ganeti(7)**).
143

    
144
The ``-o`` option takes a comma-separated list of output fields.
145
If the value of the option starts with the character ``+``, the new
146
fields will be added to the default list. This allows one to quickly
147
see the default list plus a few other fields, instead of retyping
148
the entire list of fields.
149

    
150
The available fields and their meaning are:
151

    
152
@QUERY_FIELDS_GROUP@
153

    
154
If exactly one argument is given and it appears to be a query filter
155
(see **ganeti(7)**), the query result is filtered accordingly. For
156
ambiguous cases (e.g. a single field name as a filter) the ``--filter``
157
(``-F``) option forces the argument to be treated as a filter.
158

    
159
If no group names are given, then all groups are included. Otherwise,
160
only the named groups will be listed.
161

    
162
LIST-FIELDS
163
~~~~~~~~~~~
164

    
165
**list-fields** [field...]
166

    
167
List available fields for node groups.
168

    
169
RENAME
170
~~~~~~
171

    
172
| **rename** {*oldname*} {*newname*}
173

    
174
Renames a given group from *oldname* to *newname*.
175

    
176

    
177
EVACUATE
178
~~~~~~~~
179

    
180
**evacuate** [--iallocator *NAME*] [--to *GROUP*...] {*group*}
181

    
182
This command will move all instances out of the given node group.
183
Instances are placed in a new group by an iallocator, either given on
184
the command line or as a cluster default.
185

    
186
If no specific destination groups are specified using ``--to``, all
187
groups except the evacuated group are considered.
188

    
189
Example::
190

    
191
    # gnt-group evacuate -I hail --to rack4 rack1
192

    
193

    
194
TAGS
195
~~~~
196

    
197
ADD-TAGS
198
^^^^^^^^
199

    
200
**add-tags** [--from *file*] {*groupname*} {*tag*...}
201

    
202
Add tags to the given node group. If any of the tags contains invalid
203
characters, the entire operation will abort.
204

    
205
If the ``--from`` option is given, the list of tags will be extended
206
with the contents of that file (each line becomes a tag). In this case,
207
there is not need to pass tags on the command line (if you do, both
208
sources will be used). A file name of ``-`` will be interpreted as
209
stdin.
210

    
211
LIST-TAGS
212
^^^^^^^^^
213

    
214
**list-tags** {*groupname*}
215

    
216
List the tags of the given node group.
217

    
218
REMOVE-TAGS
219
^^^^^^^^^^^
220

    
221
**remove-tags** [--from *file*] {*groupname*} {*tag*...}
222

    
223
Remove tags from the given node group. If any of the tags are not
224
existing on the node, the entire operation will abort.
225

    
226
If the ``--from`` option is given, the list of tags to be removed will
227
be extended with the contents of that file (each line becomes a tag). In
228
this case, there is not need to pass tags on the command line (if you
229
do, tags from both sources will be removed). A file name of ``-`` will
230
be interpreted as stdin.
231

    
232
.. vim: set textwidth=72 :
233
.. Local Variables:
234
.. mode: rst
235
.. fill-column: 72
236
.. End: