Test Lab DAQ test stands

From Hall A Wiki
Revision as of 11:53, 19 August 2024 by Hanjie (Talk | contribs) (Set up the Server)

Jump to: navigation, search

Set up the Server

  • Name: hatestlab1.jlab.org (procured on 2024 April)
  • Shared account: hatdaq
  • Roles:
  1. The TFTP server for SBCs
  2. The NFS server for computers under same LAN
  • Set up pxeboot
  1. Request CC to change the tftp server for the SBUs from "atedf3" to "hatestlab1"
  2. The rest steps are similar to Set_up_PXE_boot_VM
  • Home directory for the SBUs
  1. The home directories for the SBUs are at:
hatdaq@hatestlab1:/home/diskless/
  1. An example account "hatdaq" is created at hatdaq@hatestlab1:/home/diskless/hatdaq

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

  1. The CPU should be plugged into the slot 01
  2. Connect the ethernet cable, and a display cable (such as: VGA) to the CPU and power on the crate
  3. Use a monitor to obtain the MAC address
  4. 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
  5. Create the pxelinux configuration under /tftpboot/linux-install/pxelinux.cfg/:
    1. Get the host ip: gethostip <hostname>
    2. 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
  6. Create a folder under snapshot/, such as root@atedf3:/data/disk2/diskless/CentOS7/x86_64/snapshot/<hostname>
  7. Set up the NFS mount: modify root@atedf3:/etc/exports/ to export "*/root/" and "*/snapshot/" to <hostname>
  8. Restart the nfs service: /etc/init.d/nfs restart ("atedf3" is RHEL6, latest RHEL* would have a different command to restart NFS service)
  9. Power cycle the crate
  10. Set up home directory (using amoll11 home directory temporarily)
    1. cd /data/disk2/home/sbs-onl
    2. cp -r amoll1 apol1
    3. cd /data/disk2/diskless/CentOS7/x86_64/snapshot/apol1/home
    4. ln -s data/disk2/home/sbs-on/apol1 sbs-onl
    5. modify /etc/exports
    6. reboot the module

Set up the VTP

  1. The VTP should be plugged into the slot 11
  2. The VTP from Ben usually has boot env.bin loaded. We need to change the environment variables accordingly. Use "apolvtp1" as an example:
    1. Connect the serial cable to a computer, and run "screen /dev/ttyUSB0 115200" (if it's Linux)
    2. Power on the crate, then you will see the VTP output at the screen session
    3. At the screen session, run "printenv" to display all the environment variables
    4. Use "setenv" and "saveenv" to adjust the environment variables accordingly
    5. 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"
    6. Create a folder under snapshot/, such as root@atedf3:/data/disk2/diskless/arm7/snapshot/apolvtp1
    7. Set up the NFS mount: modify root@atedf3:/etc/exports/ to export "*/root/" and "*/snapshot/" to "apolvtp1"
    8. Restart the nfs service: /etc/init.d/nfs restart ("atedf3" is RHEL6, latest RHEL* would have a different command to restart NFS service)
    9. Power cycle the crate.
  3. Set up home directory (using havtp1 home directory temporarily)
    1. cd /data/disk2/home/sbs-onl
    2. cp -r havtp1 apolvtp1
    3. cd /data/disk2/diskless/CentOS7/armv7/snapshot/apolvtp1/home
    4. ln -s data/disk2/home/sbs-on/apolvtp1 sbs-onl
    5. modify /etc/exports
    6. reboot the module