Tags

CHESS DAQ Client Configuration

For the main overview of the CHESS DAQ Cluster, please see DataStorageManagement.

In summary, all data should be taken to the CHESS_DAQ file system. The DAQ filesystem is only writable by systems on the CHESS DAQ subnet. Please submit a ServiceRequest for help connecting to the DAQ subnet.

Any analysis or retrieval should be done using the read-only CHESS_RAW file system. Anything in CHESS_DAQ can be accessed read-only through CHESS_RAW, and RAW is available from any system on a CLASSE (including CHESS) network.

All auxiliary data that's directly related to specific raw data should be written to the CHESS_AUX file system.

All user / project / group data should be written to the CHESS_USER file system.

All user-managed software should be built or installed in the CHESS_SW file system.

CLASSE Managed Systems

All CLASSE Managed Windows and Linux systems should have direct access to the CHESS File systems.
  • Windows users can browse to \\chessdaq\daq (for write access from a system on the DAQ subnet), \\chesssamba\raw (for read-only access to all data from any system), \\chesssamba\auxiliary, etc.
  • Linux clients can browse to /nfs/chess/daq (for write access from a system on the DAQ subnet), /nfs/chess/raw (for read-only access to all data from any system), /nfs/chess/auxiliary, etc.

Non-CLASSE Managed Systems

All Non-CLASSE Managed Systems mount the CHESS File Systems using CIFS. If you only require read-only access, you should use \\chesssamba\raw.

If you require write access, please notify service-classe@cornell.edu. For reference, your system will need:
  • a connection to the CHESS DAQ subnet
  • "chessdaq.classe.cornell.edu" to resolve to 172.30.42.20
  • to mount \\chessdaq.classe.cornell.edu\daq

Please note that unless "classe.cornell.edu" is in your search path, you will need to use chesssamba.classe.cornell.edu instead of just chesssamba in all of the examples below.

Linux

For compatibility with CLASSE-Managed Linux systems, by convention wherever possible mount points should mirror those on CLASSE Managed systems. This can be setup using, for example:
  • mkdir -p /nfs/chess/{daq,raw,auxiliary,sw}

If your computer is on the DAQ subnet, add the follwoing to /etc/hosts to make sure you're getting the best performance possible:

172.30.42.20   chessdaq   chessdaq.classe.cornell.edu
172.30.42.22   chessraw   chessraw.classe.cornell.edu
172.30.42.25   chesssamba   chesssamba.classe.cornell.edu
172.30.42.24   chessaux        chessaux.classe.cornell.edu
128.84.44.181   chessfs         chessfs.classe.cornell.edu

If your computer is not on the DAQ subnet (for example, only on CHESS Public), add the follwoing to /etc/hosts:

128.84.44.50   chessraw   chessraw.classe.cornell.edu
128.84.47.19   chesssamba   chesssamba.classe.cornell.edu
128.84.44.181   chessfs         chessfs.classe.cornell.edu

From the command line, file systems can be mounted using mount.cifs. For example:
  • mount -t cifs -o username=dab66,domain=CLASSE //chesssamba/raw /nfs/chess/raw
    • For write access, your must be on the CHESS DAQ subnet and use //chessdaq/daq instead of //chesssamba/raw

Filesystems can be mounted automatically on boot by adding them to /etc/fstab. For example, the F2 Linux station computers have the following:

//chesssamba/raw /nfs/chess/raw cifs uid=specuser,gid=users,domain=CLASSE,credentials=/etc/chess_f2.creds,iocharset=utf8,sec=ntlmssp 0 0
//chesssamba/auxiliary /nfs/chess/auxiliary cifs noperm,uid=specuser,gid=users,domain=CLASSE,credentials=/etc/chess_f2.creds,iocharset=utf8,sec=ntlmssp 0 0
//chesssamba/sw /nfs/chess/sw cifs noperm,uid=specuser,gid=users,domain=CLASSE,credentials=/etc/chess_f2.creds,iocharset=utf8,sec=ntlmssp 0 0
//chessdaq/daq /nfs/chess/daq cifs noperm,uid=specuser,gid=users,domain=CLASSE,credentials=/etc/chess_f2.creds,iocharset=utf8,sec=ntlmssp 0 0

Where /etc/chess_f2.creds contains:

username=chess_f2
password=password

Note that the "noperm" option prevents the client from performing permission checks on the mounted filesystem, so all of the permission controls will be done on the server. In other words, with the above configuration, any access to /nfs/chess/daq from any account on F2 will be seen by the server (and have the same restrictions as) the chess_f2 CLASSE user.

Windows

Windows clients should be able to browse \\chesssamba\raw, \\chesssamba\auxiliary, \\chesssamba\sw, and \\chessdaq\daq (only use for write access from the CHESS DAQ subnet),

OS X

Finder

OS X can mount the file systems using the finder.
  • From the Finder, click on "Go" and select "Connect to Server ..."
  • Enter the file system you wish to mount. For example, cifs://chesssamba/raw, cifs://chesssamba/auxiliary, cifs://chesssamba/sw, or cifs://chessdaq/daq (only use for write access from the CHESS DAQ Subnet)
  • If desired, right-click on the volume on the desktop and select Make Alias

Command line

OS X systems can also mount the file systems from the command line using mount_smbfs. For example:
  • mount_smbfs //'CLASSE;dab66'@chesssamba/raw /tmp/raw

Automount

Finally, OS X systems can auto mount samba file systems on boot with the following procedure.
  1. Add the following line to /etc/auto_master
    /-         auto_smb
  2. Add desired mount to /etc/auto_smb. For example, to mount \\chesssamba\raw, you would use something like:
    /path/to/local/mount/point     -fstype=smbfs,soft     ://classe_username:classe_password@chesssamba.classe.cornell.edu/raw
    • replace "/path/to/local/mount/point" with the local directory you'd like to mount the share on
    • replace classe_username and classe_password with your CLASSE username and password
  3. Since it stores your CLASSE password, make sure /etc/auto_smb is only readable by root:
    sudo chmod go-r /etc/auto_smb
  4. Reboot, or execute sudo automount -vc
Topic revision: r19 - 30 Jul 2020, AdminDevinBougie
This site is powered by FoswikiCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding CLASSE Wiki? Send feedback