wiki:SaliUsage

Version 23 (modified by bas, 12 years ago) (diff)

--

Usage

First make sure that your SALI installation works. We now give a brief tutorial howto clone a node and make a simple installation script.

For cloning a node and generation of configurations files SALI is still dependend on:

SALI uses the same concepts as systemimager. To get familiar with terms and concepts you can read the system imager manual:

Server

SARA has written a replacement for systemimager server tools. This software is in use at the SARA site since early 2011. It supports the rsync and bittorent installation protocol:

An other alternative is to install the systemimager server tools:

  • systemimager-server

Starting/Stopping/Restarting the SALI server

Just issue one of the following commands:

/etc/init.d/sali start
/etc/init.d/sali stop
/etc/init.d/sali restart

Client

SALI

Included in the SALI server suite is the command sali. The command is used for:

  • fetching an image
    sali getimage
    
  • generating a new rsyncd configuration file
    sali rsync
    

Cloning

A rsync daemon must be started on your golden client. You can use the shell script sali_prepare. sali_prepare will create a rsyncd configuration and starts the daemon on your golden client node:

  • sali_prepare <sali_server>

On the SALI installation server you can fetch the image. Without arguments it will ask for

  1. the hostname of the golden client
  2. the image that must be updated/created
    sali getimage
    

It's also possible to exclude files/directorues of your golden client to be transfered to your installation server. You have to create a rsync exclude file (rsync man page), eg:

  • /tmp/rsync.exclude
    /var/tmp/*
    /tmp/*
    /scratch/*
    /usr/src/*
    /var/log/*.gz
    /var/log/ntpstats/*.gz
    /var/log/atsar/*
    /var/log/ksymoops/*
    /home/*
    

An example on how to use the rsync.exclude file:

  • sali getimage -h <golden-client> -i <imagename> -e "/tmp/rsync.exclude"

Systemimager

On the client node the following packages are required:

  • systemimager-client
  • systemconfigurator

The software is required to clone a node and for generation of configuration files (SALI post-install scripts).

Cloning

Login on the node you want to clone and use si_prepareclient, eg:

ssh gb-r6n1

gb-r6n1.irc.sara.nl:/root 
root#  si_prepareclient -y -server install -no-uyok
Using "parted" to gather information about disk:
    /dev/sda

Use of uninitialized value $v1 in split at /usr/lib/systemimager/perl/SystemImager/Common.pm line 199.
Use of uninitialized value $v1 in split at /usr/lib/systemimager/perl/SystemImager/Common.pm line 199.
Use of uninitialized value $v1 in split at /usr/lib/systemimager/perl/SystemImager/Common.pm line 199.
Use of uninitialized value $v1 in split at /usr/lib/systemimager/perl/SystemImager/Common.pm line 199.
Use of uninitialized value $v1 in split at /usr/lib/systemimager/perl/SystemImager/Common.pm line 199.
Use of uninitialized value $v1 in split at /usr/lib/systemimager/perl/SystemImager/Common.pm line 199.
Use of uninitialized value $v1 in split at /usr/lib/systemimager/perl/SystemImager/Common.pm line 199.
Use of uninitialized value $v1 in split at /usr/lib/systemimager/perl/SystemImager/Common.pm line 199.
Use of uninitialized value $v1 in split at /usr/lib/systemimager/perl/SystemImager/Common.pm line 199.
Use of uninitialized value $v1 in split at /usr/lib/systemimager/perl/SystemImager/Common.pm line 199.
Use of uninitialized value $v1 in split at /usr/lib/systemimager/perl/SystemImager/Common.pm line 199.
WARNING: cannot find the version of LVM or LVM version is not supported!
Starting or re-starting rsync as a daemon.....
done!

This client is ready to have its image retrieved.  You must now run 
the "si_getimage" command on your imageserver.

Automatically create configuration file for systemconfigurator:
  >> /etc/systemconfig/systemconfig.conf

Login on your SALI installation server and run:

si_getimage -golden-client gb-r6n1 -image test_image

Must be rewritten