Changes between Initial Version and Version 1 of Documentation/Short/SaveImage


Ignore:
Timestamp:
Jul 21, 2008, 4:16:41 AM (16 years ago)
Author:
thierry
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Documentation/Short/SaveImage

    v1 v1  
     1Go back --> [wiki:Tutorial Tutorials]
     2[[TOC(heading=Tutorial TOC, Tutorial, Tutorial/HowToSave, depth=2)]]
     3
     4= How to save an existing disk image from one node of a Testbed =
     5
     6If you have not done so yet:
     7
     8 * [http://www.orbit-lab.org/wiki/Registration Register] for an account
     9 * [https://www.orbit-lab.org/schedule/ Make a reservation] on the Scheduler for a given testbed
     10
     11Lets assume that you registered as user 'bob' and made a reservation for the 'sb1' testbed. You then access the 'sb1' console using the command:
     12
     13 {{{
     14  ssh bob@console.sb1.orbit-lab.org
     15 }}}
     16[[BR]]
     17== Getting Started ==
     18
     19Then, to save the existing disk image on node (1,1) of the 'sb1' testbed, use the command:
     20
     21 {{{
     22  orbit save [1,1]
     23  # will save the current disk image on node [1,1] of the 'sb1' testbed
     24
     25 }}}
     26
     27The output of this image saving process will look like the following:
     28
     29 {{{
     30
     31Domain information from the console: 'sb1'
     32Saving image from node '[1,1]' from domain 'sb1'... INFO init: NodeHandler Version 4.2.0 (1272)
     33 INFO init: Experiment ID: sb1_2008_07_20_23_38_04
     34 ...
     35 INFO stdlib: Waiting for nodes (Up/Down/Total): 0/1/1 - (still down: n_1_1)
     36 ...
     37 INFO n_1_1: - Saving disk image from node n_1_1 in the file 'node-1-1-2008-07-20-23-39-39.ndz'
     38 INFO n_1_1:   (disk images are located at: 'frisbee:/export/orbit/image/tmp')
     39 INFO prop.started: started = "true":String
     40 INFO exp: - SAVE_IMAGE process started at: Sun Jul 20 23:39:49 -0400 2008
     41 INFO exp:   (this may take a while, e.g. 5min+, depending of the size of your image)
     42 INFO exp: - Saving process finished correctly at: Sun Jul 20 23:47:20 -0400 2008
     43 INFO Experiment: DONE!
     44 INFO ExecApp: Application 'commServer' finished
     45 INFO run: Experiment sb1_2008_07_20_23_38_04 finished after 9:19
     46 done.
     47
     48 }}}
     49
     50At the end of the ''saving'' process, you will have disk image file with the name: ''"node-1-1-2008-07-20-23-39-39.ndz"'' in the directory ''"/export/orbit/image/tmp"'' on the machine with the host name ''"frisbee"''. These information are all provided in the output displayed above.
     51
     52You can then:
     53 * install this disk image on a set of nodes, using the instructions described in this [wiki:Tutorial/HowToImage tutorial]. 
     54 * only for the purpose of making a backup of your image: log into the ''"frisbee"'' machine, and copy your image to your backup storage.
     55
     56[[BR]]
     57== Learning More ==
     58
     59The above disk image saving process is implemented as a ''special'' orbit experiment. As such, its execution will results in a log file as with any other orbit experiment. This log file should look like  [attachment:sb1_2008_07_20_23_38_04.log this].
     60
     61Each image created by the above saving process is a full hard-disk image, which can have arbitrary large file size (>200Mo or even more). As storage on the ''"frisbee"'' machine is limited, please be considerate in the number of images you save/use, and move any unused images to your own archival storage.
     62
     63The generic '''orbit''' command used above is the access point to control various ORBIT functions, such as the saving of a disk image from a node, with the sub-command "save". To see a list of all the available '''orbit''' commands, you should type ''"orbit help"''.
     64
     65Finally, the complete available option/commands for the ''save'' function are given by ''"orbit help save"'':
     66
     67 {{{
     68  orbit help save
     69
     70
     71Save a disk image from a given node into an archive file
     72
     73Usage:
     74      orbit save [-h]
     75      orbit save [NODE] [DOMAIN]
     76 
     77      With:
     78      -h, --help    print this help message
     79      NODE          a valid node description
     80                    (no default here, you have to enter a node!)
     81 
     82      Some Examples:
     83                    orbit save [5,10]
     84                    orbit save [11,2] grid
     85
     86 }}}