root / man / gnt-group.rst @ 432e8e2f
History | View | Annotate | Download (7.2 kB)
1 | 667dbd6b | Adeodato Simo | gnt-group(8) Ganeti | Version @GANETI_VERSION@ |
---|---|---|---|
2 | 667dbd6b | Adeodato Simo | ============================================== |
3 | 667dbd6b | Adeodato Simo | |
4 | 667dbd6b | Adeodato Simo | Name |
5 | 667dbd6b | Adeodato Simo | ---- |
6 | 667dbd6b | Adeodato Simo | |
7 | 667dbd6b | Adeodato Simo | gnt-group - Ganeti node-group administration |
8 | 667dbd6b | Adeodato Simo | |
9 | 667dbd6b | Adeodato Simo | Synopsis |
10 | 667dbd6b | Adeodato Simo | -------- |
11 | 667dbd6b | Adeodato Simo | |
12 | 667dbd6b | Adeodato Simo | **gnt-group** {command} [arguments...] |
13 | 667dbd6b | Adeodato Simo | |
14 | 667dbd6b | Adeodato Simo | DESCRIPTION |
15 | 667dbd6b | Adeodato Simo | ----------- |
16 | 667dbd6b | Adeodato Simo | |
17 | 667dbd6b | Adeodato Simo | The **gnt-group** command is used for node group administration in |
18 | 667dbd6b | Adeodato Simo | the Ganeti system. |
19 | 667dbd6b | Adeodato Simo | |
20 | 667dbd6b | Adeodato Simo | COMMANDS |
21 | 667dbd6b | Adeodato Simo | -------- |
22 | 667dbd6b | Adeodato Simo | |
23 | 66e884e1 | Adeodato Simo | ADD |
24 | 66e884e1 | Adeodato Simo | ~~~ |
25 | 66e884e1 | Adeodato Simo | |
26 | 483be60d | Adeodato Simo | | **add** |
27 | 483be60d | Adeodato Simo | | [--node-parameters=*NDPARAMS*] |
28 | 90e99856 | Adeodato Simo | | [--alloc-policy=*POLICY*] |
29 | 9475189d | Andrea Spadaccini | | [{-D|--disk-parameters} *disk-template*:*disk-param*=*value*[,*disk-param*=*value*...]] |
30 | d6033c14 | Agata Murawska | | [--specs-cpu-count *spec-param*=*value* [,*spec-param*=*value*...]] |
31 | d6033c14 | Agata Murawska | | [--specs-disk-count *spec-param*=*value* [,*spec-param*=*value*...]] |
32 | d6033c14 | Agata Murawska | | [--specs-disk-size *spec-param*=*value* [,*spec-param*=*value*...]] |
33 | d6033c14 | Agata Murawska | | [--specs-mem-size *spec-param*=*value* [,*spec-param*=*value*...]] |
34 | d6033c14 | Agata Murawska | | [--specs-nic-count *spec-param*=*value* [,*spec-param*=*value*...]] |
35 | d04c9d45 | Iustin Pop | | [--ipol-disk-templates *template* [,*template*...]] |
36 | e4c03256 | René Nussbaumer | | [--disk-state *diskstate*] |
37 | e4c03256 | René Nussbaumer | | [--hypervisor-state *hvstate*] |
38 | 483be60d | Adeodato Simo | | {*group*} |
39 | 66e884e1 | Adeodato Simo | |
40 | 66e884e1 | Adeodato Simo | Creates a new group with the given name. The node group will be |
41 | 919852da | Adeodato Simo | initially empty; to add nodes to it, use ``gnt-group assign-nodes``. |
42 | 66e884e1 | Adeodato Simo | |
43 | 483be60d | Adeodato Simo | The ``--node-parameters`` option allows you to set default node |
44 | 483be60d | Adeodato Simo | parameters for nodes in the group. Please see **ganeti**(7) for more |
45 | e4c03256 | René Nussbaumer | information about supported key=value pairs and their corresponding |
46 | e4c03256 | René Nussbaumer | options. |
47 | 483be60d | Adeodato Simo | |
48 | 90e99856 | Adeodato Simo | The ``--alloc-policy`` option allows you to set an allocation policy for |
49 | 90e99856 | Adeodato Simo | the group at creation time. Possible values are: |
50 | 90e99856 | Adeodato Simo | |
51 | 90e99856 | Adeodato Simo | unallocable |
52 | 90e99856 | Adeodato Simo | nodes in the group should not be candidates for instance allocation, |
53 | 90e99856 | Adeodato Simo | and the operation (e.g., instance creation) should fail if only |
54 | 90e99856 | Adeodato Simo | groups in this state could be found to satisfy the requirements. |
55 | 90e99856 | Adeodato Simo | |
56 | 90e99856 | Adeodato Simo | last_resort |
57 | 90e99856 | Adeodato Simo | nodes in the group should not be used for instance allocations, |
58 | 90e99856 | Adeodato Simo | unless this would be the only way to have the operation succeed. |
59 | 90e99856 | Adeodato Simo | |
60 | 90e99856 | Adeodato Simo | preferred |
61 | 90e99856 | Adeodato Simo | nodes in the group can be used freely for allocation of instances |
62 | 90e99856 | Adeodato Simo | (this is the default). Note that prioritization among groups in this |
63 | 90e99856 | Adeodato Simo | state will be deferred to the iallocator plugin that's being used. |
64 | 90e99856 | Adeodato Simo | |
65 | a46b1883 | Andrea Spadaccini | The ``-D (--disk-parameters)`` option allows you to set the disk |
66 | a46b1883 | Andrea Spadaccini | parameters for the node group; please see the section about |
67 | a46b1883 | Andrea Spadaccini | **gnt-cluster add** in **gnt-cluster**(8) for more information about |
68 | a46b1883 | Andrea Spadaccini | disk parameters |
69 | a46b1883 | Andrea Spadaccini | |
70 | d04c9d45 | Iustin Pop | The ``--specs-...`` and ``--ipol-disk-templates`` options specify |
71 | d04c9d45 | Iustin Pop | instance policies on the node group, and are documented in the |
72 | d04c9d45 | Iustin Pop | **gnt-cluster**(8) man page. |
73 | d6033c14 | Agata Murawska | |
74 | 919852da | Adeodato Simo | ASSIGN-NODES |
75 | 919852da | Adeodato Simo | ~~~~~~~~~~~~ |
76 | 919852da | Adeodato Simo | |
77 | 919852da | Adeodato Simo | | **assign-nodes** |
78 | 919852da | Adeodato Simo | | [--force] |
79 | 919852da | Adeodato Simo | | {*group*} {*node*...} |
80 | 919852da | Adeodato Simo | |
81 | 919852da | Adeodato Simo | Assigns one or more nodes to the specified group, moving them from their |
82 | 919852da | Adeodato Simo | original group (or groups). |
83 | 919852da | Adeodato Simo | |
84 | 919852da | Adeodato Simo | By default, this command will refuse to proceed if the move would split |
85 | 919852da | Adeodato Simo | between groups any instance that was not previously split (a split |
86 | 919852da | Adeodato Simo | instance is an instance with a mirrored disk template, e.g. DRBD, that |
87 | 919852da | Adeodato Simo | has the primary and secondary nodes in different node groups). You can |
88 | 919852da | Adeodato Simo | force the operation with ``--force``. |
89 | 90e99856 | Adeodato Simo | |
90 | 4da7909a | Adeodato Simo | MODIFY |
91 | 4da7909a | Adeodato Simo | ~~~~~~ |
92 | 4da7909a | Adeodato Simo | |
93 | 4da7909a | Adeodato Simo | | **modify** |
94 | 4da7909a | Adeodato Simo | | [--node-parameters=*NDPARAMS*] |
95 | 90e99856 | Adeodato Simo | | [--alloc-policy=*POLICY*] |
96 | a8282327 | René Nussbaumer | | [--hypervisor-state *hvstate*] |
97 | 9475189d | Andrea Spadaccini | | [{-D|--disk-parameters} *disk-template*:*disk-param*=*value*[,*disk-param*=*value*...]] |
98 | a8282327 | René Nussbaumer | | [--disk-state *diskstate*] |
99 | d6033c14 | Agata Murawska | | [--specs-cpu-count *spec-param*=*value* [,*spec-param*=*value*...]] |
100 | d6033c14 | Agata Murawska | | [--specs-disk-count *spec-param*=*value* [,*spec-param*=*value*...]] |
101 | d6033c14 | Agata Murawska | | [--specs-disk-size *spec-param*=*value* [,*spec-param*=*value*...]] |
102 | d6033c14 | Agata Murawska | | [--specs-mem-size *spec-param*=*value* [,*spec-param*=*value*...]] |
103 | d6033c14 | Agata Murawska | | [--specs-nic-count *spec-param*=*value* [,*spec-param*=*value*...]] |
104 | d04c9d45 | Iustin Pop | | [--ipol-disk-templates *template* [,*template*...]] |
105 | 4da7909a | Adeodato Simo | | {*group*} |
106 | 4da7909a | Adeodato Simo | |
107 | 4da7909a | Adeodato Simo | Modifies some parameters from the node group. |
108 | 4da7909a | Adeodato Simo | |
109 | a8282327 | René Nussbaumer | The ``--node-parameters`` and ``--alloc-policy`` options are documented |
110 | a8282327 | René Nussbaumer | in the **add** command above. ``--hypervisor-state`` as well as |
111 | a8282327 | René Nussbaumer | ``--disk-state`` are documented in detail in **ganeti**(7). |
112 | 4da7909a | Adeodato Simo | |
113 | d6033c14 | Agata Murawska | The ``--node-parameters``, ``--alloc-policy``, ``-D |
114 | 0ce212e5 | Iustin Pop | (--disk-parameters)`` options are documented in the **add** command |
115 | 0ce212e5 | Iustin Pop | above. |
116 | 0ce212e5 | Iustin Pop | |
117 | d04c9d45 | Iustin Pop | The ``--specs-...`` and ``--ipol-disk-templates`` options specify |
118 | d04c9d45 | Iustin Pop | instance policies on the node group, and are documented in the |
119 | d04c9d45 | Iustin Pop | **gnt-cluster**(8) man page. |
120 | a46b1883 | Andrea Spadaccini | |
121 | 66e884e1 | Adeodato Simo | REMOVE |
122 | 66e884e1 | Adeodato Simo | ~~~~~~ |
123 | 66e884e1 | Adeodato Simo | |
124 | 66e884e1 | Adeodato Simo | | **remove** {*group*} |
125 | 66e884e1 | Adeodato Simo | |
126 | a7c5085d | Stephen Shirley | Deletes the indicated node group, which must be empty. There must always be at |
127 | a7c5085d | Stephen Shirley | least one group, so the last group cannot be removed. |
128 | 66e884e1 | Adeodato Simo | |
129 | 667dbd6b | Adeodato Simo | LIST |
130 | 667dbd6b | Adeodato Simo | ~~~~ |
131 | 667dbd6b | Adeodato Simo | |
132 | f0b1bafe | Iustin Pop | | **list** [--no-headers] [--separator=*SEPARATOR*] [-v] |
133 | 1b1a08e8 | Michael Hanselmann | | [-o *[+]FIELD,...*] [--filter] [group...] |
134 | 667dbd6b | Adeodato Simo | |
135 | 667dbd6b | Adeodato Simo | Lists all existing node groups in the cluster. |
136 | 667dbd6b | Adeodato Simo | |
137 | 667dbd6b | Adeodato Simo | The ``--no-headers`` option will skip the initial header line. The |
138 | 667dbd6b | Adeodato Simo | ``--separator`` option takes an argument which denotes what will be |
139 | 667dbd6b | Adeodato Simo | used between the output fields. Both these options are to help |
140 | 667dbd6b | Adeodato Simo | scripting. |
141 | 667dbd6b | Adeodato Simo | |
142 | f0b1bafe | Iustin Pop | The ``-v`` option activates verbose mode, which changes the display of |
143 | f0b1bafe | Iustin Pop | special field states (see **ganeti(7)**). |
144 | f0b1bafe | Iustin Pop | |
145 | 667dbd6b | Adeodato Simo | The ``-o`` option takes a comma-separated list of output fields. |
146 | 667dbd6b | Adeodato Simo | If the value of the option starts with the character ``+``, the new |
147 | f7b769b1 | Iustin Pop | fields will be added to the default list. This allows one to quickly |
148 | 667dbd6b | Adeodato Simo | see the default list plus a few other fields, instead of retyping |
149 | 667dbd6b | Adeodato Simo | the entire list of fields. |
150 | 667dbd6b | Adeodato Simo | |
151 | 667dbd6b | Adeodato Simo | The available fields and their meaning are: |
152 | 667dbd6b | Adeodato Simo | |
153 | fcdb582d | Michael Hanselmann | @QUERY_FIELDS_GROUP@ |
154 | 4edc512c | Adeodato Simo | |
155 | 1b1a08e8 | Michael Hanselmann | If exactly one argument is given and it appears to be a query filter |
156 | 1b1a08e8 | Michael Hanselmann | (see **ganeti(7)**), the query result is filtered accordingly. For |
157 | 1b1a08e8 | Michael Hanselmann | ambiguous cases (e.g. a single field name as a filter) the ``--filter`` |
158 | 1b1a08e8 | Michael Hanselmann | (``-F``) option forces the argument to be treated as a filter. |
159 | 1b1a08e8 | Michael Hanselmann | |
160 | 667dbd6b | Adeodato Simo | If no group names are given, then all groups are included. Otherwise, |
161 | 667dbd6b | Adeodato Simo | only the named groups will be listed. |
162 | 66e884e1 | Adeodato Simo | |
163 | ca4ac9c9 | Adeodato Simo | LIST-FIELDS |
164 | ca4ac9c9 | Adeodato Simo | ~~~~~~~~~~~ |
165 | ca4ac9c9 | Adeodato Simo | |
166 | ca4ac9c9 | Adeodato Simo | **list-fields** [field...] |
167 | ca4ac9c9 | Adeodato Simo | |
168 | ca4ac9c9 | Adeodato Simo | List available fields for node groups. |
169 | ca4ac9c9 | Adeodato Simo | |
170 | 66e884e1 | Adeodato Simo | RENAME |
171 | 66e884e1 | Adeodato Simo | ~~~~~~ |
172 | 66e884e1 | Adeodato Simo | |
173 | 66e884e1 | Adeodato Simo | | **rename** {*oldname*} {*newname*} |
174 | 66e884e1 | Adeodato Simo | |
175 | 66e884e1 | Adeodato Simo | Renames a given group from *oldname* to *newname*. |
176 | 9ff4f2c0 | Michael Hanselmann | |
177 | 819cbfe5 | Michael Hanselmann | |
178 | f6eb380d | Michael Hanselmann | EVACUATE |
179 | f6eb380d | Michael Hanselmann | ~~~~~~~~ |
180 | f6eb380d | Michael Hanselmann | |
181 | f6eb380d | Michael Hanselmann | **evacuate** [--iallocator *NAME*] [--to *GROUP*...] {*group*} |
182 | f6eb380d | Michael Hanselmann | |
183 | f6eb380d | Michael Hanselmann | This command will move all instances out of the given node group. |
184 | f6eb380d | Michael Hanselmann | Instances are placed in a new group by an iallocator, either given on |
185 | f6eb380d | Michael Hanselmann | the command line or as a cluster default. |
186 | f6eb380d | Michael Hanselmann | |
187 | f6eb380d | Michael Hanselmann | If no specific destination groups are specified using ``--to``, all |
188 | f6eb380d | Michael Hanselmann | groups except the evacuated group are considered. |
189 | f6eb380d | Michael Hanselmann | |
190 | f6eb380d | Michael Hanselmann | Example:: |
191 | f6eb380d | Michael Hanselmann | |
192 | f6eb380d | Michael Hanselmann | # gnt-group evacuate -I hail --to rack4 rack1 |
193 | f6eb380d | Michael Hanselmann | |
194 | f6eb380d | Michael Hanselmann | |
195 | 819cbfe5 | Michael Hanselmann | TAGS |
196 | 819cbfe5 | Michael Hanselmann | ~~~~ |
197 | 819cbfe5 | Michael Hanselmann | |
198 | 819cbfe5 | Michael Hanselmann | ADD-TAGS |
199 | 819cbfe5 | Michael Hanselmann | ^^^^^^^^ |
200 | 819cbfe5 | Michael Hanselmann | |
201 | 819cbfe5 | Michael Hanselmann | **add-tags** [--from *file*] {*groupname*} {*tag*...} |
202 | 819cbfe5 | Michael Hanselmann | |
203 | 819cbfe5 | Michael Hanselmann | Add tags to the given node group. If any of the tags contains invalid |
204 | 819cbfe5 | Michael Hanselmann | characters, the entire operation will abort. |
205 | 819cbfe5 | Michael Hanselmann | |
206 | 819cbfe5 | Michael Hanselmann | If the ``--from`` option is given, the list of tags will be extended |
207 | 819cbfe5 | Michael Hanselmann | with the contents of that file (each line becomes a tag). In this case, |
208 | 819cbfe5 | Michael Hanselmann | there is not need to pass tags on the command line (if you do, both |
209 | 819cbfe5 | Michael Hanselmann | sources will be used). A file name of ``-`` will be interpreted as |
210 | 819cbfe5 | Michael Hanselmann | stdin. |
211 | 819cbfe5 | Michael Hanselmann | |
212 | 819cbfe5 | Michael Hanselmann | LIST-TAGS |
213 | 819cbfe5 | Michael Hanselmann | ^^^^^^^^^ |
214 | 819cbfe5 | Michael Hanselmann | |
215 | 819cbfe5 | Michael Hanselmann | **list-tags** {*groupname*} |
216 | 819cbfe5 | Michael Hanselmann | |
217 | 819cbfe5 | Michael Hanselmann | List the tags of the given node group. |
218 | 819cbfe5 | Michael Hanselmann | |
219 | 819cbfe5 | Michael Hanselmann | REMOVE-TAGS |
220 | 819cbfe5 | Michael Hanselmann | ^^^^^^^^^^^ |
221 | 819cbfe5 | Michael Hanselmann | |
222 | 819cbfe5 | Michael Hanselmann | **remove-tags** [--from *file*] {*groupname*} {*tag*...} |
223 | 819cbfe5 | Michael Hanselmann | |
224 | 819cbfe5 | Michael Hanselmann | Remove tags from the given node group. If any of the tags are not |
225 | 819cbfe5 | Michael Hanselmann | existing on the node, the entire operation will abort. |
226 | 819cbfe5 | Michael Hanselmann | |
227 | 819cbfe5 | Michael Hanselmann | If the ``--from`` option is given, the list of tags to be removed will |
228 | 819cbfe5 | Michael Hanselmann | be extended with the contents of that file (each line becomes a tag). In |
229 | 819cbfe5 | Michael Hanselmann | this case, there is not need to pass tags on the command line (if you |
230 | 819cbfe5 | Michael Hanselmann | do, tags from both sources will be removed). A file name of ``-`` will |
231 | 819cbfe5 | Michael Hanselmann | be interpreted as stdin. |
232 | 819cbfe5 | Michael Hanselmann | |
233 | 9ff4f2c0 | Michael Hanselmann | .. vim: set textwidth=72 : |
234 | 9ff4f2c0 | Michael Hanselmann | .. Local Variables: |
235 | 9ff4f2c0 | Michael Hanselmann | .. mode: rst |
236 | 9ff4f2c0 | Michael Hanselmann | .. fill-column: 72 |
237 | 9ff4f2c0 | Michael Hanselmann | .. End: |