50 likes | 168 Vues
This document outlines the steps for managing iRODS accounts and directories for user 'shuang,' detailing user creation, password assignment, and group management. It also covers data handling procedures, including creating and syncing iRODS directories (e.g., OML measurement data), and working with local files. Users can perform OML-based measurements, push modified files back to iRODS, and efficiently handle multiple files through directory mounting. Lastly, it describes creating rules for data processing tasks, such as file filtering.
E N D
GIMI iRODS Use Cases - Preparation • Create an account for user: shuang • iadminmkusershuanguser_type • Assign user to a group • iadminatggroupNameshuang • Admin can assign password to user (also supports GSI/Kerberos) • iadminmodusershuang password xxx • A lot of other things can be done: • iadmin –h • Create an iRODS directory for the user OML measurement data • imkdir results
GIMI iRODS Use Case 1 • Perform an OML-based measurement, result is saved in a file (a.sqlite3) under /home/shuang/results • Put the file into iRODS • iput a.sqlite3 (suppose ipwd is /geniRenci/home/shuang/results) • Work on the local copy under /home/shuang/results • Push the modified file back into iRODS (think it as a version control system) • Irsync –r /home/shuang/result i:/geniRenci/home/shuang/results
GIMI iRODS Use Case 2 • Check out a file in iRODS to my local directory • iget a.sqlite3 • Work on the local copy • Push the modified file back into iRODS • irsync a.sqlite3 i:a.sqlite3
GIMI iRODS Use Case 3 • Suppose there are many files under /home/shuang/data that need to be copied into iRODS, we can mount the local directory directly into iRODS • imkdir /geniRenci/home/shuang/mountpoint • imcoll –mfilesystem /home/shuang/data /geniRenci/home/shuang/mountpoint • Work on the local files • Sync with iRODS • Irsync –r /home/shuang/data i:/geniRenci/home/shuang/mountpoint
GIMI iRODS Use Case 4 • Data processing – e.g. filtering files under /geniRenci/home/shuang • Write a rule called filter.r which filters files and save them under /geniRenci/home/shuang/filtered • irule –F filter.r “*Path=‘/geniRenci/home/shuang’”