wiki:SaliUsage

Version 20 (modified by dennis, 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 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

With the SALI server suite, the command sali is installed. With this command you fetch a image or generate a rsyncd.conf file for your rsync daemon.

Fetching a image

Before you fetch an image, a rsync daemon must be started on your golden client. You can use the shell script sali_prepare from our example directory.

Then you can use the option getimage to start the image transfer from your golden client. Before the transfer starts, sali will ask you the hostname of the golden client and which image must be create/updated.

sali getimage

It's also possible to exclude some location of your golden client to be transfers to your installation server. To do this, you first must create a exclude file (see the rsync man page for the exclude PATTERN). Then with the option -e/--exclude you can tell SALI where your exclude file is located.

Example for a exclude file:

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

Creating a rsync configuration file

The second main option of the command sali is the generation of a rsyncd.conf file. This is needed to dsitributed your installation scripts and images.

To generate a rsyncd.conf, issue the following command:

sali rsync

SALI will check your configuration will use the following options from you sali.cfg

  • From section rsync option stubsdir
  • From section update imagedir

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