UAL Geoportal Migration Project
This repo documents processes taken to migrate UAL spatial data collection to
new server (CEREUS) a CyVerse managed server housed at UITS.
background
This project was initiated to move spatial data off UAL servers (sequoia, geo,
imagery) that have reached EOL. Migrating data is the first step in
decommissioning these servers and sunsetting the Spatial Data Explorer
(opengeoportal) web application. CEREUS was purchased through a TRIF-WEES grant
in collaboration between T. Swetnam, D. LeBauer, K. Carini and others to
house spatial data for campus in a location that makes these data readily
available for cloud-based, intensive analysis.
Data migration was conducted through server to server transfer using iRODS
icommands.
initial setup
- Dependencies
- Setup
- Migration
- QA/QC
- Miscellaneous debris
tmux
Terminal multiplexing (tmux) ensures that if the connection to server is
lost, the local terminal window does not die.
common commands
tmux opens a tmux window`
tmux ls lists open windows
tmux attach -t 0 attaches to the window 0
To detach from a tmux window, hold Ctrl + B buttons together, release Ctrl then
alone press D
IRODS setup on sequoia
Steps
- log into sequoia
- change to the
irodsuser:sudo su irods - check icommands:
ils - if icommands is not authenticated to your user profile, run
iinit - run
ilsagain to make sure it worked
iCommands transfers to CyVerse
After authenticating through iRODS, search for a folder path to move
When possible, use absolute, not relative, paths, e.g.
iput -KPbvrf /sequioa/UAL_Vault/GeoArchive/public/<directory-to-be-copied/ /iplant/home/shared/ual/
iput moves the file from local to CyVerse
iget downloads a file from CyVerse to local
iput flags
-Kis for Checksum of the file to make sure it transfered with no errors-Pis for progressive download information used with verbose-bis for bulk transfer-ris for recursive folder creation-vis for verbose-fis to force the overwrite
The CyVerse user space ual is in the Community Released Folders, its full
path is /iplant/home/shared/ual
Sync
To check that everything transferred properly run irsync
(read more) which
"synchronizes recursively the data from the local directory foo1 to the iRODS
collection foo2 and the command"
Example:
irsync -rKv -R cereusRes /PAGimagery/PAG/ i:/iplant/home/shared/ual/public/PAG/files/
This will fix any files that incorrectly transferred and transfer any files
that did not transfer for whatever reason.