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


Ignore:
Timestamp:
Jul 11, 2023, 12:39:00 PM (10 months ago)
Author:
jennyshane
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Documentation/Short/SaveImage2

    v1 v1  
     1=== How to save your work on the node ===
     2
     3We are using node1-1 in the Orbit sb1 domain, but the process is the same for any node in the testbed.
     4
     5When you are ready to save your work, run the following command on the node. (Note that the prepare.sh script is located in the `/root/` directory.)
     6
     7{{{
     8ssh root@node1-1.sb1.orbit-lab.org
     9root@node1-1.sb1.orbit-lab.org: ./prepare.sh
     10}}}
     11
     12This command will dump log files to reduce the size of the image and remove OS configuration specific to the node to generalize the image so that it can be used on any node in the testbed.
     13
     14From the console, use omf to turn off the node before saving:
     15{{{
     16  username@console:~$ omf tell -t node1-1 -a offh
     17}}}
     18
     19Now use the omf save command to save the node:
     20 {{{
     21  omf save -n node1-1.sb1.orbit-lab.org
     22 }}}
     23
     24The save command produces a lot of output in the console, but it is important to look through it to ensure that there were no errors in the saving process. The output from the command will also include the name of the image file that has been created. These images are stored in the `/mnt/images` directory on all of the consoles. If you are planning to re-use this image frequently, you may wish to rename it. '''When you rename the image, please ensure that the new name starts with your username, and does not contain the word baseline.'''
     25
     26Images will be stored forever unless the owner deletes them, so please try to be respectful of our disk space-- delete images when you are done with them, and try not to keep too many.
     27
     28Note also that '''images are world readable by default'''. This means that by default anyone can load an image that you save. You can change this by using the `chmod` command on the image file.