1 gnt-group(8) Ganeti | Version @GANETI_VERSION@
2 ==============================================
7 gnt-group - Ganeti node-group administration
12 **gnt-group** {command} [arguments...]
17 The **gnt-group** command is used for node group administration in
27 | [--node-parameters=*NDPARAMS*]
28 | [--alloc-policy=*POLICY*]
31 Creates a new group with the given name. The node group will be
34 The ``--node-parameters`` option allows you to set default node
35 parameters for nodes in the group. Please see **ganeti**(7) for more
36 information about supported key=value pairs.
38 The ``--alloc-policy`` option allows you to set an allocation policy for
39 the group at creation time. Possible values are:
42 nodes in the group should not be candidates for instance allocation,
43 and the operation (e.g., instance creation) should fail if only
44 groups in this state could be found to satisfy the requirements.
47 nodes in the group should not be used for instance allocations,
48 unless this would be the only way to have the operation succeed.
51 nodes in the group can be used freely for allocation of instances
52 (this is the default). Note that prioritization among groups in this
53 state will be deferred to the iallocator plugin that's being used.
60 | [--node-parameters=*NDPARAMS*]
61 | [--alloc-policy=*POLICY*]
64 Modifies some parameters from the node group.
66 The ``--node-parameters`` and ``--alloc-policy`` optiosn are documented
67 in the **add** command above.
72 | **remove** {*group*}
74 Deletes the indicated node group, which must be empty.
79 | **list** [--no-headers] [--separator=*SEPARATOR*]
80 | [-o *[+]FIELD,...*] [group...]
82 Lists all existing node groups in the cluster.
84 The ``--no-headers`` option will skip the initial header line. The
85 ``--separator`` option takes an argument which denotes what will be
86 used between the output fields. Both these options are to help
89 The ``-o`` option takes a comma-separated list of output fields.
90 If the value of the option starts with the character ``+``, the new
91 fields will be added to the default list. This allows to quickly
92 see the default list plus a few other fields, instead of retyping
93 the entire list of fields.
95 The available fields and their meaning are:
104 the number of nodes in the node group
107 the list of nodes that belong to this group
110 the number of primary instances in the group (i.e., the number of
111 primary instances nodes in this group have)
114 the list of primary instances in the group
117 the current allocation policy for the group
120 the creation time of the group; note that this field contains spaces
121 and as such it's harder to parse
123 if this attribute is not present (e.g. when upgrading from older
124 versions), then "N/A" will be shown instead
127 the last modification time of the group; note that this field
128 contains spaces and as such it's harder to parse
131 the so called 'serial number' of the group; this is a numeric field
132 that is incremented each time the node is modified, and it can be
133 used to detect modifications
135 If no group names are given, then all groups are included. Otherwise,
136 only the named groups will be listed.
141 **list-fields** [field...]
143 List available fields for node groups.
148 | **rename** {*oldname*} {*newname*}
150 Renames a given group from *oldname* to *newname*.