Outils personnels

Personal Notes OMF installation/configuration

De

Aller à : navigation, rechercher

DHCP

Configuration du serveur d'adresses, /etc/dnsmasq.conf

# Log lots of extra information about DHCP transactions.
log-dhcp
#interface
interface=eth1
#IP addresses
dhcp-range=10.0.0.100,10.0.0.254,255.255.255.0,12h 
dhcp-option=3
dhcp-option=option:router,10.0.0.1
dhcp-option=option:ntp-server,10.0.0.1
dhcp-boot=net:control,pxelinux.0
enable-tftp
tftp-root=/tftpboot


/etc/dnsmasq.d/testbed.conf

dhcp-host=net:control,00:01:,node1,10.0.100.1


Remark: use rather the custom script /exprima/admin/create_node.sh to automatically insert a new node (pubsub, dnsmasq, pxelinux.cfg)

XMPP

  • creation of the system:
omf_create_psnode-5.4 exprima.unistra.f mksys
  • node creation in the arborescence:
omf_create_psnode-5.4 exprima.unistra.fr mkslice pxe_slice omf.exprima.node1 omf.exprima.node2
  • insert a node in a particular slice:
omf_create_psnode-5.4 exprima.unistra.fr mkslice default_slice omf.exprima.node1 omf.exprima.node2


OMF Aggregate Manager

# NOTE: use only 'spaces' to indent !
# ('tab' indents are not supported by the ruby yaml parser used to read this file)
#
# This is the config file for global configuration items for the OMF Aggregate Manager.
#
---
:xmpp:
  :server: "exprima.unistra.fr"
  :user: "aggmgr"
  :password: "khk67trRG09!t"
  :port: 5222
  :use_dnssrv: false
:http:
  :port: 5054
# List of the slices that the AM should by default provide its service to 
# (other slices can be added later dynamically via a Slice Manager)
#
:default_slices: ["pxe_slice", "default_slice"]


node (resource) creation in openfire

Before omf_create_psnode-5.4 , fill the correct server address to create the nodes and slices

vim /usr/share/omf-aggmgr-5.4/omf-aggmgr/omf_create_sysnode.rb


configuration change

to have a look on all the openfire resources:

omf_create_psnode-5.4 exprima.unistra.fr listall

when you want to delete one particular resource:

omf_create_psnode-5.4 exprima.unistra.fr rmnode /OMF_5.4/default_slice/resources/node004

images

imagezip

Some softs cannot be installed automatically on the nodes.

Compile the stand-alone imagezip software
 $cd testbed-080630/os/imagezip
 
$ vi Makefile-linux.sa
  Comment lines:
  #ifdef WITH_NTFS
  ...
  #endif
  Add 'disksize.o' to targets 'imagezip' and 'imageunzip'		
   imagezip: disksize.o imagezip.o (etc...)
    $(CC) $(CFLAGS) disksize.o imagezip.o (etc..)
     (Do the same for 'imageunzip' target)
  $ make -f Makfile-linux.sa
  $ sudo cp imagezip imageunzip imagedump /usr/bin

automatic re-installation

The procedure is quite simple:

  1. boot a node with pxe (e.g. default image omf-5-4 which listens to the pxe_slice): /exprima/admin/boot_change_node.sh node001 pxe omf-5.4
  2. upload the image on the node: omf load -t omf.exprima.node001 -i voyage_baseline.ndz
  3. ssh root@node001 and modify accordingly your system (do not forget remountrw to write something on the compact flash).
    You MUST subscribe to your private slice (modify /etc/omf-resctl-5.4/omf-resctl.yaml -> :slice: 'your_slice'
  4. save the image: omf save -n omf.exprima.node001 # The image will be saved in /exprima/images/ (filename containing the hrn and a timestamp)
  5. configure the nodes to boot via their hard disk: /exprima/admin/boot_change_node.sh node001 hd


NB: boot_change_node.sh is a custom script which directly hacks pxelinux.cfg. This is perhaps not the better way to proceed.