X-Git-Url: https://code.grnet.gr/git/ganeti-local/blobdiff_plain/dd4b11064546472a5e950ac123728dc54b34a7b2..1b54fc6c2fd92b614c029cc5312d02f9f1526253:/man/gnt-backup.sgml diff --git a/man/gnt-backup.sgml b/man/gnt-backup.sgml index d628240..f7efd78 100644 --- a/man/gnt-backup.sgml +++ b/man/gnt-backup.sgml @@ -2,7 +2,7 @@ - Jul 6, 2007"> + February 11, 2009"> 8"> @@ -19,6 +19,8 @@ 2007 + 2008 + 2009 Google Inc. &dhdate; @@ -27,7 +29,7 @@ &dhucpackage; &dhsection; - ganeti 1.2 + ganeti 2.0 &dhpackage; @@ -66,9 +68,10 @@ - Exports an instance to the target node. All the instance - data and its configuration will be exported under the - /srv/ganeti/exports/instance directory on the target node. + Exports an instance to the target node. All the instance data + and its configuration will be exported under the + /srv/ganeti/export/instance + directory on the target node. @@ -82,7 +85,7 @@ Example: -# gnt-instance export -n node1.example.com instance3.example.com +# gnt-backup export -n node1.example.com instance3.example.com @@ -91,52 +94,148 @@ IMPORT import - -n node - -s disksize - -o os-type - -m memsize - -b bridge + + -n node:secondary-node --iallocator + name + + + + --disk N:size=VAL,mode=ro|rw + + + --net N:options + --no-nics + + + -B BEPARAMS + + -H HYPERVISOR:option=value + + --src-node=source-node + --src-dir=source-dir + + -t diskless plain - local_raid1 - remote_raid1 - - - --src-node=source-node - --src-dir=source-dir + drbd + file + + + instance Imports a new instance from an export residing on source-node in source-dir. - instance must be in DNS and - resolve to a IP in the same network as the nodes in the - cluster. + instance must be in DNS and resolve + to a IP in the same network as the nodes in the cluster. If + the source node and directory are not passed, the last backup + in the cluster is used, as visible with the + list command. + + + + The option specifies the parameters for + the disks of the instance. The numbering of disks starts at + zero, and at least one disk needs to be passed. For each disk, + at least the size needs to be given, and optionally the access + mode (read-only or the default of read-write) can also be + specified. The size is interpreted (when no unit is given) in + mebibytes. You can also use one of the suffixes + m, g or + t to specificy the exact the units used; + these suffixes map to mebibytes, gibibytes and tebibytes. - The option specifies the disk size for - the instance, in gigibytes (defaults to 20 GiB). + Alternatively, a single-disk instance can be created via the + option which takes a single argument, + the size of the disk. This is similar to the Ganeti 1.2 + version (but will only create one disk). - The options specifies the operating - system to be installed. The available operating systems can - be listed with gnt-os list. + The minimum disk specification is therefore + --disk 0:size=20G (or -s + 20G when using the option), + and a three-disk instance can be specified as + --disk 0:size=20G --disk 1:size=4G --disk + 2:size=100G. + + + + The NICs of the instances can be specified via the + option. By default, one NIC is created + for the instance, with the MAC set to the original MAC of the + instance (as it was at export time). Each NIC can take up to + three parameters (all optional): + + + mac + + either a value or GENERATE + to generate a new unique MAC, or + AUTO to reuse the old MAC + + + + ip + + specifies the IP address assigned to the + instance from the Ganeti side (this is not necessarily + what the instance will use, but what the node expects + the instance to use) + + + + bridge + + specifies the bridge to attach this NIC + to + + + - The option specifies the memory size for - the instance, in megibytes (defaults to 128 MiB). + Alternatively, if no network is desired for the instance, you + can prevent the default of one NIC with the + option. - The option specifies the bridge to which the - instance will be connected. (defaults to the cluster-wide default - bridge specified at cluster intialization time). + The option specifies the backend + parameters for the instance. If no such parameters are + specified, the values are inherited from the cluster. Possible + parameters are: + + + memory + + the memory size of the instance; as usual, + suffixes can be used to denote the unit, otherwise the + value is taken in mebibites + + + + vcpus + + the number of VCPUs to assign to the instance + (if this value makes sense for the hypervisor) + + + + auto_balance + + whether the instance is considered in the N+1 + cluster checks (enough redundancy in the cluster to + survive a node failure) + + + @@ -159,47 +258,53 @@ - local_raid1 + drbd - Disk devices will be md raid1 arrays over two local - logical volumes. + Disk devices will be drbd (version 8.x) on top of lvm + volumes. - remote_raid1 + file - - Disk devices will be md raid1 arrays with one - component (so it's not actually raid1): a drbd device - between the instance's primary node and the node given - by the option . - + Disk devices will be backed up by files, under the + @RPL_FILE_STORAGE_DIR@. By + default, each instance will get a directory (as its own + name) under this path, and each disk is stored as + individual files in this (instance-specific) + directory. - The option is used with - the remote raid disk template type and specifies the remote - node. + The option specifies the instance + allocator plugin to use. If you pass in this option the allocator will + select nodes for this instance automatically, so you don't need to pass + them with the option. For more information please + refer to the instance allocator documentation. - If you do not want gnt-instance to wait for the disk mirror + The optional second value of the is used for + the drbd template and specifies the remote node. + + + + If you do not want gnt-backup to wait for the disk mirror to be synced, use the option. - Example: -# gnt-backup import -t plain -s 30 -m 512 -n node1.example.com \ -> --src-node=node2.example.com \ -> --src-dir=/srv/ganeti/exports/instance3.example.com \ +# gnt-backup import -t plain --disk 0:size=1G -B memory=512 \ +> -n node1.example.com \ > instance3.example.com @@ -211,13 +316,36 @@ list - --nodes=NODE-LIST + --node=NODE + + + + Lists the exports currently available in the default directory + in all the nodes of the current cluster, or optionally only a + subset of them specified using the + option (which can be used multiple times) + + + + Example: + +# gnt-backup list --nodes node1 --nodes node2 + + + + + + REMOVE + + remove + instance_name - Lists the exports currently available in the default directory in all - the nodes of the current cluster, or optionally only a subset of them - specified by the option. + Removes the backup for the given instance name, if any. If the + backup was for a deleted instances, it is needed to pass the + FQDN of the instance, and not only the + short hostname.