Introduction
IT_CF boot a live image from the network to auto register new servers.
The image are in aims2 but synced to another PXE boot server for a specific IP Service.
PXE configuration
The configuration live on afs :
/afs/cern.ch/project/linux/adm/aims2menu/hwreg/
To update it modify files on AFS and run:
/afs/cern.ch/project/linux/adm/bin/synchwreg
Everything is copied in :
lxdist:/mnt/data1/tftpboot
Aims2 to hwreg script.
To allow CF to upload their images in aims2 and use them on hwreg, lsyncd synchronise the image between the 2 trees.
vi /mnt/data2/etc/lsyncd.conf
clusvcadm -R aims2sync (lsyncd is part of aims2sync so inotify can detect changes on NFS)
Aims2 add new image.
- Edit:
vi /mnt/data2/etc/lsyncd.conf
- Add the following lines
sync{
default.direct,
source="/mnt/data1/tftpboot/aims2/boot/CF_SLC_65_AUTOINSTALL_TEST",
target="/mnt/data1/tftpboot/hwreg/boot/CF_SLC_65_AUTOINSTALL_TEST"
}
- Restart lsyncd through rgmanager
clusvcadm -R aims2sync
Live image creation
Please see:
https://twiki.cern.ch/twiki/bin/view/LinuxSupport/Slc6LiveHowto