Test Lab DAQ test stands
From Hall A Wiki
Contents
Set up the Server
- Name: hatestlab1.jlab.org (procured on 2024 April)
- Roles:
- The TFTP server for SBCs
- The NFS server for computers under same LAN
- Set up pxeboot
- Request CC to change the tftp server for the SBUs from "atedf3" to "hatestlab1"
- The rest steps are similar to Set_up_PXE_boot_VM
CODA Installation
- In the future, there will be multiple DAQ test stands and they will likely run at the same time. So, the CODA should be installed locally on a desktop to avoid conflicts. There will be a dedicated "coda" account to store the environments, setup etc.
CODA Installation and Configuration on "rivendell"
Set up the VXS crate
Set up the CPU
- The CPU should be plugged into the slot 01
- Connect the ethernet cable, and a display cable (such as: VGA) to the CPU and power on the crate
- Use a monitor to obtain the MAC address
- Open a ticket at CC: give them the MAC address, a desired hostname, and ask them to set up the pxeboot using "atedf3" as the DHCP server and the TFTP server
- Create the pxelinux configuration under /tftpboot/linux-install/pxelinux.cfg/:
- Get the host ip:
gethostip <hostname>
- Make a copy of an existing configuration to the new host ip, for example:
-
gethostip apol1
gives: 81392580 -
cp hcvme06 81392580
-
ln -s apol1 81392580
- Get the host ip:
- Create a folder under snapshot/, such as root@atedf3:/data/disk2/diskless/CentOS7/x86_64/snapshot/<hostname>
- Set up the NFS mount: modify root@atedf3:/etc/exports/ to export "*/root/" and "*/snapshot/" to <hostname>
- Restart the nfs service: /etc/init.d/nfs restart ("atedf3" is RHEL6, latest RHEL* would have a different command to restart NFS service)
- Power cycle the crate
- Set up home directory (using amoll11 home directory temporarily)
- cd /data/disk2/home/sbs-onl
- cp -r amoll1 apol1
- cd /data/disk2/diskless/CentOS7/x86_64/snapshot/apol1/home
- ln -s data/disk2/home/sbs-on/apol1 sbs-onl
- modify /etc/exports
- reboot the module
Set up the VTP
- The VTP should be plugged into the slot 11
- The VTP from Ben usually has boot env.bin loaded. We need to change the environment variables accordingly. Use "apolvtp1" as an example:
- Connect the serial cable to a computer, and run "screen /dev/ttyUSB0 115200" (if it's Linux)
- Power on the crate, then you will see the VTP output at the screen session
- At the screen session, run "printenv" to display all the environment variables
- Use "setenv" and "saveenv" to adjust the environment variables accordingly
- Open a ticket at CC to request an IP and hostname for the given VTP MAC address. It should be under the same LAN as "atedf3", and set the VTP to be booted from "atedf3"
- Create a folder under snapshot/, such as root@atedf3:/data/disk2/diskless/arm7/snapshot/apolvtp1
- Set up the NFS mount: modify root@atedf3:/etc/exports/ to export "*/root/" and "*/snapshot/" to "apolvtp1"
- Restart the nfs service: /etc/init.d/nfs restart ("atedf3" is RHEL6, latest RHEL* would have a different command to restart NFS service)
- Power cycle the crate.
- Set up home directory (using havtp1 home directory temporarily)
- cd /data/disk2/home/sbs-onl
- cp -r havtp1 apolvtp1
- cd /data/disk2/diskless/CentOS7/armv7/snapshot/apolvtp1/home
- ln -s data/disk2/home/sbs-on/apolvtp1 sbs-onl
- modify /etc/exports
- reboot the module