ITS The ITS team provides two methods to transfer facilitate data transfers between the RCS Clusters and Engram:
- Engram Transfer Server:
engram-xfer-01.rc.zi.columbia.edu
- We can set up user an account on this linux server that Globus: For local shares and streamlined transfer.
...
Method 1: Engram Transfer Server
Server Address: engram-xfer-01.rc.zi.columbia.edu
Purpose: A dedicated Linux server where users can mount Engram shares and
...
transfer
...
files to/from
...
external servers
...
(like the RCS
...
clusters) without utilizing local workstation resources.
To Get Started:
- Account Setup: Contact ITS to set up a user account. Provide the Engram share you need access to and any UNIs (Columbia University Network IDs) requiring access.
- Permissions & Access:
- Authentication: Server uses CU LDAP for UNI authentication. Verify if the new user exists in LDAP using
id UNI
. If not, request CUIT to create a UNI account. - Add User to Access Group:bash
sudo usermod -m -aG engram-xfer-01 UNI
- Authentication: Server uses CU LDAP for UNI authentication. Verify if the new user exists in LDAP using
...
- Create Home Directory:bash
sudo mkdir /home/UNI
...
sudo chown UNI:user /home/UNI
...
sudo chmod 700 /home/UNI
...
...
- CIFS Mount Script Permissions: Grant users permission to run
...
- Engram mount
...
- scripts
...
- :
/usr/local/bin/zi_smbmount
- :
...
/usr/local/bin/zi_smbunmount
...
- Lab Group Permissions:
- Confirm or create the lab
...
- group
...
- in the system:bash
grep -R LabName /etc/group
- in the system:
...
grep -R LabName /etc/sudoers
...
- If the lab group
...
- doesn’t exist, create it and set permissions:bash
sudo groupadd LabName echo "%LabName ALL=/usr/local/bin/zi_smbmount LabName-EngramShareTier, /usr/local/bin/zi_smbunmount" >> /etc/sudoers
- Add
- doesn’t exist, create it and set permissions:
...
- New User to Lab Group:bash
sudo usermod -a -G LocalLabName NewUser
- New User to Lab Group:
...
Transfer Process:
Login:
- Connect to
engram-xfer-01.rc.zi.columbia.edu
:
- Use Columbia Secure
- WiFi, a
- campus network jack, or VPN.
- Connect to
Mounting Engram Share:
- Create Mount Point:bash
mkdir /home/UNI/mnt
- Mount
- Share:bash
/usr/local/bin/zi_smbmount LabName-EngramShareTier
- Unmounting and Remounting: Run
/usr/local/bin/zi_
- Create Mount Point:
- Open a new tmux session by running "tmux" or "tmux new -s SessionName". You can also rename the tmux by press keyboard buttons: ctrl + b, $ or reattach a existing tmux session by running : "tmux attach -t SessionName". Run the command to transfer data between HPC and Engram: rsync -avPhW SourceDirectory Destination. Example for transferring data from Engram to Ginsburg:
smbunmount
to unmount and remount as needed.Data Transfer Using
rsync
:- Start a
tmux
session to allow persistent transfer even after disconnecting.bashtmux
- Rsync Commands:
- From Engram to RCS:bash
rsync -avPhW /home/
- From Engram to RCS:
UNI/mnt/
source_path UNI@ginsburg.rcs.columbia.edu:
/
destination_path
- From RCS to Engram:
- bash
rsync -avPhW UNI@ginsburg.rcs.columbia.edu:/
source_path /home/
UNI/mnt/
- Start a
- Exit tmux session buy closing the sell window. DO NOT press ctrl c or type "exit". Then you can go and do other stuff, the rsync job will keep running in the air.
- In order to verify if the rsync job is finished, ssh back to the server you executed the rsync job, reattach the tmux session by running "tmux a -t SessionName".
- If the job was failed in the middle of the transferring, you can run a command to resume the rsync job when it dropped: sync -avhW SourceDirectory Destination. Here are the links of detail usage of tumx and rsync: tmux cheat sheet; rsync cheat sheet.
- Globus
...
destination_path
- Monitoring: Reattach the
tmux
session:bashtmux attach -t SessionName
- Resume Failed Transfers:bash
rsync -avhW SourceDirectory Destination
Additional Resources:
...
Method 2: Globus Transfers
Globus Setup:
ITS can set up a Globus local share for you, allowing data transfers through the Globus tool without burdening your workstation.
To Request: Contact ITS for assistance in setting up a Globus share.