Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
itminedu
snf-ganeti
Commits
bdb7d4e8
Commit
bdb7d4e8
authored
May 15, 2008
by
Michael Hanselmann
Browse files
Update command line help and manpages with mandatory options
Reviewed-by: ultrotter
parent
3cf7c9fa
Changes
5
Hide whitespace changes
Inline
Side-by-side
man/gnt-backup.sgml
View file @
bdb7d4e8
...
...
@@ -94,19 +94,22 @@
<command>import</command>
<arg choice="req">-n <replaceable>node<optional>:secondary-node</optional></replaceable></arg>
<arg>-s <replaceable>disksize</replaceable></arg>
<sbr>
<arg>--swap-size <replaceable>disksize</replaceable></arg>
<arg>-m <replaceable>memsize</replaceable></arg>
<arg>-b <replaceable>bridge</replaceable></arg>
<sbr>
<arg choice="req">-t<group>
<arg>diskless</arg>
<arg>plain</arg>
<arg>local_raid1</arg>
<arg>remote_raid1</arg>
<arg>drbd</arg>
</group>
</arg>
</group></arg>
<sbr>
<arg choice="req">--src-node=<replaceable>source-node</replaceable></arg>
<arg choice="req">--src-dir=<replaceable>source-dir</replaceable></arg>
<arg choice="req"><replaceable>instance</replaceable></arg>
...
...
man/gnt-instance.sgml
View file @
bdb7d4e8
...
...
@@ -66,37 +66,46 @@
<arg>--swap-size <replaceable>disksize</replaceable></arg>
<arg>-m <replaceable>memsize</replaceable></arg>
<sbr>
<arg>-o <replaceable>os-type</replaceable></arg>
<arg>-b <replaceable>bridge</replaceable></arg>
<arg>--mac <replaceable>MAC-address</replaceable></arg>
<sbr>
<arg>--hvm-boot-order <replaceable>boot-order</replaceable></arg>
<sbr>
<arg>--kernel <group choice="req">
<arg>--kernel<group choice="req">
<arg>default</arg>
<arg><replaceable>kernel_path</replaceable></arg>
</group></arg>
<sbr>
<arg>--initrd <group choice="req">
<arg>--initrd<group choice="req">
<arg>default</arg>
<arg>none</arg>
<arg><replaceable>initrd_path</replaceable></arg>
</group>
</arg>
</group></arg>
<sbr>
<arg>--file-storage-dir <replaceable>dir_path</replaceable></arg>
<arg>--file-driver
<group choice="req">
<arg>--file-driver<group choice="req">
<arg>loop</arg>
<arg>blktap</arg>
</group></arg>
<sbr>
<arg choice="req">-t<group>
<arg choice="req">-t<group choice="req">
<arg>diskless</arg>
<arg>file</arg>
<arg>plain</arg>
<arg>drbd</arg>
</group>
</arg>
</group></arg>
<sbr>
<arg choice="req">-n <replaceable>node<optional>:secondary-node</optional></replaceable></arg>
<arg choice="req">-o <replaceable>os-type</replaceable></arg>
<sbr>
<arg choice="req"><replaceable>instance</replaceable></arg>
</cmdsynopsis>
...
...
scripts/gnt-backup
View file @
bdb7d4e8
...
...
@@ -187,7 +187,10 @@ commands = {
help
=
"Don't shutdown the instance (unsafe)"
),
],
"-n <target_node> [opts...] <name>"
,
"Exports an instance to an image"
),
'import'
:
(
ImportInstance
,
ARGS_ONE
,
import_opts
,
"[opts...] <name>"
,
'import'
:
(
ImportInstance
,
ARGS_ONE
,
import_opts
,
(
"[...] -t disk-type -n node[:secondary-node]"
" --src-node node --src-dir dir"
" <name>"
),
"Imports an instance from an exported image"
),
'remove'
:
(
RemoveExport
,
ARGS_ONE
,
[
DEBUG_OPT
],
...
...
scripts/gnt-instance
View file @
bdb7d4e8
...
...
@@ -44,6 +44,7 @@ _LIST_DEF_FIELDS = [
"name"
,
"os"
,
"pnode"
,
"status"
,
"oper_ram"
,
]
def
_ExpandMultiNames
(
mode
,
names
):
"""Expand the given names using the passed mode.
...
...
@@ -795,7 +796,7 @@ add_opts = [
commands
=
{
'add'
:
(
AddInstance
,
ARGS_ONE
,
add_opts
,
"[
opts
...] <name>"
,
"[...]
-t disk-type -n node[:secondary-node] -o os-type
<name>"
,
"Creates and adds a new instance to the cluster"
),
'console'
:
(
ConnectToInstanceConsole
,
ARGS_ONE
,
[
DEBUG_OPT
,
...
...
scripts/gnt-node
View file @
bdb7d4e8
...
...
@@ -295,7 +295,7 @@ commands = {
default
=
False
,
action
=
"store_true"
,
help
=
"Readd old node after replacing it"
),
],
"[-s ip] <node_name>"
,
"Add a node to the cluster"
),
"[-s ip]
[--readd]
<node_name>"
,
"Add a node to the cluster"
),
'evacuate'
:
(
EvacuateNode
,
ARGS_FIXED
(
2
),
[
DEBUG_OPT
,
FORCE_OPT
],
"[-f] <src> <dst>"
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment