Table of Contents
/etc // System configuration
|-- lbs.conf
`-- dhcpd.conf
/tftpboot/revoboot/
|-- backup // LRS configuration backups
|-- bin // Contains LRS binary files LRS (pxe,PERL scripts,etc...)
|-- cfg // Contains configuration files (Client)
| |-- default // default boot instructions file
| `-- 0010DC06A63C // a client boot instructions file (MAC 00:10:DC:06:AC:36)
|-- etc // Contains binaries' configuration files
|-- images // Contains images for known clients
| |-- 0010DC06AC36 // For example: client's MAC 00:10:DC:06:AC:36
| | |-- Backup-L // - Backup-L Menu
| | |-- Local-Disk // - Local disk boot
| | |-- Local-1 // - A local backup
| | |-- Base-1 // - A shared backup
| | |-- hdmap
| | |-- exclude
| | |-- hostname
| | |-- log
| | |-- postinst
| | `-- header.lst
| `... Other MAC ... // Other clients...
|-- imgbase // Base/shared images, towards which we link ('ln -s')
| |-- Local-Disk
| |-- Local-Floppy
| |-- MemTest
|-- imgskel // Newly identified machine's skeleton
| |-- Backup
| |-- Restore_Latest_Backup
| |-- Win98-fat-OK -> /home/images/Win98-fat-OK
| `...
|-- imgprofiles // Boot menus for profiles and groups
| |-- Group1 // boot menu for group1
| |-- Group1/Group2 // boot menu for group1/group2
| |-- Profile1/Group1 // boot menu for Profile1 and Group1
| `...
|-- iso
|-- lib
|-- log // Log files (ID, addhost, HW info, etc...)
|-- lsc // Scripts for the Linbox Secure Controle module
`-- tmp // Temporary files
You should backup the LRS configuration to easily set-up a new server in case of hardware failure, or before making changes to the server configuration.
The LRS backup / recovery can be found in the tab: Home -> configuration -> configuration backup.
In this page, a click on the "Backup" button, will create a .tar in /tftpboot/revoboot/backup, containing the most important LRS parameters. The "Restore the last configuration" button, will put the LRS in the state it was before the back up.
The archive contains system parameters, its network configuration, the Samba configuration, the Webmin configuration, and the contents of inventory and LSC databases.
So, if you have a tape back up of the '/tftpboot' directory, you can set-up a nearly identical server using the installation CDROM. To do so, you have to:
Install a LRS from the CDROM.
Restore the /tftpboot partition from tape.
Restore the last configuration as shown above.
# LRS configuration file
# Comments (begin with #)
iface=eth0 # Interface listening to the clients requests
hwmac=00:06:29:0D:22:66 # MAC address of the network adapter
license=100 # Number of licenses (number of clients)
key=EB92235ABD4C45C5 # License Key (depend of hwmac and license)
autoselect=no # automatic update of the file header.lst
# if base/local images are created
skelsync =no # automatic update of the template
# if base/local images are created
# password
adminpass =linbox # asked when adding a new client to the LRS
# paths
basedir = /tftpboot/revoboot # Base system directory
addscript = /tftpboot/revoboot/bin/create_config
[dhcp]
nostaticip=1 # use dynamic dhcp addresses allocation
The "nostaticip=1" option means that IP address allocation is made dynamically by the DHCP server (external one or the LRS one).
If you use, LRS' DHCP server, you can set this option to "0" to have a "semi-static" address allocation.
![]() | |
You should not use semi-static allocation. |
If you enable this mode, you have to add the following parameters in the "dhcp" section of the lbs.conf file:
[dhcp]
nostaticip=0
#the following is only useful is static mode (nostaticip=0)
network=172.20.0
minip=240
maxip=254
tftpserver=172.20.0.123
filename=/tftpboot/revoboot/bin/revoboot.pxe
optionhostname=1
dhcpdrestart=1
With the above configuration, for every new client, the LRS will add a static IP allocation in the DHCP server's configuration, between the range 172.20.0.240 to 172.20.0.254 . Here, The LRS IP address is 172.20.0.123 .
This file which can be found under /etc or /etc/dhcp3, contains the DHCP server settings and should be modified with the Webmin module.
To sum up, the most important parameter for network booting is
"filename" which must be set to
"/tftpboot/revoboot/bin/revoboot.pxe".
These files can be found in each /tftpboot/revoboot/images/CLIENT_MAC_ADDR directory.
For groups and profiles, their menus are saved in the /tftpboot/revoboot/imgprofiles/profile name/group name/sub group/ directory or in /tftpboot/revoboot/imgprofiles/group name/sub group/ for groups with no profile assigned. For groups, only the header.lst file is significant.
Automatically generated by Webmin. Exclude contains disks or partitions which must be excluded from all backups. Each line is similar to "HD Number:partition to exclude". For example, "0:0" means exclude all partitions from the 1st disk, and "1:4" means exclude the 4th partition from the 2nd disk.
Hdmap is automatically generated. The number of sectors for each disk as seen by the BIOS. Each line is like "HD number=sectors count".
The files "header.lst" in the directories /tftpboot/revoboot/images/MACADDR/ contains the information about the visible state, the default menu state, which have been set with the Webmin interface. They link the configuration files (MACADDR of /tftpboot/revoboot/cfg/) and the files "conf.txt".
[header] -> Header item=timeout 10 -> Options added in item=color 7/1 15/3 -> the configuration file header item=default DEFNUM -> for the timeout, the colors, the default menu item=hiddenmenu -> ...(see MACADDR options) [menu1] -> Menu 1 def=yes -> Default menu : YES visu=yes -> Displayed in the boot menu : YES image=Local-Disk -> Menu name : Local-Disk include=Local-Disk/conf.txt -> Corresponding "conf.txt" file = Local-Disk/conf.txt [menu...] ...
item=XXX : XXX will be added to the configuration file
def=yes/no : default menu (will replace DEFNUM by the concerned menu number)
visu=yes/no : will be displayed in the configuration file (yes/no)
image=XXX : image name (informative)
include=XXX : will include the file /tftpboot/revoboot/images/MACADDR/XXX
Similar to 'header.lst' but its content is used the create the menu after a 'wake on lan' occured.
Contains the post-installation script attached to this client and its description.
A portion of the client's boot configuration file is contained in conf.txt files (there is one in each directory corresponding to an image or a pseudo-image). MACADDR is the full configuration file, generated from all the "conf.txt" marked by "visu=yes" in the file "header.lst". This file is stored in /tftpboot/revoboot/cfg and is called MACADDR (i.e. hexadecimal MAC address). Thedefault file is similar to MACADDR, and it is used if MACADDR does not exist (e.g. during first boot). In those files, we can find the commands interpreted by the boot loader (basic Grub commands with LRS specific additions).
Example
timeout 10 color 7/1 15/3 default 0 hiddenmenu title Local hard disk -> conf.txt desc Boot from local hard disk -> conf.txt root (hd0) -> conf.txt chainloader +1 -> conf.txt title ... ...
GRUB Notation. The disks are numbered starting at 0. The first hard disk (C: for DOS) is called (hd0). Please note that hd0 corresponds to the disk number 128 (0x80) in BIOS calls. The partitions are numbered starting at 0, and the notation "disk,partition" is used to access it. For example the D: partition or the second partition of the first hard disk, is (hd0,1). Other keywords:
The floppy disk is "fd" (fd0).
The network is "nd" and there is no partition (nd).
kernel (hd0,0)/bzImage. To load the bzImage kernel from the first disk, first partition
chainloader (fd0)+1. To load the floppy bootsector
initrd (nd)/tftpboot/revoboot/bin/initrd.gz. To load the ramdisk (initrd) via TFTP (network)
With any other filename, the root disk is used (set by the command "root").
Prefix a filename with a disk name (hd0,0)/filename. The first partition of the first disk is used.
Use a blocks list: 10 + 20, 30 + 40. The sectors 10 to 29 (length = 20) and 30 to 69 (length = 40) are loaded from the root disk. The list can be prefixed by a disk name. The "+1" notation, same as "0+1" is often used to tell that we want to load the (+1) first sector (0) of the partition.
The Grub Commands For a Configuration File.
desc STRING : Description line of the corresponding "title" entry. Displayed in the line
at the menu bottom generated by the "title" lines.
default INTEGER : Defines what is the "title" section that is selected by default (start at 0)
hiddenmenu : "hidden menu" mode. To display the menu when in this mode, push
"Shift-Alt-Shift" during the "timeout" (see below) countdown.
title STRING : Mark the beginning of the "title" section. The following commands
(not the comments and the descriptions) are executed when the entry is selected in
the menu. The string following "title" builds the menu.
timeout INTEGER : Defines the number of seconds to wait before
automatically executing the "default" menu entry
The Grub mini-shell commands
boot : Implicit when a "title" section is finished, the "boot" command line can be
used to boot (after loading a bootsector with "chainloader"
or a kernel with "kernel").
cat FILE : Display file content.
chainloader FILE : Load the file as bootsector (often "+1").
color C1/C2 F1/F2 : Change the characters colors C1/C2 and the background colors F1/F2.
configfile FILE : Load the file as configuration file.
debug : Activate debug mode.
displaymem : Display memory map.
fstest : Filesystem test.
geometry DISK : Display disk geometry (CHS, LRS, partitions...).
halt : Power off the computer.
help COMMAND : Display some help about a command.
hide PART : Hide a partition.
kernel FILE PAR : Load the file as kernel (ELF format) and give it the parameters PAR.
initrd FILE : Load the file as initrd (ramdisk).
makeactive PART : Activate the partition.
partnew PART TYPE BEGIN SIZE :
Create a new partition PART with type TYPE, beginning
at BEGIN with size SIZE.
parttype PART TYPE :
Set the type of the partition PART to TYPE.
pause : Wait for a key to be pressed.
reboot : reboot the machine.
root PART : set the current root to PART.
unhide PART : unhide a hidden partition (see "hide").
Grub network boot related commands
bootp : get the network parameters (same as "dhcp"). dhcp : get the network parameters (IP, NETMASK, GATEWAY, TFTP, FILENAME). kernel FILE PAR : Load the file as kernel (ELF format) and give it the parameters PAR. initrd FILE : load the file as initrd (ramdisk). rarp : not implemented, replaced by "dhcp". tftpserver IP : Set TFTP server IP.
The LRS specific commands
diskclean DISK : Erase DISK (write zeros in all sectors).
geometry DISK : Display disk geometry (CHS, LRS, partitions...).
identify : Ask the computer name and an admin ID.
identifyauto : Like identify, but automatically (name="+", ID="+").
If it is authorized in the DHCP settings, the name will be "IP" and
the station will be automatically added ("Cluster" behaviour).
inc BASE|COPY : Increment and create a new BASE or LOCAL directory.
mbr FILE : Write the FILE content on the current disk MBR (512 bytes maximum).
PARTCOPY PART BEGIN NETWORK_FILE :
Write the file IMAGE LRS "NETWORK_FILE" on the
PART partition which start at sector BEGIN.
Do not prefix with "(nd)", it is implicit.
ptabs DISK FILE: Write the file on the disk (specific LRS format,
to restore the partitions table and the MBR).
nosecurity : Allow users to view and edit grub menu entries and to access
the grub command line.
kbdfr : Load an AZERTY key map in grub (QWERTY by default)
CONF is the same as conf.txt, but in more concise format understood by the old CD booloader. We only use the "ptabs" and "partcopy" equivalents. Example:
D:128 L:20003760 -> Informative : disk 128, 20E6 sectors R -> same as "ptabs PTABS" P1 , S:63 , E:20003759 , t:12 -> same as "partcopy (x) 63 P1" E -> mark the end of the file
PERL scripts are stored in the Webmin folder (usually /usr/share/webmin/lbs), and their configuration files are in /etc/webmin/lbs.
Since PERL scripts located in /tftpboot/revoboot/bin also use parts of the information that are stored in /etc/lbs.conf, and that they also use some of the functions provided by the library "lbs-lib.pl", there are links that are made between the Webmin module folder and the LRS binary folder (you might have to check this when installing or upgrading Webmin). Indeed, most of automatically possible actions (such as "identify") are also possible from within the Webmin interface.
getClientResponse
Check for license validity. Handle "HwPacket", "IdPacket" and "Inc Base/Copy" packet coming from the LBL client. That program is launched at server's boot-time (in /etc/rc.local for example). Check it is running with "ps ax | grep getClientResponse".
info
Obtains hardware information from HwPacket and creates the corresponding ".ini" file.
check_add_host MAC HOSTNAME PASSWORD
Add new client entries to /tftpboot/revoboot/etc/ether and optionally to dhcpd.conf.
check_add_host_bulk PASSWORD <list.txt
Same as 'check_add_host' but takes a list of MAC addresses and host names from stdin. Each line contains '00:11:22:33:44:55 NAME'.
create_config
Initial configuration (copy of ./imgskel skeleton) and creation of the new workstation's storage folder.
check_ether
Ping all the workstations that are listed in etc/ether (obsolete) .
rename_host OLDNAME NEWNAME
Utility to rename the host OLDNAME to NEWNAME and/or to change its group and profile.
wake MACADDRESS ... [MACADDRESS]
Sends WOL packets to the specified MAC addresses.
bzImage.initrd & initrd.gz
Kernel and initrd used for the backup functions.
mbr.bin
A standard MBR (WinXX) to rebuild a disk's MBR in case of crash/alteration by virus.
memtest.bin
Memory test that can be launched from the LBL.
The Linux kernel used for backups and restorations can take into account a number of non-standard command line parameters:
| Parameter | Explanation |
|---|---|
| revodebug | Do not launch any backup or restoration and provide a login prompt. Login as root with no password. Useful for debugging network card problems. |
| revofull | Try to force full duplex while loading the network card driver |
| revomac=001122334455 | Specify the MAC address of the PXE boot interface. Do not modify, automatically set by the boot loader. |
| revonocomp | Disable compression of backup images. Usually slower backup when activated. |
| revoraw | Save all partitions as raw, without optimizations. Useful for saving corrupted file systems |
| revosavedir=/path | Specify the path of the image to backup or restore. Do not modify, automatically set by the LRS. |


![[Warning]](/ucome.rvt/any/en/Produits/LRS/details/doc/img/warning.png)