Newer
Older
DICE (Developing Innovation and Creativity in Education) is an international project co-funded by the Erasmus+ Programme of the European Union.
Its main goals are related to fostering innovation and creativity in education.
This project attempts to be a leading initiative that supports educational community to make progress in the field of innovation and creativity through effective, authentic, practical, sustainable actions.
This project has been funded with support from the European Commission.
For more information, see [http://www.diceproject.eu/][b].
**IT4Innovations participates in DICE. DICE uses the iRods software**
The integrated Rule-Oriented Data System (iRODS) is an open source data management software used by research organizations and government agencies worldwide. iRODS is released as a production-level distribution aimed at deployment in mission critical environments. It virtualizes data storage resources, so users can take control of their data, regardless of where and on what device the data is stored. As data volumes grow and data services become more complex, iRODS is serving an increasingly important role in data management, see [https://irods.org/][c].
We have to be sure about your identity, this will be done throught this steps:

Ondrej Dvorak
committed
- sign in with your organisation [B2ACCESS][d] , pages requests valid personal certificate (e.g from GEANT) . Account with "Low" level of assurance, will not have access to IT4I zone
- confirm your certificate in browser
 

- sign to EUDAT/B2ACCESS

Ondrej Dvorak
committed


Ondrej Dvorak
committed
- after successfull login to B2Access, please sign in to our [AAI][f] throught your B2Access account. You have to set new password - it is for iRods access.


Ondrej Dvorak
committed
- contact our support@it4i.cz by mail, we will create your account at our iRODS server.
- fill this request for [EUDAT][h], please specify requested capacity.
- 

Ondrej Dvorak
committed
- access to cluster is must (it4i account)
- iRODS clients are provided as a module on our ***Karolina*** cluster ( Barbora is in progress )

Ondrej Dvorak
committed
- module irodsfs loads config file for irodsfs nad for icommands too

Ondrej Dvorak
committed
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
***Fuse***
```console
ssh some_user@karolina.it4i.cz
[some_use@login4.karolina ~]$ ml irodsfs
irodsfs configuration file has been created at /home/dvo0012/.irods/config.yml
iRODS environment file has been created at /home/dvo0012/.irods/irods_environment.json
to start irodsfs, run: irodsfs -config ~/.irods/config.yml ~/IRODS
to start iCommands, run: iinit
For more information, see https://docs.it4i.cz/dice/
```
To mount your iRODS collection to ~/IRODS, run
```console
[some_user@login4.karolina ~]$ irodsfs -config ~/.irods/config.yml ~/IRODS
time="2022-08-04 08:54:13.222836" level=info msg="Logging to /tmp/irodsfs_cblmq5ab1lsaj31vrv20.log" function=processArguments package=main
Password:
time="2022-08-04 08:54:18.698811" level=info msg="Found FUSE Device. Starting iRODS FUSE Lite." function=parentMain package=main
time="2022-08-04 08:54:18.699080" level=info msg="Running the process in the background mode" function=parentRun package=main
time="2022-08-04 08:54:18.699544" level=info msg="Process id = 27145" function=parentRun package=main
time="2022-08-04 08:54:18.699572" level=info msg="Sending configuration data" function=parentRun package=main
time="2022-08-04 08:54:18.699730" level=info msg="Successfully sent configuration data to background process" function=parentRun package=main
time="2022-08-04 08:54:18.922490" level=info msg="Successfully started background process" function=parentRun package=main
```
To unmount it, run
```console
fusermount -u ~/IRODS
```
- you can work with fuse as an ordinary directory ( `ls, cd, cp, mv` etc )
***iCommands***
```console
ssh some_user@karolina.it4i.cz
[some_use@login4.karolina ~]$ ml irodsfs
irodsfs configuration file has been created at /home/dvo0012/.irods/config.yml.
to start irods fs run: irodsfs -config ~/.irods/config.yml ~/IRODS
iCommands environment file has been created at /home/$USER/.irods/irods_environment.json.
to start iCommands run: iinit

Ondrej Dvorak
committed
[some_user@login4.karolina ~]$ iinit
Enter your current PAM password:
```
```console
[some_use@login4.karolina ~]$ ils
/IT4I/home/some_user:
test.1
test.2
test.3
test.4
```
- upload `iput` , download `iget`
- for more help, type `ihelp`
- we suppose, you will upload your data from your local pc/vm

Ondrej Dvorak
committed
- password from [AAI][f]

Ondrej Dvorak
committed
### You Need a Client to Connect to iRods Server

Ondrej Dvorak
committed
- for access set PAM passwords at [AAI][f]

Ondrej Dvorak
committed
### Cyberduck

Ondrej Dvorak
committed
- download [Cyberduck][i]

Ondrej Dvorak
committed
- left doubleclick at this file opens connection


Ondrej Dvorak
committed
### Fuse
- work with your irods collection like ordinary directory
- this is linux client only, basic knowledge of commandline is neccessary
```console
cd ~
wget https://docs.it4i.cz/irods1.it4i.cz.crt[k]
wget https://github.com/cyverse/irodsfs/releases/download/v0.7.6/irodsfs_amd64_linux_v0.7.6.tar
tar -xvf ~/irodsfs_amd64_linux_v0.7.6.tar
cd ~/.irods && wget https://docs.it4i.cz/config.yml[3]

Ondrej Dvorak
committed
- edit `~/.irods/config.yml` with apropriate username

Ondrej Dvorak
committed
[some_user@local_pc ~]$ ./irodsfs -config ~/.irods/config.yml ~/IRODS
time="2022-07-29 09:51:11.720831" level=info msg="Logging to /tmp/irodsfs_cbhp2rucso0ef0s7dtl0.log" function=processArguments package=main
Password:
time="2022-07-29 09:51:17.691988" level=info msg="Found FUSE Device. Starting iRODS FUSE Lite." function=parentMain package=main
time="2022-07-29 09:51:17.692683" level=info msg="Running the process in the background mode" function=parentRun package=main
time="2022-07-29 09:51:17.693381" level=info msg="Process id = 74772" function=parentRun package=main
time="2022-07-29 09:51:17.693421" level=info msg="Sending configuration data" function=parentRun package=main
time="2022-07-29 09:51:17.693772" level=info msg="Successfully sent configuration data to background process" function=parentRun package=main
time="2022-07-29 09:51:18.008166" level=info msg="Successfully started background process" function=parentRun package=main
```
***How to put your data to iRODS***
```console

Ondrej Dvorak
committed
[some_use@local_pc ~]$ cp test1G.txt ~/IRODS
```
It works as ordinary filesystem
```console

Ondrej Dvorak
committed
[some_user@local_pc ~]$ ls -la ~/IRODS
total 0
-rwx------ 1 some_user some_user 1073741824 Nov 4 2021 test1G.txt
```
***How to stop - unmout your collection:***
```console

Ondrej Dvorak
committed
[some_user@local_pc ~]$ fusermount -u ~/IRODS

Ondrej Dvorak
committed
### iCommands
- this is linux client only, basic knowledge of commandline is neccessary
- for ubuntu20 - there is [http://docs.snic.se/wiki/IRODS_iCommands_installation_on_Ubuntu_20.04#Authenticate_and_test_iRODS_iCommands_client][j]
sudo rpm --import https://packages.irods.org/irods-signing-key.asc
sudo wget -qO - https://packages.irods.org/renci-irods.yum.repo | sudo tee /etc/yum.repos.d/renci-irods.yum.repo

Ondrej Dvorak
committed
sudo yum install irods-icommands
cd ~ && wget https://docs.it4i.cz/irods1.it4i.cz.crt[k]
mkdir ~/.irods/ && cd "$_" && wget https://docs.it4i.cz/irods_environment.json[2]

Ondrej Dvorak
committed
- edit ***irods_user_name*** in `~/.irods/irods_environment.json`

Ondrej Dvorak
committed
[some_user@local_pc ~]$ pwd

Ondrej Dvorak
committed
[some_user@local_pc ~]$ ls -la
drwx------. 2 some_user some_user 136 Sep 29 08:53 .
dr-xr-x---. 6 some_user some_user 206 Sep 29 08:53 ..
-rw-r--r--. 1 some_user some_user 253 Sep 29 08:14 irods_environment.json

Ondrej Dvorak
committed
[some_user@local_pc ~]$ iinit

Ondrej Dvorak
committed
[some_user@local_pc ~]$ ils
/IT4I/home/some_user:

Ondrej Dvorak
committed
[some_user@local_pc ~]$ iput cesnet.crt
```
```console

Ondrej Dvorak
committed
[some_user@local_pc ~]$ ils

Ondrej Dvorak
committed
[some_user@local_pc ~]$ iget cesnet.crt
ls -la ~
-rw-r--r--. 1 some_user some_user 1464 Jul 20 13:44 cesnet.crt
[1]: irods.cyberduckprofile
[2]: irods_environment.json
[3]: config.yml
[b]: http://www.diceproject.eu/
[c]: https://irods.org/
[d]: https://b2access.eudat.eu/
[f]: https://aai.it4i.cz/realms/IT4i_IRODS/account/#/
[h]: https://www.eudat.eu/contact-support-request?Service=B2SAFE
[i]: https://cyberduck.io/download/
[j]: http://docs.snic.se/wiki/IRODS_iCommands_installation_on_Ubuntu_20.04#Authenticate_and_test_iRODS_iCommands_client