DAQ Networking

From PREX Wiki
Jump to navigationJump to search

DAQ Networking

Portserver

Ethernet Switch

NFS Network File System

To mount an NFS filesystem to a ROC (linux or VXworks) there are several steps involved

For linux systems:

  • Make sure that the ethernet ports being used are configured to DHCP over the ethernet network
    • Edit the /etc/sysconfig/network-scripts/ifcfg-eth# configuration files are correctly set to allow the desired ethernet port to DHCP on-boot (on RHEL and Centos only)
    • Acquire a static IP from the ethernet network you are using (if its a LAN you manage set these in the router or switch yourself)
    • Identify the hostnames and IPs of the local machine and remote server you want to connect to in the /etc/hosts file
    • Make sure the /etc/sysconfig/network file has the localhost's hostname set in it (can also be done with the 'host' unix command)
    • On the NFS host server ensure that the /etc/exports file correctly targets the IPs or entire network (using .0 as the last digit of the IP address) that you want to server the NFS contents to
      • After updating a network connection or target computer in /etc/exports run the "service autofs restart" or "exports -a" command as root
      • Make sure the /etc/hosts file includes the same information for all computers on the local network involved in the NFS file sharing, with 127.0.0.1 assigned to 'localhost' on all
    • Make sure that the permissions for the shared files allow for appropriate read, write, and execute privileges for all users and groups, on local and remote computers
      • To check the user and group permissions are set correctly, the naming conventions can be deceptive - use ls -n to show the number of users and groups, which is what really matters
      • Even if two separate computers have the same user and group names but their user and group numbers are different you are able to tell this and assign the rwx privileges correctly on the shared folders (using 'chown -R' and 'chmod -R 777' or whatever correct permissions you want to set)

For VXworks systems:

  • The same things apply as for ethernet network mounted file systems, except that VXworks uses the ~/.rhosts file to determine which IPs to allow to mount an NFS shared folder
    • Therefore, follow the /etc/exports file convention, except with ~/.rhosts instead for VXworks ROC file sharing
    • The ROC_name and ROC_name.jlab.org addresses both need to be listed for it to work


Network Map

As of May 30th 2018 the network map is:

Location       - SSH Hostname - Software ROC# - Hardware ROC # and Branch - Serial Access Method
RHRS           - 'happex7'    - 26     - 02 branch 4 - serial port via portserver 'telnet hatsv3 2002' port 2
LHRS           - 'hallavme15' - 25     - 05 branch 4 - serial port via portserver 'telnet hatsv21 2004' port4 
TS             - 'happex4'    - no ROC - no ROC      - serial port via network console server 'ssh adaq:ttyS8\@acons1'
Counting House - 'halladaq6'  - 23     - 00 branch 1 - serial port via network console server 'ssh adaq:ttyS8\@acons1' 
Injector       -  'qweak1'    - 24     - 00 branch 2 - serial port via 'telnet' via network raspberry pi 'ssh pi@rpi12'