<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://docs.snic.se/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Janos+Nagy+%28NSC%29</id>
	<title>SNIC Documentation - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="http://docs.snic.se/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Janos+Nagy+%28NSC%29"/>
	<link rel="alternate" type="text/html" href="http://docs.snic.se/wiki/Special:Contributions/Janos_Nagy_(NSC)"/>
	<updated>2026-05-12T20:34:35Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.31.10</generator>
	<entry>
		<id>http://docs.snic.se/w/index.php?title=Setting_your_Swestore_password&amp;diff=7687</id>
		<title>Setting your Swestore password</title>
		<link rel="alternate" type="text/html" href="http://docs.snic.se/w/index.php?title=Setting_your_Swestore_password&amp;diff=7687"/>
		<updated>2021-01-15T13:00:55Z</updated>

		<summary type="html">&lt;p&gt;Janos Nagy (NSC): &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Storage]]&lt;br /&gt;
[[Category:Swestore]]&lt;br /&gt;
[[Category:Swestore user guide]]&lt;br /&gt;
&lt;br /&gt;
This page describes how to find your Swestore username and how to set your password.&lt;br /&gt;
&lt;br /&gt;
* First, open a new web browser tab/window and log in to the SUPR portal at https://supr.snic.se/&lt;br /&gt;
&lt;br /&gt;
* Click '''Accounts''' in the left hand menu to show the ''Accounts'' page.&lt;br /&gt;
[[File:Swestore-pass-1.png|border|center]]&lt;br /&gt;
&lt;br /&gt;
* Note your ''Username'' for the Swestore resource.&lt;br /&gt;
* To initiate the password change/reset process, click '''Reset Password'''&lt;br /&gt;
[[File:Swestore-pass-2.png|border|center]]&lt;br /&gt;
&lt;br /&gt;
* You are now presented with the ''Prove Your Identity to Swestore'' page.&lt;br /&gt;
* Click '''Prove My Identity to Swestore'''&lt;br /&gt;
[[File:Swestore-pass-3.png|border|center]]&lt;br /&gt;
&lt;br /&gt;
* You are now redirected to the ''Swestore password change'' page.&lt;br /&gt;
* Choose a new password unique to Swestore.&lt;br /&gt;
** '''NEVER''' use the same password for multiple resources!&lt;br /&gt;
** It's better to use a long password that you are comfortable typing than a short password with lots of weird special characters that you get wrong.&lt;br /&gt;
* Please be patient as it might take some time to move on to the next screen.&lt;br /&gt;
* Enter the new password in the '''Password''' and '''Verification''' text entry boxes and click '''Set'''.&lt;br /&gt;
[[File:Swestore-pass-4.png|border|center]]&lt;br /&gt;
&lt;br /&gt;
* The page will reload and display if the password change was successful or not.&lt;br /&gt;
** If the text ''Password change was successful'' is displayed you have completed the password change procedure, close the web browser tab/window.&lt;br /&gt;
** If an error message is displayed, note if there is any specific complaints (ie. password length), correct and retry.&lt;br /&gt;
** The password should be at least 8 characters long.&lt;br /&gt;
** Note that there is a waiting period of one hour between subsequent password changes.&lt;br /&gt;
[[File:Swestore-pass-5.png|border|center]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Swestore|&amp;lt; Back to the main Swestore documentation page]]&lt;/div&gt;</summary>
		<author><name>Janos Nagy (NSC)</name></author>
		
	</entry>
	<entry>
		<id>http://docs.snic.se/w/index.php?title=Swestore-iRODS&amp;diff=7682</id>
		<title>Swestore-iRODS</title>
		<link rel="alternate" type="text/html" href="http://docs.snic.se/w/index.php?title=Swestore-iRODS&amp;diff=7682"/>
		<updated>2020-12-09T09:47:06Z</updated>

		<summary type="html">&lt;p&gt;Janos Nagy (NSC): /* From the command line */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Swestore iRODS =&lt;br /&gt;
Swestore iRODS is distributed across two SNIC centres NSC and PDC. Data is stored in two copies with each copy at a different SNIC centre. This enables the system to cope with a multitude of issues ranging from a simple crash of a storage element to losing an entire site while still providing access to the stored data.&lt;br /&gt;
&lt;br /&gt;
= Using Swestore iRODS =&lt;br /&gt;
&lt;br /&gt;
== Basic information ==&lt;br /&gt;
&lt;br /&gt;
For basic information on how to apply for storage or how to become a member of an existing project, please check the main [[Swestore]] page.&lt;br /&gt;
&lt;br /&gt;
== Download and upload data== &lt;br /&gt;
&lt;br /&gt;
=== From the command line ===&lt;br /&gt;
There are several command line tools capable of using the protocols provided by Swestore iRODS. For interactive usage on SNIC clusters we recommend using the iCommands which should be installed on all SNIC resources. There are too many commands to document fully here.&lt;br /&gt;
&lt;br /&gt;
* Please check full and updated documentation at iRODS official [https://docs.irods.org/master/icommands/user/ Documentation].&lt;br /&gt;
* For the command line client, iRODS iCommands, please check iRODS [https://irods.org/download/ Download] page.&lt;br /&gt;
** Please check &amp;quot;Binary Distributions&amp;quot; and instructions for configuring your package manager to include irods APT, YUM or ZYPPER repository at [https://packages.irods.org Repository of iRODS packages ].&lt;br /&gt;
*** You can check here an example of [[iRODS iCommands installation on CentOS 7]] from repository.&lt;br /&gt;
*** You can check here an example of [[iRODS iCommands installation on Ubuntu 16.04]] from repository.&lt;br /&gt;
&lt;br /&gt;
* Configuration of the icommands requires a file called irods_environment.json to be placed in a subdirectory .irods/ of your home directory (e.g. ~/.irods/irods_environment.json).&lt;br /&gt;
You must edit this with a text editor (not MS word, but notepad for Windows, textEdit for Mac or any Unix editor) and put your SNIC username in the place for &amp;lt;YOUR_SNIC_USER_NAME&amp;gt;.:&lt;br /&gt;
&lt;br /&gt;
 {&lt;br /&gt;
   &amp;quot;irods_host&amp;quot;: &amp;quot;irods-login.swestore.se&amp;quot;,&lt;br /&gt;
   &amp;quot;irods_port&amp;quot;: 2432,&lt;br /&gt;
   &amp;quot;irods_default_resource&amp;quot;: &amp;quot;pdc-gpfs&amp;quot;,&lt;br /&gt;
   &amp;quot;irods_home&amp;quot;: &amp;quot;/snic.se/home/&amp;lt;YOUR_SNIC_USER_NAME&amp;gt;&amp;quot;,&lt;br /&gt;
   &amp;quot;irods_cwd&amp;quot;: &amp;quot;/snic.se/home/&amp;lt;YOUR_SNIC_USER_NAME&amp;gt;&amp;quot;,&lt;br /&gt;
   &amp;quot;irods_user_name&amp;quot;: &amp;quot;&amp;lt;YOUR_SNIC_USER_NAME&amp;gt;&amp;quot;,&lt;br /&gt;
   &amp;quot;irods_zone_name&amp;quot;: &amp;quot;snic.se&amp;quot;,&lt;br /&gt;
   &amp;quot;irods_client_server_negotiation&amp;quot;: &amp;quot;request_server_negotiation&amp;quot;,&lt;br /&gt;
   &amp;quot;irods_client_server_policy&amp;quot;: &amp;quot;CS_NEG_REFUSE&amp;quot;,&lt;br /&gt;
   &amp;quot;irods_encryption_key_size&amp;quot;: 32,&lt;br /&gt;
   &amp;quot;irods_encryption_salt_size&amp;quot;: 8,&lt;br /&gt;
   &amp;quot;irods_encryption_num_hash_rounds&amp;quot;: 16,&lt;br /&gt;
   &amp;quot;irods_encryption_algorithm&amp;quot;: &amp;quot;AES-256-CBC&amp;quot;,&lt;br /&gt;
   &amp;quot;irods_default_hash_scheme&amp;quot;: &amp;quot;SHA256&amp;quot;,&lt;br /&gt;
   &amp;quot;irods_match_hash_policy&amp;quot;: &amp;quot;compatible&amp;quot;,&lt;br /&gt;
   &amp;quot;irods_authentication_scheme&amp;quot;: &amp;quot;PAM&amp;quot; &lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
First issue&lt;br /&gt;
  iinit&lt;br /&gt;
which will ask for your iRODS password. You can specify a longer time limit&lt;br /&gt;
for the session using the &amp;lt;code&amp;gt;--ttl&amp;lt;/code&amp;gt; option, &amp;lt;code&amp;gt;iinit -h --ttl&amp;lt;/code&amp;gt;&lt;br /&gt;
will print help using this. The default generally will suffice.&lt;br /&gt;
&lt;br /&gt;
Use&lt;br /&gt;
  ils&lt;br /&gt;
just to check if you can access your home directory. Please use the project&lt;br /&gt;
directory to store files, which will be a subdirectory under&lt;br /&gt;
&amp;lt;code&amp;gt;//snic.se/projects/&amp;lt;SNIC_PROJECT_NAME&amp;gt;&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
To transfer data you can use&lt;br /&gt;
&amp;lt;code&amp;gt;irsync&amp;lt;/code&amp;gt; like:&lt;br /&gt;
  irsync -v -r -K local_directory i:irods_directory&lt;br /&gt;
where&lt;br /&gt;
  -v for verbose.&lt;br /&gt;
  -r for recursive copy of the whole directory tree.&lt;br /&gt;
  -K to compute and check checksums. This involves higher CPU usage&lt;br /&gt;
     but gives confidence for the integrity of the data stored.&lt;br /&gt;
i.e.:&lt;br /&gt;
  irsync -r -K mydir i:/snic.se/projects/projectdir&lt;br /&gt;
If, for whatever reason the transfer had been interrupted the second&lt;br /&gt;
invocation of the command with the same arguments should pick up and&lt;br /&gt;
continue from that point.&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;code&amp;gt;ihelp&amp;lt;/code&amp;gt; command will print a short description of the iRODS&lt;br /&gt;
commands.&lt;br /&gt;
&lt;br /&gt;
=== From GUI client ===&lt;br /&gt;
Graphical User Interface (GUI) clients are known to work on some operating systems.&lt;br /&gt;
&lt;br /&gt;
==== Access using WebDAV (map a network drive) ====&lt;br /&gt;
[https://en.wikipedia.org/wiki/WebDAV WebDAV] endpoint for Windows 10, Linux and OS X is https://snic-irods-webdav.pdc.kth.se:8443/snic.se/&lt;br /&gt;
&lt;br /&gt;
===== Mac OS X =====&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; &lt;br /&gt;
!Accessing Swestore-iRODS via WebDAV on Mac OS X&lt;br /&gt;
|- style=&amp;quot;text-align:center;&amp;quot;&lt;br /&gt;
&lt;br /&gt;
|  WebDAV is a method for remotely managing files over the internet. With WebDAV, you can access files stored in Swestore iRODS project by using the same interface as you do with your local files. &lt;br /&gt;
Once you connect via WebDAV, and you authenticate, you can view and manage the folders and files stored in your project area. You can perform same actions – drag and drop, rename, delete – that you would on files and folders stored on your own computer.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| This is OS standard WebDAV connection · &amp;quot;Connect to server&amp;quot; function in Finder :&lt;br /&gt;
To access Swestore iRODS via WebDAV you'll need to authenticate with your username and password.&lt;br /&gt;
1.Click the 'Finder' icon &lt;br /&gt;
[[File:MacOSX Finder.png |none|250px]]&lt;br /&gt;
2.In 'Finder', locate the menu bar at the top and then navigate to Go &amp;gt; Connect to Server.&lt;br /&gt;
[[File:ConnectToServer.png |none|250px]]&lt;br /&gt;
3.In the 'Connect to Server' dialog box, enter the URL to Swestore iRODS WebDAV endpoint, in the 'Server Address' field.&lt;br /&gt;
&lt;br /&gt;
4.Click Connect.&lt;br /&gt;
&lt;br /&gt;
Once the connection is made, you are prompted for your WebDAV username/password.&lt;br /&gt;
&lt;br /&gt;
Once you’ve connected, the WebDAV directory is mounted in your 'Finder' and on your desktop.&lt;br /&gt;
&lt;br /&gt;
You can now start adding, editing, deleting files in this directory from the comfort of your computer.&lt;br /&gt;
&lt;br /&gt;
[[File:Mounted webdav GUI.png |none|350px]]&lt;br /&gt;
  &lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
| This is an example how to mount with iRODS resource via &amp;quot;mount_webdav&amp;quot; command in your terminal&lt;br /&gt;
If you prefer to access your Swestore iRODS files via command line, you can mount the WebDAV-enabled server directory via '''mount_webdav''' command&lt;br /&gt;
[[File:MacOSX Terminal WebDAV mount.png |none|350px]]&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===== Windows =====&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot; &lt;br /&gt;
!Accessing Swestore-iRODS via WebDAV on Windows&lt;br /&gt;
|- style=&amp;quot;text-align:center;&amp;quot;&lt;br /&gt;
&lt;br /&gt;
|  WebDAV is a method for remotely managing files over the internet. With WebDAV, you can access files stored in Swestore iRODS project by using the same interface as you do with your local files. &lt;br /&gt;
Once you connect via WebDAV, and you authenticate, you can view and manage the folders and files stored in your project area. You can perform same actions – drag and drop, rename, delete – that you would on files and folders stored on your own computer.&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| How to map the Swestore iRODS to a Windows computer&lt;br /&gt;
1.	You should have received an email telling you about your Swestore iRODS username &lt;br /&gt;
&lt;br /&gt;
2.	We’ll use &amp;quot;'''s_user'''&amp;quot; for example&lt;br /&gt;
&lt;br /&gt;
3.	We'll assume that you have set your password at SNIC SUPR for the Swestore iRODS account&lt;br /&gt;
&lt;br /&gt;
4.	Open “File Explorer”&lt;br /&gt;
&lt;br /&gt;
5.	Right-click “Network”&lt;br /&gt;
&lt;br /&gt;
[[File:Screenshot 2020-12-08 at 09.55.18.png |250px]]&lt;br /&gt;
&lt;br /&gt;
6.	Click “Map network drive”&lt;br /&gt;
&lt;br /&gt;
7.	Click the hyperlinked &amp;quot;Connect to a Web site that you can use to store your documents and pictures.&amp;quot;&lt;br /&gt;
&lt;br /&gt;
8.	Click &amp;quot;Next&amp;quot; two times (while choosing &amp;quot;Choose a custom network location&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
9.	On &amp;quot;Specify the location of your website&amp;quot; enter https://snic-irods-webdav.pdc.kth.se:8443&lt;br /&gt;
&lt;br /&gt;
[[File:Screenshot 2020-12-08 at 10.03.52.png |250px]]&lt;br /&gt;
&lt;br /&gt;
10.	Enter username and password, e.g. s_user and password&lt;br /&gt;
&lt;br /&gt;
[[File:Screenshot 2020-12-08 at 10.04.36.png |250px]]&lt;br /&gt;
&lt;br /&gt;
11.     You can choose to name your new network drive with something meaningful&lt;br /&gt;
&lt;br /&gt;
11.	You should now see the folder mapped to File Explorer!&lt;br /&gt;
&lt;br /&gt;
[[File:Screenshot 2020-12-08 at 10.08.15.png |250px]]&lt;br /&gt;
  &lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== From a web browser ===&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!colspan=&amp;quot;6&amp;quot;|Davrods is an Apache WebDAV interface to iRODS&lt;br /&gt;
|-&lt;br /&gt;
|rowspan=&amp;quot;3&amp;quot;|[https://github.com/UtrechtUniversity/davrods Davrods]&lt;br /&gt;
|Projects&lt;br /&gt;
|https://snic-irods-webdav.pdc.kth.se:8443/snic.se/projects/&lt;br /&gt;
| To browse private data you'll need to authenticate with your username and password.&lt;br /&gt;
|rowspan=&amp;quot;3&amp;quot;|This interface is intended as '''simple directory index''' interface. It's purpose is to list, view, download, publish, share data. It is NOT intended to upload data.  &lt;br /&gt;
[[File:Swestore-iRODS simple webdav dir listing.png |center |thumb|350px]]&lt;br /&gt;
|-&lt;br /&gt;
|Home&lt;br /&gt;
|https://snic-irods-webdav.pdc.kth.se:8443/snic.se/home/&lt;br /&gt;
| To browse private data you'll need to authenticate with your username and password.&lt;br /&gt;
|-&lt;br /&gt;
|Public&lt;br /&gt;
|http://snic-irods-webdav.pdc.kth.se:8888/snic.se/home/public/&lt;br /&gt;
| This web interface is used to publish data with &amp;quot;world&amp;quot; and no authentication is required. 	&amp;lt;pre style=&amp;quot;color: red&amp;quot;&amp;gt;NOTE: different port 8888 &amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/irods-contrib/metalnx-web Metalnx]&lt;br /&gt;
| Login&lt;br /&gt;
| https://snic-irods-web.pdc.kth.se/emc-metalnx-web/login/&lt;br /&gt;
|To access SNIC iRODS Zone you'll need to authenticate with your username and password.&lt;br /&gt;
| Metalnx is a web application designed to work alongside iRODS. It is a graphical user interface and serves as a client that authenticates to an existing iRODS Zone.&lt;br /&gt;
[[File:Screenshot 2020-03-04 at 14.09.10.png  |center |thumb|350px]]&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
= Using Swestore iRODS at PDC = &lt;br /&gt;
&lt;br /&gt;
* [https://www.pdc.kth.se/support/documents/data_management/swestore.html PDC Support pages for Swestore (iRODS)]&lt;br /&gt;
* [https://www.pdc.kth.se/support/documents/data_management/file_transfer_swestore.html PDC Support pages about Swestore (iRODS) client on PDC transfer node]&lt;br /&gt;
&lt;br /&gt;
= Using Swestore iRODS at NSC =&lt;br /&gt;
&lt;br /&gt;
[https://snicdocs.nsc.liu.se/wiki/Swestore-iRODS-at-NSC Here you can read more about the NSC specific aspects]&lt;/div&gt;</summary>
		<author><name>Janos Nagy (NSC)</name></author>
		
	</entry>
	<entry>
		<id>http://docs.snic.se/w/index.php?title=Swestore-iRODS-at-NSC&amp;diff=7681</id>
		<title>Swestore-iRODS-at-NSC</title>
		<link rel="alternate" type="text/html" href="http://docs.snic.se/w/index.php?title=Swestore-iRODS-at-NSC&amp;diff=7681"/>
		<updated>2020-12-09T09:41:33Z</updated>

		<summary type="html">&lt;p&gt;Janos Nagy (NSC): /* Accessing iRODS from the compute cluster */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Swestore iRODS at NSC =&lt;br /&gt;
&lt;br /&gt;
iRODS is a distributed storage management system which enables the user to&lt;br /&gt;
control the access to his/her data via policies which are expressed as rules.&lt;br /&gt;
Swestore iRODS is hosted on servers at PDC and NSC. We are running version 4.2.6.&lt;br /&gt;
Basic information about how to store and access data had been described above.&lt;br /&gt;
Additional information about iRODS can be found at [http://www.irods.org the iRODS web site].&lt;br /&gt;
&lt;br /&gt;
== iRODS system at NSC ==&lt;br /&gt;
&lt;br /&gt;
At NSC we host a replica metadata server and two storage server nodes at the moment.&lt;br /&gt;
All data stored is replicated between PDC and NSC.&lt;br /&gt;
&lt;br /&gt;
== Accessing iRODS from the compute cluster ==&lt;br /&gt;
&lt;br /&gt;
Data stored in iRODS is accessible from &amp;lt;code&amp;gt;tetralith&amp;lt;/code&amp;gt;.&lt;br /&gt;
We have got the command line client installed on the cluster,&lt;br /&gt;
iCommands should work from the login node and also from the batch&lt;br /&gt;
nodes.&lt;br /&gt;
&lt;br /&gt;
You should have the client configuration files in place under&lt;br /&gt;
the &amp;lt;code&amp;gt;~/.irods&amp;lt;/code&amp;gt; directory as it has been described under&lt;br /&gt;
the introductory pages.&lt;br /&gt;
&lt;br /&gt;
Under your home directory you should create a directory called&lt;br /&gt;
&amp;lt;code&amp;gt;.irods&amp;lt;/code&amp;gt; which will contain the iRODS client configuration&lt;br /&gt;
file. That file is &amp;lt;code&amp;gt;irods_environment.json&amp;lt;/code&amp;gt;. It should&lt;br /&gt;
look like:&lt;br /&gt;
  {&lt;br /&gt;
      &amp;quot;irods_host&amp;quot;: &amp;quot;irods-login.swestore.se&amp;quot;,&lt;br /&gt;
      &amp;quot;irods_port&amp;quot;: 2432,&lt;br /&gt;
      &amp;quot;irods_default_resource&amp;quot;: &amp;quot;pdc-gpfs&amp;quot;,&lt;br /&gt;
      &amp;quot;irods_home&amp;quot;: &amp;quot;/snic.se/home/&amp;lt;YOUR_SNIC_USER_NAME&amp;gt;&amp;quot;,&lt;br /&gt;
      &amp;quot;irods_cwd&amp;quot;: &amp;quot;/snic.se/home/&amp;lt;YOUR_SNIC_USER_NAME&amp;gt;&amp;quot;,&lt;br /&gt;
      &amp;quot;irods_user_name&amp;quot;: &amp;quot;&amp;lt;YOUR_SNIC_USER_NAME&amp;gt;&amp;quot;,&lt;br /&gt;
      &amp;quot;irods_zone_name&amp;quot;: &amp;quot;snic.se&amp;quot;,&lt;br /&gt;
      &amp;quot;irods_client_server_negotiation&amp;quot;: &amp;quot;request_server_negotiation&amp;quot;,&lt;br /&gt;
      &amp;quot;irods_client_server_policy&amp;quot;: &amp;quot;CS_NEG_REFUSE&amp;quot;,&lt;br /&gt;
      &amp;quot;irods_encryption_key_size&amp;quot;: 32,&lt;br /&gt;
      &amp;quot;irods_encryption_salt_size&amp;quot;: 8,&lt;br /&gt;
      &amp;quot;irods_encryption_num_hash_rounds&amp;quot;: 16,&lt;br /&gt;
      &amp;quot;irods_encryption_algorithm&amp;quot;: &amp;quot;AES-256-CBC&amp;quot;,&lt;br /&gt;
      &amp;quot;irods_default_hash_scheme&amp;quot;: &amp;quot;SHA256&amp;quot;,&lt;br /&gt;
      &amp;quot;irods_match_hash_policy&amp;quot;: &amp;quot;compatible&amp;quot;,&lt;br /&gt;
      &amp;quot;irods_authentication_scheme&amp;quot;: &amp;quot;PAM&amp;quot; &lt;br /&gt;
 }&lt;br /&gt;
where the token &amp;lt;code&amp;gt;&amp;lt;YOUR_SNIC_USER_NAME&amp;gt;&amp;lt;/code&amp;gt; should be replaced&lt;br /&gt;
with your SNIC user name.&lt;br /&gt;
&lt;br /&gt;
Issue:&lt;br /&gt;
  module load irods-client/4.2.6&lt;br /&gt;
after which you should authenticate using &amp;lt;code&amp;gt;iinit&amp;lt;/code&amp;gt; and then the iCommands like&lt;br /&gt;
&amp;lt;code&amp;gt;iget&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;iput&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;ils&amp;lt;/code&amp;gt; should work as expected.&lt;br /&gt;
The &amp;lt;code&amp;gt;ihelp&amp;lt;/code&amp;gt; command will print a short description of the irods commands.&lt;br /&gt;
&lt;br /&gt;
First issue&lt;br /&gt;
  iinit&lt;br /&gt;
which will ask for your iRODS password. You can specify a longer time limit&lt;br /&gt;
for the session using the &amp;lt;code&amp;gt;--ttl&amp;lt;/code&amp;gt; option, &amp;lt;code&amp;gt;iinit -h --ttl&amp;lt;/code&amp;gt;&lt;br /&gt;
will print help using this. The default generally will suffice.&lt;br /&gt;
&lt;br /&gt;
Use&lt;br /&gt;
  ils&lt;br /&gt;
just to check if you can access your home directory. Please use the project&lt;br /&gt;
directory to store files, which will be a subdirectory under&lt;br /&gt;
&amp;lt;code&amp;gt;//snic.se/projects/&amp;lt;SNIC_PROJECT_NAME&amp;gt;&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
To transfer data from the cluster directory it is a good idea to use&lt;br /&gt;
&amp;lt;code&amp;gt;irsync&amp;lt;/code&amp;gt; like:&lt;br /&gt;
  irsync -v -r -K local_directory i:irods_directory&lt;br /&gt;
where&lt;br /&gt;
  -v for verbose.&lt;br /&gt;
  -r for recursive copy of the whole directory tree.&lt;br /&gt;
  -K to compute and check checksums. This involves higher CPU usage&lt;br /&gt;
     but gives confidence for the integrity of the data stored.&lt;br /&gt;
i.e.:&lt;br /&gt;
  irsync -r -K mydir i:/snic.se/projects/projectdir&lt;br /&gt;
If, for whatever reason the transfer had been interrupted the second&lt;br /&gt;
invocation of the command with the same arguments should pick up and&lt;br /&gt;
continue from that point.&lt;br /&gt;
&lt;br /&gt;
Detailed description of the command line client can be found at&lt;br /&gt;
[https://docs.irods.org/master/icommands/user/ documentation at the iRODS site].&lt;/div&gt;</summary>
		<author><name>Janos Nagy (NSC)</name></author>
		
	</entry>
	<entry>
		<id>http://docs.snic.se/w/index.php?title=Swestore-iRODS-at-NSC&amp;diff=7680</id>
		<title>Swestore-iRODS-at-NSC</title>
		<link rel="alternate" type="text/html" href="http://docs.snic.se/w/index.php?title=Swestore-iRODS-at-NSC&amp;diff=7680"/>
		<updated>2020-12-09T09:28:35Z</updated>

		<summary type="html">&lt;p&gt;Janos Nagy (NSC): &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Swestore iRODS at NSC =&lt;br /&gt;
&lt;br /&gt;
iRODS is a distributed storage management system which enables the user to&lt;br /&gt;
control the access to his/her data via policies which are expressed as rules.&lt;br /&gt;
Swestore iRODS is hosted on servers at PDC and NSC. We are running version 4.2.6.&lt;br /&gt;
Basic information about how to store and access data had been described above.&lt;br /&gt;
Additional information about iRODS can be found at [http://www.irods.org the iRODS web site].&lt;br /&gt;
&lt;br /&gt;
== iRODS system at NSC ==&lt;br /&gt;
&lt;br /&gt;
At NSC we host a replica metadata server and two storage server nodes at the moment.&lt;br /&gt;
All data stored is replicated between PDC and NSC.&lt;br /&gt;
&lt;br /&gt;
== Accessing iRODS from the compute cluster ==&lt;br /&gt;
&lt;br /&gt;
Data stored in iRODS is accessible from &amp;lt;code&amp;gt;tetralith&amp;lt;/code&amp;gt;.&lt;br /&gt;
We have got the command line client installed on the cluster,&lt;br /&gt;
iCommands should work from the login node and also from the batch&lt;br /&gt;
nodes.&lt;br /&gt;
&lt;br /&gt;
You should have the client configuration files in place under&lt;br /&gt;
the &amp;lt;code&amp;gt;.irods&amp;lt;/code&amp;gt; directory as it has been described under&lt;br /&gt;
the introductory pages.&lt;br /&gt;
&lt;br /&gt;
Under your home directory you should create a directory called&lt;br /&gt;
&amp;lt;code&amp;gt;.irods&amp;lt;/code&amp;gt; which contains the iRODS client configuration&lt;br /&gt;
file. That file is &amp;lt;code&amp;gt;irods_environment.json&amp;lt;/code&amp;gt;. It should&lt;br /&gt;
look like:&lt;br /&gt;
  {&lt;br /&gt;
      &amp;quot;irods_host&amp;quot;: &amp;quot;irods-login.swestore.se&amp;quot;,&lt;br /&gt;
      &amp;quot;irods_port&amp;quot;: 2432,&lt;br /&gt;
      &amp;quot;irods_default_resource&amp;quot;: &amp;quot;pdc-gpfs&amp;quot;,&lt;br /&gt;
      &amp;quot;irods_home&amp;quot;: &amp;quot;/snic.se/home/&amp;lt;YOUR_SNIC_USER_NAME&amp;gt;&amp;quot;,&lt;br /&gt;
      &amp;quot;irods_cwd&amp;quot;: &amp;quot;/snic.se/home/&amp;lt;YOUR_SNIC_USER_NAME&amp;gt;&amp;quot;,&lt;br /&gt;
      &amp;quot;irods_user_name&amp;quot;: &amp;quot;&amp;lt;YOUR_SNIC_USER_NAME&amp;gt;&amp;quot;,&lt;br /&gt;
      &amp;quot;irods_zone_name&amp;quot;: &amp;quot;snic.se&amp;quot;,&lt;br /&gt;
      &amp;quot;irods_client_server_negotiation&amp;quot;: &amp;quot;request_server_negotiation&amp;quot;,&lt;br /&gt;
      &amp;quot;irods_client_server_policy&amp;quot;: &amp;quot;CS_NEG_REFUSE&amp;quot;,&lt;br /&gt;
      &amp;quot;irods_encryption_key_size&amp;quot;: 32,&lt;br /&gt;
      &amp;quot;irods_encryption_salt_size&amp;quot;: 8,&lt;br /&gt;
      &amp;quot;irods_encryption_num_hash_rounds&amp;quot;: 16,&lt;br /&gt;
      &amp;quot;irods_encryption_algorithm&amp;quot;: &amp;quot;AES-256-CBC&amp;quot;,&lt;br /&gt;
      &amp;quot;irods_default_hash_scheme&amp;quot;: &amp;quot;SHA256&amp;quot;,&lt;br /&gt;
      &amp;quot;irods_match_hash_policy&amp;quot;: &amp;quot;compatible&amp;quot;,&lt;br /&gt;
      &amp;quot;irods_authentication_scheme&amp;quot;: &amp;quot;PAM&amp;quot; &lt;br /&gt;
 }&lt;br /&gt;
where the token &amp;lt;code&amp;gt;&amp;lt;YOUR_SNIC_USER_NAME&amp;gt;&amp;lt;/code&amp;gt; should be replaced&lt;br /&gt;
with your SNIC user name.&lt;br /&gt;
&lt;br /&gt;
Issue:&lt;br /&gt;
  module load irods-client/4.2.6&lt;br /&gt;
after which you should authenticate using &amp;lt;code&amp;gt;iinit&amp;lt;/code&amp;gt; and then the iCommands like&lt;br /&gt;
&amp;lt;code&amp;gt;iget&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;iput&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;ils&amp;lt;/code&amp;gt; should work as expected.&lt;br /&gt;
The &amp;lt;code&amp;gt;ihelp&amp;lt;/code&amp;gt; command will print a short description of the irods commands.&lt;br /&gt;
&lt;br /&gt;
First issue&lt;br /&gt;
  iinit&lt;br /&gt;
which will ask for your iRODS password. You can specify a longer time limit&lt;br /&gt;
for the session using the &amp;lt;code&amp;gt;--ttl&amp;lt;/code&amp;gt; option, &amp;lt;code&amp;gt;iinit -h --ttl&amp;lt;/code&amp;gt;&lt;br /&gt;
will print help using this. The default generally will suffice.&lt;br /&gt;
&lt;br /&gt;
Use&lt;br /&gt;
  ils&lt;br /&gt;
just to check if you can access your home directory. Please use the project&lt;br /&gt;
directory to store files, which will be a subdirectory under&lt;br /&gt;
&amp;lt;code&amp;gt;//snic.se/projects/&amp;lt;SNIC_PROJECT_NAME&amp;gt;&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
To transfer data from the cluster directory it is a good idea to use&lt;br /&gt;
&amp;lt;code&amp;gt;irsync&amp;lt;/code&amp;gt; like:&lt;br /&gt;
  irsync -r -K local_directory i:irods_directory&lt;br /&gt;
where&lt;br /&gt;
  -r for recursive copy of the whole directory tree&lt;br /&gt;
  -K to compute and check checksums&lt;br /&gt;
i.e.:&lt;br /&gt;
  irsync -r -K mydir i:/snic.se/projects/projectdir&lt;br /&gt;
If, for whatever reason the transfer had been interrupted the second&lt;br /&gt;
invocation of the command with the same arguments should pick up and&lt;br /&gt;
continue from that point.&lt;br /&gt;
&lt;br /&gt;
Detailed description of the command line client can be found at&lt;br /&gt;
[https://docs.irods.org/master/icommands/user/ documentation at the iRODS site].&lt;/div&gt;</summary>
		<author><name>Janos Nagy (NSC)</name></author>
		
	</entry>
	<entry>
		<id>http://docs.snic.se/w/index.php?title=Swestore-iRODS-at-NSC&amp;diff=7558</id>
		<title>Swestore-iRODS-at-NSC</title>
		<link rel="alternate" type="text/html" href="http://docs.snic.se/w/index.php?title=Swestore-iRODS-at-NSC&amp;diff=7558"/>
		<updated>2020-06-01T10:24:15Z</updated>

		<summary type="html">&lt;p&gt;Janos Nagy (NSC): /* Accessing iRODS from the compute cluster */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Swestore iRODS at NSC =&lt;br /&gt;
&lt;br /&gt;
iRODS is a distributed storage management system which enables the user to&lt;br /&gt;
control the access to his/her data via policies which are expressed as rules.&lt;br /&gt;
Swestore iRODS is hosted on servers at PDC and NSC. We are running version 4.2.6.&lt;br /&gt;
Basic information about how to store and access data had been described above.&lt;br /&gt;
Additional information about iRODS can be found at [http://www.irods.org the iRODS web site].&lt;br /&gt;
&lt;br /&gt;
== iRODS system at NSC ==&lt;br /&gt;
&lt;br /&gt;
At NSC we host a replica metadata server and two storage server nodes at the moment.&lt;br /&gt;
All data stored is replicated between PDC and NSC.&lt;br /&gt;
&lt;br /&gt;
== Accessing iRODS from the compute cluster ==&lt;br /&gt;
&lt;br /&gt;
Data stored in iRODS is accessible from &amp;lt;code&amp;gt;tetralith&amp;lt;/code&amp;gt;.&lt;br /&gt;
We have got the command line client installed on the cluster.&lt;br /&gt;
You should have the client configuration files in place under&lt;br /&gt;
the &amp;lt;code&amp;gt;.irods&amp;lt;/code&amp;gt; directory as it has been described under&lt;br /&gt;
the introductory pages.&lt;br /&gt;
Issue:&lt;br /&gt;
  module load irods-client/4.2.6&lt;br /&gt;
after which you should authenticate using &amp;lt;code&amp;gt;iinit&amp;lt;/code&amp;gt; and then the iCommands like&lt;br /&gt;
&amp;lt;code&amp;gt;iget&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;iput&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;ils&amp;lt;/code&amp;gt; should work as expected.&lt;br /&gt;
The &amp;lt;code&amp;gt;ihelp&amp;lt;/code&amp;gt; command will print a short description of the irods commands.&lt;br /&gt;
Detailed description of the command line client can be found at&lt;br /&gt;
[https://docs.irods.org/master/icommands/user/ documentation at the iRODS site].&lt;/div&gt;</summary>
		<author><name>Janos Nagy (NSC)</name></author>
		
	</entry>
	<entry>
		<id>http://docs.snic.se/w/index.php?title=Swestore-iRODS-at-NSC&amp;diff=7557</id>
		<title>Swestore-iRODS-at-NSC</title>
		<link rel="alternate" type="text/html" href="http://docs.snic.se/w/index.php?title=Swestore-iRODS-at-NSC&amp;diff=7557"/>
		<updated>2020-06-01T10:22:32Z</updated>

		<summary type="html">&lt;p&gt;Janos Nagy (NSC): &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Swestore iRODS at NSC =&lt;br /&gt;
&lt;br /&gt;
iRODS is a distributed storage management system which enables the user to&lt;br /&gt;
control the access to his/her data via policies which are expressed as rules.&lt;br /&gt;
Swestore iRODS is hosted on servers at PDC and NSC. We are running version 4.2.6.&lt;br /&gt;
Basic information about how to store and access data had been described above.&lt;br /&gt;
Additional information about iRODS can be found at [http://www.irods.org the iRODS web site].&lt;br /&gt;
&lt;br /&gt;
== iRODS system at NSC ==&lt;br /&gt;
&lt;br /&gt;
At NSC we host a replica metadata server and two storage server nodes at the moment.&lt;br /&gt;
All data stored is replicated between PDC and NSC.&lt;br /&gt;
&lt;br /&gt;
== Accessing iRODS from the compute cluster ==&lt;br /&gt;
&lt;br /&gt;
Data stored in iRODS is accessible from &amp;lt;code&amp;gt;tetralith&amp;lt;/code&amp;gt;.&lt;br /&gt;
We have got the command line client installed on the cluster.&lt;br /&gt;
You should have the client configuration files in place under&lt;br /&gt;
the &amp;lt;code&amp;gt;.irods&amp;lt;/code&amp;gt; directory as it has been described under&lt;br /&gt;
the introductory pages.&lt;br /&gt;
Issue:&lt;br /&gt;
  module load irods-client/4.2.6&lt;br /&gt;
after which you should authenticate using &amp;lt;code&amp;gt;iinit&amp;lt;/code&amp;gt; and then the iCommands like&lt;br /&gt;
&amp;lt;code&amp;gt;iget&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;iput&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;ils&amp;lt;/code&amp;gt; should work as expected.&lt;br /&gt;
The &amp;lt;code&amp;gt;ihelp&amp;lt;/code&amp;gt; command will print a short description of the irods commands.&lt;br /&gt;
Detailed description of the command line client can be found at&lt;br /&gt;
[https://docs.irods.org/master/icommands/user/ documentation at iRODS site].&lt;/div&gt;</summary>
		<author><name>Janos Nagy (NSC)</name></author>
		
	</entry>
	<entry>
		<id>http://docs.snic.se/w/index.php?title=Swestore-iRODS-at-NSC&amp;diff=7556</id>
		<title>Swestore-iRODS-at-NSC</title>
		<link rel="alternate" type="text/html" href="http://docs.snic.se/w/index.php?title=Swestore-iRODS-at-NSC&amp;diff=7556"/>
		<updated>2020-06-01T10:03:07Z</updated>

		<summary type="html">&lt;p&gt;Janos Nagy (NSC): /* Swestore iRODS at NSC */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Swestore iRODS at NSC =&lt;br /&gt;
&lt;br /&gt;
iRODS is a distributed storage management system which enables the user to&lt;br /&gt;
control the access to his/her data via policies which are expressed as rules.&lt;br /&gt;
Swestore iRODS is hosted on servers at PDC and NSC.&lt;br /&gt;
Basic information about how to store and access data had been described above.&lt;br /&gt;
Additional information about iRODS can be found at [http://www.irods.org the iRODS web site].&lt;br /&gt;
&lt;br /&gt;
== iRODS system at NSC ==&lt;br /&gt;
&lt;br /&gt;
At NSC we host a replica metadata server and two storage server nodes at the moment.&lt;br /&gt;
All data stored is replicated between PDC and NSC.&lt;br /&gt;
&lt;br /&gt;
== Accessing iRODS from the compute cluster ==&lt;br /&gt;
&lt;br /&gt;
Data stored in iRODS is accessible from &amp;lt;code&amp;gt;tetralith&amp;lt;/code&amp;gt;.&lt;br /&gt;
We have got the command line client installed on the cluster.&lt;br /&gt;
You should have the client configuration files in place under&lt;br /&gt;
the &amp;lt;code&amp;gt;.irods&amp;lt;/code&amp;gt; directory as it has been described under&lt;br /&gt;
the introductory pages.&lt;br /&gt;
Issue:&lt;br /&gt;
  module load irods-client/4.2.6&lt;br /&gt;
after which you should authenticate using &amp;lt;code&amp;gt;iinit&amp;lt;/code&amp;gt; and then the iCommands like&lt;br /&gt;
&amp;lt;code&amp;gt;iget&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;iput&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;ils&amp;lt;/code&amp;gt; should work as expected.&lt;/div&gt;</summary>
		<author><name>Janos Nagy (NSC)</name></author>
		
	</entry>
	<entry>
		<id>http://docs.snic.se/w/index.php?title=Swestore-iRODS-at-NSC&amp;diff=7555</id>
		<title>Swestore-iRODS-at-NSC</title>
		<link rel="alternate" type="text/html" href="http://docs.snic.se/w/index.php?title=Swestore-iRODS-at-NSC&amp;diff=7555"/>
		<updated>2020-06-01T10:00:50Z</updated>

		<summary type="html">&lt;p&gt;Janos Nagy (NSC): /* Accessing iRODS from the compute cluster */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Swestore iRODS at NSC =&lt;br /&gt;
&lt;br /&gt;
iRODS is a distributed storage management system which enables the user to&lt;br /&gt;
control the access to his/her data via policies which are expressed as rules.&lt;br /&gt;
Basic information about how to store and access data had been described above.&lt;br /&gt;
Additional information about iRODS can be found at [http://www.irods.org the iRODS web site].&lt;br /&gt;
&lt;br /&gt;
== iRODS system at NSC ==&lt;br /&gt;
&lt;br /&gt;
At NSC we host a replica metadata server and two storage server nodes at the moment.&lt;br /&gt;
All data stored is replicated between PDC and NSC.&lt;br /&gt;
&lt;br /&gt;
== Accessing iRODS from the compute cluster ==&lt;br /&gt;
&lt;br /&gt;
Data stored in iRODS is accessible from &amp;lt;code&amp;gt;tetralith&amp;lt;/code&amp;gt;.&lt;br /&gt;
We have got the command line client installed on the cluster.&lt;br /&gt;
You should have the client configuration files in place under&lt;br /&gt;
the &amp;lt;code&amp;gt;.irods&amp;lt;/code&amp;gt; directory as it has been described under&lt;br /&gt;
the introductory pages.&lt;br /&gt;
Issue:&lt;br /&gt;
  module load irods-client/4.2.6&lt;br /&gt;
after which you should authenticate using &amp;lt;code&amp;gt;iinit&amp;lt;/code&amp;gt; and then the iCommands like&lt;br /&gt;
&amp;lt;code&amp;gt;iget&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;iput&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;ils&amp;lt;/code&amp;gt; should work as expected.&lt;/div&gt;</summary>
		<author><name>Janos Nagy (NSC)</name></author>
		
	</entry>
	<entry>
		<id>http://docs.snic.se/w/index.php?title=Swestore-iRODS-at-NSC&amp;diff=7554</id>
		<title>Swestore-iRODS-at-NSC</title>
		<link rel="alternate" type="text/html" href="http://docs.snic.se/w/index.php?title=Swestore-iRODS-at-NSC&amp;diff=7554"/>
		<updated>2020-06-01T09:59:58Z</updated>

		<summary type="html">&lt;p&gt;Janos Nagy (NSC): /* Accessing iRODS from the compute cluster */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Swestore iRODS at NSC =&lt;br /&gt;
&lt;br /&gt;
iRODS is a distributed storage management system which enables the user to&lt;br /&gt;
control the access to his/her data via policies which are expressed as rules.&lt;br /&gt;
Basic information about how to store and access data had been described above.&lt;br /&gt;
Additional information about iRODS can be found at [http://www.irods.org the iRODS web site].&lt;br /&gt;
&lt;br /&gt;
== iRODS system at NSC ==&lt;br /&gt;
&lt;br /&gt;
At NSC we host a replica metadata server and two storage server nodes at the moment.&lt;br /&gt;
All data stored is replicated between PDC and NSC.&lt;br /&gt;
&lt;br /&gt;
== Accessing iRODS from the compute cluster ==&lt;br /&gt;
&lt;br /&gt;
Data stored in iRODS is accessible from tetralith.&lt;br /&gt;
We have got the command line client installed on the cluster.&lt;br /&gt;
You should have the client configuration files in place under&lt;br /&gt;
the &amp;lt;code&amp;gt;.irods&amp;lt;/code&amp;gt; directory as it has been described under&lt;br /&gt;
the introductory pages.&lt;br /&gt;
Issue:&lt;br /&gt;
  module load irods-client/4.2.6&lt;br /&gt;
after which you authenticate using &amp;lt;code&amp;gt;iinit&amp;lt;/code&amp;gt; and then the iCommands like&lt;br /&gt;
&amp;lt;code&amp;gt;iget&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;iput&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;ils&amp;lt;/code&amp;gt; should work as expected.&lt;/div&gt;</summary>
		<author><name>Janos Nagy (NSC)</name></author>
		
	</entry>
	<entry>
		<id>http://docs.snic.se/w/index.php?title=Swestore-iRODS-at-NSC&amp;diff=7553</id>
		<title>Swestore-iRODS-at-NSC</title>
		<link rel="alternate" type="text/html" href="http://docs.snic.se/w/index.php?title=Swestore-iRODS-at-NSC&amp;diff=7553"/>
		<updated>2020-06-01T09:58:29Z</updated>

		<summary type="html">&lt;p&gt;Janos Nagy (NSC): &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Swestore iRODS at NSC =&lt;br /&gt;
&lt;br /&gt;
iRODS is a distributed storage management system which enables the user to&lt;br /&gt;
control the access to his/her data via policies which are expressed as rules.&lt;br /&gt;
Basic information about how to store and access data had been described above.&lt;br /&gt;
Additional information about iRODS can be found at [http://www.irods.org the iRODS web site].&lt;br /&gt;
&lt;br /&gt;
== iRODS system at NSC ==&lt;br /&gt;
&lt;br /&gt;
At NSC we host a replica metadata server and two storage server nodes at the moment.&lt;br /&gt;
All data stored is replicated between PDC and NSC.&lt;br /&gt;
&lt;br /&gt;
== Accessing iRODS from the compute cluster ==&lt;br /&gt;
&lt;br /&gt;
Data stored in iRODS can be access from tetralith.&lt;br /&gt;
We have got the command line client installed on the cluster.&lt;br /&gt;
You should have the client configuration files in place under&lt;br /&gt;
the &amp;lt;code&amp;gt;.irods&amp;lt;/code&amp;gt; directory as it has been described under&lt;br /&gt;
the introductory pages.&lt;br /&gt;
Issue:&lt;br /&gt;
  module load irods-client/4.2.6&lt;br /&gt;
after which you authenticate using &amp;lt;code&amp;gt;iinit&amp;lt;/code&amp;gt; and then the iCommands like&lt;br /&gt;
&amp;lt;code&amp;gt;iget&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;iput&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;ils&amp;lt;/code&amp;gt; should work as expected.&lt;/div&gt;</summary>
		<author><name>Janos Nagy (NSC)</name></author>
		
	</entry>
	<entry>
		<id>http://docs.snic.se/w/index.php?title=Swestore-iRODS&amp;diff=7552</id>
		<title>Swestore-iRODS</title>
		<link rel="alternate" type="text/html" href="http://docs.snic.se/w/index.php?title=Swestore-iRODS&amp;diff=7552"/>
		<updated>2020-06-01T09:31:21Z</updated>

		<summary type="html">&lt;p&gt;Janos Nagy (NSC): /* Additional information about using iRODS at NSC */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Swestore iRODS =&lt;br /&gt;
Swestore iRODS is distributed across two SNIC centres NSC and PDC. Data is stored in two copies with each copy at a different SNIC centre. This enables the system to cope with a multitude of issues ranging from a simple crash of a storage element to losing an entire site while still providing access to the stored data.&lt;br /&gt;
&lt;br /&gt;
= Using Swestore iRODS =&lt;br /&gt;
&lt;br /&gt;
== Basic information ==&lt;br /&gt;
&lt;br /&gt;
For basic information on how to apply for storage or how to become a member of an existing project, please check the main [[Swestore]] page.&lt;br /&gt;
&lt;br /&gt;
== Download and upload data== &lt;br /&gt;
&lt;br /&gt;
=== From the command line ===&lt;br /&gt;
There are several command line tools capable of using the protocols provided by Swestore iRODS. For interactive usage on SNIC clusters we recommend using the iCommands which should be installed on all SNIC resources. There are too many commands to document fully here.&lt;br /&gt;
&lt;br /&gt;
* Please check full and updated documentation at iRODS official [https://docs.irods.org/master/icommands/user/ Documentation].&lt;br /&gt;
* For the command line client, iRODS iCommands, please check iRODS [https://irods.org/download/ Download] page.&lt;br /&gt;
** Please check &amp;quot;Binary Distributions&amp;quot; and instructions for configuring your package manager to include irods APT, YUM or ZYPPER repository at [https://packages.irods.org Repository of iRODS packages ].&lt;br /&gt;
*** You can check here an example of [[iRODS iCommands installation on CentOS 7]] from repository.&lt;br /&gt;
*** You can check here an example of [[iRODS iCommands installation on Ubuntu 16.04]] from repository.&lt;br /&gt;
&lt;br /&gt;
* Configuration of the icommands requires a file called irods_environment.json to be placed in a subdirectory .irods/ of your home directory (e.g. ~/.irods/irods_environment.json).&lt;br /&gt;
You must edit this with a text editor (not MS word, but notepad for Windows, textEdit for Mac or any Unix editor) and put your SNIC username in the place for &amp;lt;YOUR_SNIC_USER_NAME&amp;gt;.:&lt;br /&gt;
&lt;br /&gt;
 {&lt;br /&gt;
   &amp;quot;irods_host&amp;quot;: &amp;quot;irods-login.swestore.se&amp;quot;,&lt;br /&gt;
   &amp;quot;irods_port&amp;quot;: 2432,&lt;br /&gt;
   &amp;quot;irods_default_resource&amp;quot;: &amp;quot;pdc-gpfs&amp;quot;,&lt;br /&gt;
   &amp;quot;irods_home&amp;quot;: &amp;quot;/snic.se/home/&amp;lt;YOUR_SNIC_USER_NAME&amp;gt;&amp;quot;,&lt;br /&gt;
   &amp;quot;irods_cwd&amp;quot;: &amp;quot;/snic.se/home/&amp;lt;YOUR_SNIC_USER_NAME&amp;gt;&amp;quot;,&lt;br /&gt;
   &amp;quot;irods_user_name&amp;quot;: &amp;quot;&amp;lt;YOUR_SNIC_USER_NAME&amp;gt;&amp;quot;,&lt;br /&gt;
   &amp;quot;irods_zone_name&amp;quot;: &amp;quot;snic.se&amp;quot;,&lt;br /&gt;
   &amp;quot;irods_client_server_negotiation&amp;quot;: &amp;quot;request_server_negotiation&amp;quot;,&lt;br /&gt;
   &amp;quot;irods_client_server_policy&amp;quot;: &amp;quot;CS_NEG_REFUSE&amp;quot;,&lt;br /&gt;
   &amp;quot;irods_encryption_key_size&amp;quot;: 32,&lt;br /&gt;
   &amp;quot;irods_encryption_salt_size&amp;quot;: 8,&lt;br /&gt;
   &amp;quot;irods_encryption_num_hash_rounds&amp;quot;: 16,&lt;br /&gt;
   &amp;quot;irods_encryption_algorithm&amp;quot;: &amp;quot;AES-256-CBC&amp;quot;,&lt;br /&gt;
   &amp;quot;irods_default_hash_scheme&amp;quot;: &amp;quot;SHA256&amp;quot;,&lt;br /&gt;
   &amp;quot;irods_match_hash_policy&amp;quot;: &amp;quot;compatible&amp;quot;,&lt;br /&gt;
   &amp;quot;irods_authentication_scheme&amp;quot;: &amp;quot;PAM&amp;quot; &lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
=== From GUI client ===&lt;br /&gt;
Graphical User Interface (GUI) clients are known to work on some operating systems.&lt;br /&gt;
&lt;br /&gt;
==== Access using WebDAV (map a network drive) ====&lt;br /&gt;
WebDAV endpoint for Windows 10, Linux and OS X  https://snic-irods-webdav.pdc.kth.se:8443/snic.se/&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!colspan=&amp;quot;6&amp;quot;|Accessing Swestore-iRODS via WebDAV&lt;br /&gt;
|-&lt;br /&gt;
|rowspan=&amp;quot;2&amp;quot;|[https://en.wikipedia.org/wiki/WebDAV WebDAV]&lt;br /&gt;
|rowspan=&amp;quot;2&amp;quot;|Mac OS X&lt;br /&gt;
|rowspan=&amp;quot;2&amp;quot;|https://snic-irods-webdav.pdc.kth.se:8443/snic.se/&lt;br /&gt;
| This is OS standard WebDAV connection · &amp;quot;Connect to server&amp;quot; function in Finder :&lt;br /&gt;
To access Swestore iRODS via WebDAV you'll need to authenticate with your username and password.&lt;br /&gt;
1.Click the 'Finder' icon &lt;br /&gt;
[[File:MacOSX Finder.png |none|250px]]&lt;br /&gt;
2.In 'Finder', locate the menu bar at the top and then navigate to Go &amp;gt; Connect to Server.&lt;br /&gt;
[[File:ConnectToServer.png |none|250px]]&lt;br /&gt;
3.In the 'Connect to Server' dialog box, enter the URL to Swestore iRODS WebDAV endpoint, in the 'Server Address' field.&lt;br /&gt;
&lt;br /&gt;
4.Click Connect.&lt;br /&gt;
&lt;br /&gt;
Once the connection is made, you are prompted for your WebDAV username/password.&lt;br /&gt;
&lt;br /&gt;
Once you’ve connected, the WebDAV directory is mounted in your 'Finder' and on your desktop.&lt;br /&gt;
&lt;br /&gt;
You can now start adding, editing, deleting files in this directory from the comfort of your computer.&lt;br /&gt;
&lt;br /&gt;
[[File:Mounted webdav GUI.png |none|350px]]&lt;br /&gt;
&lt;br /&gt;
|rowspan=&amp;quot;2&amp;quot;| WebDAV is a method for remotely managing files over the internet. With WebDAV, you can access files stored in Swestore iRODS project by using the same interface as you do with your local files. &lt;br /&gt;
Once you connect via WebDAV, and you authenticate, you can view and manage the folders and files stored in your project area. You can perform same actions – drag and drop, rename, delete – that you would on files and folders stored on your own computer.&lt;br /&gt;
  &lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
| This is mount with &amp;quot;mount_webdav&amp;quot; command at terminal&lt;br /&gt;
If you prefer to access your Swestore iRODS files via command line, you can mount the WebDAV-enabled server directory via '''mount_webdav''' command&lt;br /&gt;
[[File:MacOSX Terminal WebDAV mount.png |none|350px]]&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== From a web browser ===&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!colspan=&amp;quot;6&amp;quot;|Davrods is an Apache WebDAV interface to iRODS&lt;br /&gt;
|-&lt;br /&gt;
|rowspan=&amp;quot;3&amp;quot;|[https://github.com/UtrechtUniversity/davrods Davrods]&lt;br /&gt;
|Projects&lt;br /&gt;
|https://snic-irods-webdav.pdc.kth.se:8443/snic.se/projects/&lt;br /&gt;
| To browse private data you'll need to authenticate with your username and password.&lt;br /&gt;
|rowspan=&amp;quot;3&amp;quot;|This interface is intended as '''simple directory index''' interface. It's purpose is to list, view, download, publish, share data. It is NOT intended to upload data.  &lt;br /&gt;
[[File:Swestore-iRODS simple webdav dir listing.png |center |thumb|350px]]&lt;br /&gt;
|-&lt;br /&gt;
|Home&lt;br /&gt;
|https://snic-irods-webdav.pdc.kth.se:8443/snic.se/home/&lt;br /&gt;
| To browse private data you'll need to authenticate with your username and password.&lt;br /&gt;
|-&lt;br /&gt;
|Public&lt;br /&gt;
|http://snic-irods-webdav.pdc.kth.se:8888/snic.se/home/public/&lt;br /&gt;
| This web interface is used to publish data with &amp;quot;world&amp;quot; and no authentication is required. 	&amp;lt;pre style=&amp;quot;color: red&amp;quot;&amp;gt;NOTE: different port 8888 &amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/irods-contrib/metalnx-web Metalnx]&lt;br /&gt;
| Login&lt;br /&gt;
| https://snic-irods-web.pdc.kth.se/emc-metalnx-web/login/&lt;br /&gt;
|To access SNIC iRODS Zone you'll need to authenticate with your username and password.&lt;br /&gt;
| Metalnx is a web application designed to work alongside iRODS. It is a graphical user interface and serves as a client that authenticates to an existing iRODS Zone.&lt;br /&gt;
[[File:Screenshot 2020-03-04 at 14.09.10.png  |center |thumb|350px]]&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
= Using Swestore iRODS at PDC* = &lt;br /&gt;
 * PDC Center for High Performance Computing at the KTH Royal Institute of Technology&lt;br /&gt;
&lt;br /&gt;
* [https://www.pdc.kth.se/support/documents/data_management/swestore.html PDC Support pages for Swestore (iRODS)]&lt;br /&gt;
* [https://www.pdc.kth.se/support/documents/data_management/file_transfer_swestore.html PDC Support pages about Swestore (iRODS) client on PDC transfer node]&lt;br /&gt;
&lt;br /&gt;
= Additional information about using iRODS at NSC =&lt;br /&gt;
&lt;br /&gt;
[https://snicdocs.nsc.liu.se/wiki/Swestore-iRODS-at-NSC Here you can read more about the NSC specific aspects]&lt;/div&gt;</summary>
		<author><name>Janos Nagy (NSC)</name></author>
		
	</entry>
	<entry>
		<id>http://docs.snic.se/w/index.php?title=Swestore-iRODS-at-NSC&amp;diff=7551</id>
		<title>Swestore-iRODS-at-NSC</title>
		<link rel="alternate" type="text/html" href="http://docs.snic.se/w/index.php?title=Swestore-iRODS-at-NSC&amp;diff=7551"/>
		<updated>2020-06-01T09:28:39Z</updated>

		<summary type="html">&lt;p&gt;Janos Nagy (NSC): Created page with &amp;quot; = Swestore IRODS at NSC =&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
= Swestore IRODS at NSC =&lt;/div&gt;</summary>
		<author><name>Janos Nagy (NSC)</name></author>
		
	</entry>
	<entry>
		<id>http://docs.snic.se/w/index.php?title=Swestore-iRODS&amp;diff=7550</id>
		<title>Swestore-iRODS</title>
		<link rel="alternate" type="text/html" href="http://docs.snic.se/w/index.php?title=Swestore-iRODS&amp;diff=7550"/>
		<updated>2020-06-01T09:27:12Z</updated>

		<summary type="html">&lt;p&gt;Janos Nagy (NSC): /* Additional information about using iRODS at NSC */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Swestore iRODS =&lt;br /&gt;
Swestore iRODS is distributed across two SNIC centres NSC and PDC. Data is stored in two copies with each copy at a different SNIC centre. This enables the system to cope with a multitude of issues ranging from a simple crash of a storage element to losing an entire site while still providing access to the stored data.&lt;br /&gt;
&lt;br /&gt;
= Using Swestore iRODS =&lt;br /&gt;
&lt;br /&gt;
== Basic information ==&lt;br /&gt;
&lt;br /&gt;
For basic information on how to apply for storage or how to become a member of an existing project, please check the main [[Swestore]] page.&lt;br /&gt;
&lt;br /&gt;
== Download and upload data== &lt;br /&gt;
&lt;br /&gt;
=== From the command line ===&lt;br /&gt;
There are several command line tools capable of using the protocols provided by Swestore iRODS. For interactive usage on SNIC clusters we recommend using the iCommands which should be installed on all SNIC resources. There are too many commands to document fully here.&lt;br /&gt;
&lt;br /&gt;
* Please check full and updated documentation at iRODS official [https://docs.irods.org/master/icommands/user/ Documentation].&lt;br /&gt;
* For the command line client, iRODS iCommands, please check iRODS [https://irods.org/download/ Download] page.&lt;br /&gt;
** Please check &amp;quot;Binary Distributions&amp;quot; and instructions for configuring your package manager to include irods APT, YUM or ZYPPER repository at [https://packages.irods.org Repository of iRODS packages ].&lt;br /&gt;
*** You can check here an example of [[iRODS iCommands installation on CentOS 7]] from repository.&lt;br /&gt;
*** You can check here an example of [[iRODS iCommands installation on Ubuntu 16.04]] from repository.&lt;br /&gt;
&lt;br /&gt;
* Configuration of the icommands requires a file called irods_environment.json to be placed in a subdirectory .irods/ of your home directory (e.g. ~/.irods/irods_environment.json).&lt;br /&gt;
You must edit this with a text editor (not MS word, but notepad for Windows, textEdit for Mac or any Unix editor) and put your SNIC username in the place for &amp;lt;YOUR_SNIC_USER_NAME&amp;gt;.:&lt;br /&gt;
&lt;br /&gt;
 {&lt;br /&gt;
   &amp;quot;irods_host&amp;quot;: &amp;quot;irods-login.swestore.se&amp;quot;,&lt;br /&gt;
   &amp;quot;irods_port&amp;quot;: 2432,&lt;br /&gt;
   &amp;quot;irods_default_resource&amp;quot;: &amp;quot;pdc-gpfs&amp;quot;,&lt;br /&gt;
   &amp;quot;irods_home&amp;quot;: &amp;quot;/snic.se/home/&amp;lt;YOUR_SNIC_USER_NAME&amp;gt;&amp;quot;,&lt;br /&gt;
   &amp;quot;irods_cwd&amp;quot;: &amp;quot;/snic.se/home/&amp;lt;YOUR_SNIC_USER_NAME&amp;gt;&amp;quot;,&lt;br /&gt;
   &amp;quot;irods_user_name&amp;quot;: &amp;quot;&amp;lt;YOUR_SNIC_USER_NAME&amp;gt;&amp;quot;,&lt;br /&gt;
   &amp;quot;irods_zone_name&amp;quot;: &amp;quot;snic.se&amp;quot;,&lt;br /&gt;
   &amp;quot;irods_client_server_negotiation&amp;quot;: &amp;quot;request_server_negotiation&amp;quot;,&lt;br /&gt;
   &amp;quot;irods_client_server_policy&amp;quot;: &amp;quot;CS_NEG_REFUSE&amp;quot;,&lt;br /&gt;
   &amp;quot;irods_encryption_key_size&amp;quot;: 32,&lt;br /&gt;
   &amp;quot;irods_encryption_salt_size&amp;quot;: 8,&lt;br /&gt;
   &amp;quot;irods_encryption_num_hash_rounds&amp;quot;: 16,&lt;br /&gt;
   &amp;quot;irods_encryption_algorithm&amp;quot;: &amp;quot;AES-256-CBC&amp;quot;,&lt;br /&gt;
   &amp;quot;irods_default_hash_scheme&amp;quot;: &amp;quot;SHA256&amp;quot;,&lt;br /&gt;
   &amp;quot;irods_match_hash_policy&amp;quot;: &amp;quot;compatible&amp;quot;,&lt;br /&gt;
   &amp;quot;irods_authentication_scheme&amp;quot;: &amp;quot;PAM&amp;quot; &lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
=== From GUI client ===&lt;br /&gt;
Graphical User Interface (GUI) clients are known to work on some operating systems.&lt;br /&gt;
&lt;br /&gt;
==== Access using WebDAV (map a network drive) ====&lt;br /&gt;
WebDAV endpoint for Windows 10, Linux and OS X  https://snic-irods-webdav.pdc.kth.se:8443/snic.se/&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!colspan=&amp;quot;6&amp;quot;|Accessing Swestore-iRODS via WebDAV&lt;br /&gt;
|-&lt;br /&gt;
|rowspan=&amp;quot;2&amp;quot;|[https://en.wikipedia.org/wiki/WebDAV WebDAV]&lt;br /&gt;
|rowspan=&amp;quot;2&amp;quot;|Mac OS X&lt;br /&gt;
|rowspan=&amp;quot;2&amp;quot;|https://snic-irods-webdav.pdc.kth.se:8443/snic.se/&lt;br /&gt;
| This is OS standard WebDAV connection · &amp;quot;Connect to server&amp;quot; function in Finder :&lt;br /&gt;
To access Swestore iRODS via WebDAV you'll need to authenticate with your username and password.&lt;br /&gt;
1.Click the 'Finder' icon &lt;br /&gt;
[[File:MacOSX Finder.png |none|250px]]&lt;br /&gt;
2.In 'Finder', locate the menu bar at the top and then navigate to Go &amp;gt; Connect to Server.&lt;br /&gt;
[[File:ConnectToServer.png |none|250px]]&lt;br /&gt;
3.In the 'Connect to Server' dialog box, enter the URL to Swestore iRODS WebDAV endpoint, in the 'Server Address' field.&lt;br /&gt;
&lt;br /&gt;
4.Click Connect.&lt;br /&gt;
&lt;br /&gt;
Once the connection is made, you are prompted for your WebDAV username/password.&lt;br /&gt;
&lt;br /&gt;
Once you’ve connected, the WebDAV directory is mounted in your 'Finder' and on your desktop.&lt;br /&gt;
&lt;br /&gt;
You can now start adding, editing, deleting files in this directory from the comfort of your computer.&lt;br /&gt;
&lt;br /&gt;
[[File:Mounted webdav GUI.png |none|350px]]&lt;br /&gt;
&lt;br /&gt;
|rowspan=&amp;quot;2&amp;quot;| WebDAV is a method for remotely managing files over the internet. With WebDAV, you can access files stored in Swestore iRODS project by using the same interface as you do with your local files. &lt;br /&gt;
Once you connect via WebDAV, and you authenticate, you can view and manage the folders and files stored in your project area. You can perform same actions – drag and drop, rename, delete – that you would on files and folders stored on your own computer.&lt;br /&gt;
  &lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
| This is mount with &amp;quot;mount_webdav&amp;quot; command at terminal&lt;br /&gt;
If you prefer to access your Swestore iRODS files via command line, you can mount the WebDAV-enabled server directory via '''mount_webdav''' command&lt;br /&gt;
[[File:MacOSX Terminal WebDAV mount.png |none|350px]]&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== From a web browser ===&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!colspan=&amp;quot;6&amp;quot;|Davrods is an Apache WebDAV interface to iRODS&lt;br /&gt;
|-&lt;br /&gt;
|rowspan=&amp;quot;3&amp;quot;|[https://github.com/UtrechtUniversity/davrods Davrods]&lt;br /&gt;
|Projects&lt;br /&gt;
|https://snic-irods-webdav.pdc.kth.se:8443/snic.se/projects/&lt;br /&gt;
| To browse private data you'll need to authenticate with your username and password.&lt;br /&gt;
|rowspan=&amp;quot;3&amp;quot;|This interface is intended as '''simple directory index''' interface. It's purpose is to list, view, download, publish, share data. It is NOT intended to upload data.  &lt;br /&gt;
[[File:Swestore-iRODS simple webdav dir listing.png |center |thumb|350px]]&lt;br /&gt;
|-&lt;br /&gt;
|Home&lt;br /&gt;
|https://snic-irods-webdav.pdc.kth.se:8443/snic.se/home/&lt;br /&gt;
| To browse private data you'll need to authenticate with your username and password.&lt;br /&gt;
|-&lt;br /&gt;
|Public&lt;br /&gt;
|http://snic-irods-webdav.pdc.kth.se:8888/snic.se/home/public/&lt;br /&gt;
| This web interface is used to publish data with &amp;quot;world&amp;quot; and no authentication is required. 	&amp;lt;pre style=&amp;quot;color: red&amp;quot;&amp;gt;NOTE: different port 8888 &amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/irods-contrib/metalnx-web Metalnx]&lt;br /&gt;
| Login&lt;br /&gt;
| https://snic-irods-web.pdc.kth.se/emc-metalnx-web/login/&lt;br /&gt;
|To access SNIC iRODS Zone you'll need to authenticate with your username and password.&lt;br /&gt;
| Metalnx is a web application designed to work alongside iRODS. It is a graphical user interface and serves as a client that authenticates to an existing iRODS Zone.&lt;br /&gt;
[[File:Screenshot 2020-03-04 at 14.09.10.png  |center |thumb|350px]]&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
= Using Swestore iRODS at PDC* = &lt;br /&gt;
 * PDC Center for High Performance Computing at the KTH Royal Institute of Technology&lt;br /&gt;
&lt;br /&gt;
* [https://www.pdc.kth.se/support/documents/data_management/swestore.html PDC Support pages for Swestore (iRODS)]&lt;br /&gt;
* [https://www.pdc.kth.se/support/documents/data_management/file_transfer_swestore.html PDC Support pages about Swestore (iRODS) client on PDC transfer node]&lt;br /&gt;
&lt;br /&gt;
= Additional information about using iRODS at NSC =&lt;br /&gt;
&lt;br /&gt;
[https://snicdocs.nsc.liu.se/wiki/Swestore-iRODS-at-NSC]&lt;/div&gt;</summary>
		<author><name>Janos Nagy (NSC)</name></author>
		
	</entry>
	<entry>
		<id>http://docs.snic.se/w/index.php?title=Swestore-iRODS&amp;diff=7549</id>
		<title>Swestore-iRODS</title>
		<link rel="alternate" type="text/html" href="http://docs.snic.se/w/index.php?title=Swestore-iRODS&amp;diff=7549"/>
		<updated>2020-06-01T09:23:39Z</updated>

		<summary type="html">&lt;p&gt;Janos Nagy (NSC): &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Swestore iRODS =&lt;br /&gt;
Swestore iRODS is distributed across two SNIC centres NSC and PDC. Data is stored in two copies with each copy at a different SNIC centre. This enables the system to cope with a multitude of issues ranging from a simple crash of a storage element to losing an entire site while still providing access to the stored data.&lt;br /&gt;
&lt;br /&gt;
= Using Swestore iRODS =&lt;br /&gt;
&lt;br /&gt;
== Basic information ==&lt;br /&gt;
&lt;br /&gt;
For basic information on how to apply for storage or how to become a member of an existing project, please check the main [[Swestore]] page.&lt;br /&gt;
&lt;br /&gt;
== Download and upload data== &lt;br /&gt;
&lt;br /&gt;
=== From the command line ===&lt;br /&gt;
There are several command line tools capable of using the protocols provided by Swestore iRODS. For interactive usage on SNIC clusters we recommend using the iCommands which should be installed on all SNIC resources. There are too many commands to document fully here.&lt;br /&gt;
&lt;br /&gt;
* Please check full and updated documentation at iRODS official [https://docs.irods.org/master/icommands/user/ Documentation].&lt;br /&gt;
* For the command line client, iRODS iCommands, please check iRODS [https://irods.org/download/ Download] page.&lt;br /&gt;
** Please check &amp;quot;Binary Distributions&amp;quot; and instructions for configuring your package manager to include irods APT, YUM or ZYPPER repository at [https://packages.irods.org Repository of iRODS packages ].&lt;br /&gt;
*** You can check here an example of [[iRODS iCommands installation on CentOS 7]] from repository.&lt;br /&gt;
*** You can check here an example of [[iRODS iCommands installation on Ubuntu 16.04]] from repository.&lt;br /&gt;
&lt;br /&gt;
* Configuration of the icommands requires a file called irods_environment.json to be placed in a subdirectory .irods/ of your home directory (e.g. ~/.irods/irods_environment.json).&lt;br /&gt;
You must edit this with a text editor (not MS word, but notepad for Windows, textEdit for Mac or any Unix editor) and put your SNIC username in the place for &amp;lt;YOUR_SNIC_USER_NAME&amp;gt;.:&lt;br /&gt;
&lt;br /&gt;
 {&lt;br /&gt;
   &amp;quot;irods_host&amp;quot;: &amp;quot;irods-login.swestore.se&amp;quot;,&lt;br /&gt;
   &amp;quot;irods_port&amp;quot;: 2432,&lt;br /&gt;
   &amp;quot;irods_default_resource&amp;quot;: &amp;quot;pdc-gpfs&amp;quot;,&lt;br /&gt;
   &amp;quot;irods_home&amp;quot;: &amp;quot;/snic.se/home/&amp;lt;YOUR_SNIC_USER_NAME&amp;gt;&amp;quot;,&lt;br /&gt;
   &amp;quot;irods_cwd&amp;quot;: &amp;quot;/snic.se/home/&amp;lt;YOUR_SNIC_USER_NAME&amp;gt;&amp;quot;,&lt;br /&gt;
   &amp;quot;irods_user_name&amp;quot;: &amp;quot;&amp;lt;YOUR_SNIC_USER_NAME&amp;gt;&amp;quot;,&lt;br /&gt;
   &amp;quot;irods_zone_name&amp;quot;: &amp;quot;snic.se&amp;quot;,&lt;br /&gt;
   &amp;quot;irods_client_server_negotiation&amp;quot;: &amp;quot;request_server_negotiation&amp;quot;,&lt;br /&gt;
   &amp;quot;irods_client_server_policy&amp;quot;: &amp;quot;CS_NEG_REFUSE&amp;quot;,&lt;br /&gt;
   &amp;quot;irods_encryption_key_size&amp;quot;: 32,&lt;br /&gt;
   &amp;quot;irods_encryption_salt_size&amp;quot;: 8,&lt;br /&gt;
   &amp;quot;irods_encryption_num_hash_rounds&amp;quot;: 16,&lt;br /&gt;
   &amp;quot;irods_encryption_algorithm&amp;quot;: &amp;quot;AES-256-CBC&amp;quot;,&lt;br /&gt;
   &amp;quot;irods_default_hash_scheme&amp;quot;: &amp;quot;SHA256&amp;quot;,&lt;br /&gt;
   &amp;quot;irods_match_hash_policy&amp;quot;: &amp;quot;compatible&amp;quot;,&lt;br /&gt;
   &amp;quot;irods_authentication_scheme&amp;quot;: &amp;quot;PAM&amp;quot; &lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
=== From GUI client ===&lt;br /&gt;
Graphical User Interface (GUI) clients are known to work on some operating systems.&lt;br /&gt;
&lt;br /&gt;
==== Access using WebDAV (map a network drive) ====&lt;br /&gt;
WebDAV endpoint for Windows 10, Linux and OS X  https://snic-irods-webdav.pdc.kth.se:8443/snic.se/&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!colspan=&amp;quot;6&amp;quot;|Accessing Swestore-iRODS via WebDAV&lt;br /&gt;
|-&lt;br /&gt;
|rowspan=&amp;quot;2&amp;quot;|[https://en.wikipedia.org/wiki/WebDAV WebDAV]&lt;br /&gt;
|rowspan=&amp;quot;2&amp;quot;|Mac OS X&lt;br /&gt;
|rowspan=&amp;quot;2&amp;quot;|https://snic-irods-webdav.pdc.kth.se:8443/snic.se/&lt;br /&gt;
| This is OS standard WebDAV connection · &amp;quot;Connect to server&amp;quot; function in Finder :&lt;br /&gt;
To access Swestore iRODS via WebDAV you'll need to authenticate with your username and password.&lt;br /&gt;
1.Click the 'Finder' icon &lt;br /&gt;
[[File:MacOSX Finder.png |none|250px]]&lt;br /&gt;
2.In 'Finder', locate the menu bar at the top and then navigate to Go &amp;gt; Connect to Server.&lt;br /&gt;
[[File:ConnectToServer.png |none|250px]]&lt;br /&gt;
3.In the 'Connect to Server' dialog box, enter the URL to Swestore iRODS WebDAV endpoint, in the 'Server Address' field.&lt;br /&gt;
&lt;br /&gt;
4.Click Connect.&lt;br /&gt;
&lt;br /&gt;
Once the connection is made, you are prompted for your WebDAV username/password.&lt;br /&gt;
&lt;br /&gt;
Once you’ve connected, the WebDAV directory is mounted in your 'Finder' and on your desktop.&lt;br /&gt;
&lt;br /&gt;
You can now start adding, editing, deleting files in this directory from the comfort of your computer.&lt;br /&gt;
&lt;br /&gt;
[[File:Mounted webdav GUI.png |none|350px]]&lt;br /&gt;
&lt;br /&gt;
|rowspan=&amp;quot;2&amp;quot;| WebDAV is a method for remotely managing files over the internet. With WebDAV, you can access files stored in Swestore iRODS project by using the same interface as you do with your local files. &lt;br /&gt;
Once you connect via WebDAV, and you authenticate, you can view and manage the folders and files stored in your project area. You can perform same actions – drag and drop, rename, delete – that you would on files and folders stored on your own computer.&lt;br /&gt;
  &lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
| This is mount with &amp;quot;mount_webdav&amp;quot; command at terminal&lt;br /&gt;
If you prefer to access your Swestore iRODS files via command line, you can mount the WebDAV-enabled server directory via '''mount_webdav''' command&lt;br /&gt;
[[File:MacOSX Terminal WebDAV mount.png |none|350px]]&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== From a web browser ===&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
!colspan=&amp;quot;6&amp;quot;|Davrods is an Apache WebDAV interface to iRODS&lt;br /&gt;
|-&lt;br /&gt;
|rowspan=&amp;quot;3&amp;quot;|[https://github.com/UtrechtUniversity/davrods Davrods]&lt;br /&gt;
|Projects&lt;br /&gt;
|https://snic-irods-webdav.pdc.kth.se:8443/snic.se/projects/&lt;br /&gt;
| To browse private data you'll need to authenticate with your username and password.&lt;br /&gt;
|rowspan=&amp;quot;3&amp;quot;|This interface is intended as '''simple directory index''' interface. It's purpose is to list, view, download, publish, share data. It is NOT intended to upload data.  &lt;br /&gt;
[[File:Swestore-iRODS simple webdav dir listing.png |center |thumb|350px]]&lt;br /&gt;
|-&lt;br /&gt;
|Home&lt;br /&gt;
|https://snic-irods-webdav.pdc.kth.se:8443/snic.se/home/&lt;br /&gt;
| To browse private data you'll need to authenticate with your username and password.&lt;br /&gt;
|-&lt;br /&gt;
|Public&lt;br /&gt;
|http://snic-irods-webdav.pdc.kth.se:8888/snic.se/home/public/&lt;br /&gt;
| This web interface is used to publish data with &amp;quot;world&amp;quot; and no authentication is required. 	&amp;lt;pre style=&amp;quot;color: red&amp;quot;&amp;gt;NOTE: different port 8888 &amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
|-&lt;br /&gt;
| [https://github.com/irods-contrib/metalnx-web Metalnx]&lt;br /&gt;
| Login&lt;br /&gt;
| https://snic-irods-web.pdc.kth.se/emc-metalnx-web/login/&lt;br /&gt;
|To access SNIC iRODS Zone you'll need to authenticate with your username and password.&lt;br /&gt;
| Metalnx is a web application designed to work alongside iRODS. It is a graphical user interface and serves as a client that authenticates to an existing iRODS Zone.&lt;br /&gt;
[[File:Screenshot 2020-03-04 at 14.09.10.png  |center |thumb|350px]]&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
= Using Swestore iRODS at PDC* = &lt;br /&gt;
 * PDC Center for High Performance Computing at the KTH Royal Institute of Technology&lt;br /&gt;
&lt;br /&gt;
* [https://www.pdc.kth.se/support/documents/data_management/swestore.html PDC Support pages for Swestore (iRODS)]&lt;br /&gt;
* [https://www.pdc.kth.se/support/documents/data_management/file_transfer_swestore.html PDC Support pages about Swestore (iRODS) client on PDC transfer node]&lt;br /&gt;
&lt;br /&gt;
= Additional information about using iRODS at NSC =&lt;/div&gt;</summary>
		<author><name>Janos Nagy (NSC)</name></author>
		
	</entry>
	<entry>
		<id>http://docs.snic.se/w/index.php?title=Setting_your_Swestore_password&amp;diff=7295</id>
		<title>Setting your Swestore password</title>
		<link rel="alternate" type="text/html" href="http://docs.snic.se/w/index.php?title=Setting_your_Swestore_password&amp;diff=7295"/>
		<updated>2020-02-26T10:08:39Z</updated>

		<summary type="html">&lt;p&gt;Janos Nagy (NSC): &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Storage]]&lt;br /&gt;
[[Category:Swestore]]&lt;br /&gt;
[[Category:Swestore user guide]]&lt;br /&gt;
&lt;br /&gt;
This page describes how to find your Swestore username and how to set your password.&lt;br /&gt;
&lt;br /&gt;
* First, open a new web browser tab/window and log in to the SUPR portal at https://supr.snic.se/&lt;br /&gt;
&lt;br /&gt;
* Click '''Accounts''' in the left hand menu to show the ''Accounts'' page.&lt;br /&gt;
[[File:Swestore-pass-1.png|border|center]]&lt;br /&gt;
&lt;br /&gt;
* Note your ''Username'' for the Swestore resource.&lt;br /&gt;
* To initiate the password change/reset process, click '''Reset Password'''&lt;br /&gt;
[[File:Swestore-pass-2.png|border|center]]&lt;br /&gt;
&lt;br /&gt;
* You are now presented with the ''Prove Your Identity to Swestore'' page.&lt;br /&gt;
* Click '''Prove My Identity to Swestore'''&lt;br /&gt;
[[File:Swestore-pass-3.png|border|center]]&lt;br /&gt;
&lt;br /&gt;
* You are now redirected to the ''Swestore password change'' page.&lt;br /&gt;
* Choose a new password unique to Swestore.&lt;br /&gt;
** '''NEVER''' use the same password for multiple resources!&lt;br /&gt;
** It's better to use a long password that you are comfortable typing than a short password with lots of weird special characters that you get wrong.&lt;br /&gt;
* Please be patient as it might take some time to move on to the next screen.&lt;br /&gt;
* Enter the new password in the '''Password''' and '''Verification''' text entry boxes and click '''Set'''.&lt;br /&gt;
[[File:Swestore-pass-4.png|border|center]]&lt;br /&gt;
&lt;br /&gt;
* The page will reload and display if the password change was successful or not.&lt;br /&gt;
** If the text ''Password change was successful'' is displayed you have completed the password change procedure, close the web browser tab/window.&lt;br /&gt;
** If an error message is displayed, note if there is any specific complaints (ie. password length), correct and retry.&lt;br /&gt;
[[File:Swestore-pass-5.png|border|center]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Swestore|&amp;lt; Back to the main Swestore documentation page]]&lt;/div&gt;</summary>
		<author><name>Janos Nagy (NSC)</name></author>
		
	</entry>
	<entry>
		<id>http://docs.snic.se/w/index.php?title=Swestore-irods&amp;diff=5885</id>
		<title>Swestore-irods</title>
		<link rel="alternate" type="text/html" href="http://docs.snic.se/w/index.php?title=Swestore-irods&amp;diff=5885"/>
		<updated>2014-06-26T10:56:23Z</updated>

		<summary type="html">&lt;p&gt;Janos Nagy (NSC): /* Community iRODS version 3.3 */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= National Storage using iRODS =&lt;br /&gt;
[[Category:Storage]]&lt;br /&gt;
[[Category:SweStore]]&lt;br /&gt;
&lt;br /&gt;
== Getting access ==&lt;br /&gt;
; Apply for storage&lt;br /&gt;
: Please follow the instructions on the [[Apply for storage on SweStore]] page.&lt;br /&gt;
&lt;br /&gt;
;iRODS user authentication&lt;br /&gt;
:SweStore's iRODS system uses [http://www.yubico.com/products/yubikey-hardware/yubikey/ Yubikey] one-time passwords (OTP). With a simple touch of a button, a 44 character one-time password is generated and sent to the system. The user will be provided with a SweStore yubikey.&lt;br /&gt;
:Yubikey has a status as pilot now. It can be changed in the future.&lt;br /&gt;
&lt;br /&gt;
; iRODS usage &amp;lt;span style=&amp;quot;color:#FF0000&amp;quot;&amp;gt; Pilot. &amp;lt;/span&amp;gt;&amp;lt;br&amp;gt; - How to acquire a SweStore yubikey&lt;br /&gt;
:Please send an email to [mailto:support@swestore.se?subject=Yubikey support@swestore.se] and provide the shipping address to where the yubikey should be sent.&amp;lt;br&amp;gt;&lt;br /&gt;
:Yubikey has a status as pilot now. It can be changed in the future.&lt;br /&gt;
&lt;br /&gt;
== Support == &lt;br /&gt;
&lt;br /&gt;
If you have any issues using SweStore please do not hesitate to contact [mailto:support@swestore.se support@swestore.se].&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:#FF0000&amp;quot;&amp;gt; Better not to use filename with single quotes. (There were problems with these but they had been fixed.&amp;lt;/span&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:#FF0000&amp;quot;&amp;gt; We have memory issues when transferring a large number of files and also with big files.&lt;br /&gt;
Be careful when moving files bigger than 50GB and 20000 files at one time. &amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Usage monitoring ==&lt;br /&gt;
* [http://status.swestore.se/munin/monitor/monitor/ Per Project Monitoring of Swestore usage]&lt;br /&gt;
&lt;br /&gt;
== Supported clients ==&lt;br /&gt;
&lt;br /&gt;
: iDrop web - Point your Web browser to [https://iweb.swestore.se iweb.swestore.se]&lt;br /&gt;
: E-iRODS iCommands 3.0 - Command line client [ftp://ftp.renci.org/pub/irods/releases/3.0.1 Download E-iRODS icommands]&lt;br /&gt;
&lt;br /&gt;
SweStore iRODS uses PAM authentication and SweStore yubikeys. With a simple touch of a button, a 44 character one-time password is generated and sent to the system.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Web GUI (iDrop web) ===&lt;br /&gt;
Please see the specific documentation for [[iDrop web]].&lt;br /&gt;
&lt;br /&gt;
=== Community iRODS version 3.3 ===&lt;br /&gt;
The community iRODS client version 3.3 also should work, with PAM authentication.&amp;lt;br&amp;gt;&lt;br /&gt;
It is available from [http://irods.sdsc.edu/download.html SDSC].&lt;br /&gt;
Please install the OpenSSL include files and libraries:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ sudo apt-get install libssl-dev (debian based system)&lt;br /&gt;
# yum install openssl-devel (redhat-based systems)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Download irods 3.3 from http://irods.sdsc.edu/download.html and unpack the tar.gz archive.&lt;br /&gt;
&lt;br /&gt;
Please enable the following defines in the Makefile iRODS/config/config.mk.in&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
PAM_AUTH = 1&lt;br /&gt;
PAM_AUTH_NO_EXTEND = 1&lt;br /&gt;
USE_SSL = 1 &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Please run irodssetup to compile the irods community client with PAM authentication.&lt;br /&gt;
&lt;br /&gt;
== SweStore iRODS usage documentation  ==&lt;br /&gt;
&lt;br /&gt;
To use the system you need to have the E-iRODS command line client installed or using iDROP web. &lt;br /&gt;
&lt;br /&gt;
=== Command line client ===&lt;br /&gt;
&lt;br /&gt;
For Linux systems the iRODS command line client is available as an installable package for various&lt;br /&gt;
Linux platforms from the e-iRODS website downloads section.&lt;br /&gt;
&lt;br /&gt;
The command line client is natural to use for Unix users.&lt;br /&gt;
There are versions of the usual ls, rm, mv, mkdir, pwd, rsync&lt;br /&gt;
commands prefixed with an i for iRODS, i.e. irm, imv, imkdir etc.&lt;br /&gt;
&lt;br /&gt;
As expected iput and iget move files to and from the irods system.&lt;br /&gt;
All these commands print short help when using the -h option.&lt;br /&gt;
&lt;br /&gt;
==== iCommands environment file ====&lt;br /&gt;
&lt;br /&gt;
There is an environment file .irodsEnv in the .irods subdirectory&lt;br /&gt;
of the home directory ($HOME/.irods/.irodsEnv) which contains information where and how&lt;br /&gt;
to access the iRODS metadata (iCAT) server.&lt;br /&gt;
&lt;br /&gt;
It looks like (placeholders are in &amp;lt;&amp;gt;):&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
irodsHost 'irods.swestore.se'&lt;br /&gt;
irodsPort 1247&lt;br /&gt;
irodsDefResource 'snicdefResc'&lt;br /&gt;
irodsHome '/snicZone/proj/&amp;lt;PROJECT_NAME&amp;gt;'&lt;br /&gt;
irodsCwd '/snicZone/proj/&amp;lt;PROJECT_NAME&amp;gt;'&lt;br /&gt;
irodsUserName '&amp;lt;USERNAME&amp;gt;'&lt;br /&gt;
irodsZone 'snicZone'&lt;br /&gt;
irodsAuthScheme 'PAM'&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The iCAT server is irods.swestore.se.&lt;br /&gt;
The default irods zone name is snicZone.&lt;br /&gt;
The default resource is snicdefResc.&lt;br /&gt;
It is best to set the home directory to the same as the&lt;br /&gt;
project directory, which would be a subdirectory under&lt;br /&gt;
the /snicZone/proj directory tree.&lt;br /&gt;
&lt;br /&gt;
==== Yubikey instructions ====&lt;br /&gt;
&lt;br /&gt;
Prerequisite: A correct iCommands environment file, see above for instructions.&lt;br /&gt;
&lt;br /&gt;
# Insert the yubikey in an available USB-slot in your computer.&lt;br /&gt;
# Type iinit&lt;br /&gt;
# Touch the conductive surface on the yubikey to send an one-time password to the system. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
$ iinit&lt;br /&gt;
Enter your current PAM (system) password:&lt;br /&gt;
$ ils&lt;br /&gt;
/snicZone/proj/&amp;lt;projectname&amp;gt;:&lt;br /&gt;
$&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
After that we can use the usual iCommands for 8 hours.&lt;br /&gt;
&lt;br /&gt;
More details on the iCommands are available at&lt;br /&gt;
https://www.irods.org/index.php/icommands&lt;br /&gt;
&lt;br /&gt;
==== iCommands ====&lt;br /&gt;
&lt;br /&gt;
Having initialized the session as described above we can use tie iRODS versions&lt;br /&gt;
of the basic Unix commands. The project directory is under /snicZone/proj, all&lt;br /&gt;
members of the project should have write access to this directory. We can use&lt;br /&gt;
the command&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
icd /snicZone/proj/projectname&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
to move to the project directory, or to change to an another project directory&lt;br /&gt;
when we are members of more than one project.&lt;br /&gt;
&lt;br /&gt;
All commands give short help when invoked with the -h flag.&lt;br /&gt;
&lt;br /&gt;
To put files files into the iRODS system we can use:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
iput localfile irodsfile&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
or, to put a whole directory tree:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
iput -r localdirectory irodscollection&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To load large amout of data it might be more advantageous to use&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
irsync -r localdirectory irodscollection&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
It might be a good idea to use -K so then checksums will be computed,&lt;br /&gt;
stored and checked.&lt;br /&gt;
&lt;br /&gt;
To create directories (collections in iRODSspeak) we use:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
imkdir collection&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
as it would be expected.&lt;br /&gt;
&lt;br /&gt;
To get those files back we can use&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
iget irodsfile localfile&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
or&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
irsync -r irodscollection localdirectory&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To remove files we use:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
irm&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
or&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
irm -r&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Removing files like that would put the files into the trashcan (path: /snicZone/trash/).&lt;br /&gt;
Time to time we would need to empty the trashcan, using&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
irmtrash&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Using iCommands on SNIC HPC clusters ====&lt;br /&gt;
&lt;br /&gt;
On SNIC-clusters the icommands command line tools are either available in the PATH or by adding the irods module, e.g.&lt;br /&gt;
: module load irods&lt;br /&gt;
:If the irods commands are not available at the SNIC HPC cluster, please contact support@swestore.se&lt;br /&gt;
We also need to setup the iCommands environment file $HOME/.irods/.irodsEnv&lt;br /&gt;
&lt;br /&gt;
=== Storage Project directory structure ===&lt;br /&gt;
&lt;br /&gt;
Your storage project is available at /snicZone/proj/&amp;lt;PROJECT NAME&amp;gt;&lt;br /&gt;
&lt;br /&gt;
/snicZone/home/&amp;lt;USERNAME&amp;gt; is just a small home directory.&lt;br /&gt;
&lt;br /&gt;
=== iDROP web client ===&lt;br /&gt;
&lt;br /&gt;
See the [[iDrop web]] specific page.&lt;br /&gt;
&lt;br /&gt;
=== Upstream documentation ===&lt;br /&gt;
Detailed documentation, papers and resources are available from&lt;br /&gt;
the [http://www.eirods.org E-iRODS web site]&lt;br /&gt;
&lt;br /&gt;
[http://www.irods.org Community iRODS]&lt;br /&gt;
&lt;br /&gt;
[https://groups.google.com/d/forum/irod-chat‎ User forum]&lt;/div&gt;</summary>
		<author><name>Janos Nagy (NSC)</name></author>
		
	</entry>
	<entry>
		<id>http://docs.snic.se/w/index.php?title=Swestore-irods&amp;diff=5884</id>
		<title>Swestore-irods</title>
		<link rel="alternate" type="text/html" href="http://docs.snic.se/w/index.php?title=Swestore-irods&amp;diff=5884"/>
		<updated>2014-06-26T10:54:27Z</updated>

		<summary type="html">&lt;p&gt;Janos Nagy (NSC): /* Support */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= National Storage using iRODS =&lt;br /&gt;
[[Category:Storage]]&lt;br /&gt;
[[Category:SweStore]]&lt;br /&gt;
&lt;br /&gt;
== Getting access ==&lt;br /&gt;
; Apply for storage&lt;br /&gt;
: Please follow the instructions on the [[Apply for storage on SweStore]] page.&lt;br /&gt;
&lt;br /&gt;
;iRODS user authentication&lt;br /&gt;
:SweStore's iRODS system uses [http://www.yubico.com/products/yubikey-hardware/yubikey/ Yubikey] one-time passwords (OTP). With a simple touch of a button, a 44 character one-time password is generated and sent to the system. The user will be provided with a SweStore yubikey.&lt;br /&gt;
:Yubikey has a status as pilot now. It can be changed in the future.&lt;br /&gt;
&lt;br /&gt;
; iRODS usage &amp;lt;span style=&amp;quot;color:#FF0000&amp;quot;&amp;gt; Pilot. &amp;lt;/span&amp;gt;&amp;lt;br&amp;gt; - How to acquire a SweStore yubikey&lt;br /&gt;
:Please send an email to [mailto:support@swestore.se?subject=Yubikey support@swestore.se] and provide the shipping address to where the yubikey should be sent.&amp;lt;br&amp;gt;&lt;br /&gt;
:Yubikey has a status as pilot now. It can be changed in the future.&lt;br /&gt;
&lt;br /&gt;
== Support == &lt;br /&gt;
&lt;br /&gt;
If you have any issues using SweStore please do not hesitate to contact [mailto:support@swestore.se support@swestore.se].&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:#FF0000&amp;quot;&amp;gt; Better not to use filename with single quotes. (There were problems with these but they had been fixed.&amp;lt;/span&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:#FF0000&amp;quot;&amp;gt; We have memory issues when transferring a large number of files and also with big files.&lt;br /&gt;
Be careful when moving files bigger than 50GB and 20000 files at one time. &amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Usage monitoring ==&lt;br /&gt;
* [http://status.swestore.se/munin/monitor/monitor/ Per Project Monitoring of Swestore usage]&lt;br /&gt;
&lt;br /&gt;
== Supported clients ==&lt;br /&gt;
&lt;br /&gt;
: iDrop web - Point your Web browser to [https://iweb.swestore.se iweb.swestore.se]&lt;br /&gt;
: E-iRODS iCommands 3.0 - Command line client [ftp://ftp.renci.org/pub/irods/releases/3.0.1 Download E-iRODS icommands]&lt;br /&gt;
&lt;br /&gt;
SweStore iRODS uses PAM authentication and SweStore yubikeys. With a simple touch of a button, a 44 character one-time password is generated and sent to the system.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Web GUI (iDrop web) ===&lt;br /&gt;
Please see the specific documentation for [[iDrop web]].&lt;br /&gt;
&lt;br /&gt;
=== Community iRODS version 3.3 ===&lt;br /&gt;
The community iRODS client version 3.3 also should work, with PAM authentication.&amp;lt;br&amp;gt;&lt;br /&gt;
Please install the OpenSSL include files and libraries:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ sudo apt-get install libssl-dev (debian based system)&lt;br /&gt;
# yum install openssl-devel (redhat-based systems)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Download irods 3.3 from http://irods.sdsc.edu/download.html and unpack the tar.gz archive.&lt;br /&gt;
&lt;br /&gt;
Please enable the following defines in the Makefile iRODS/config/config.mk.in&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
PAM_AUTH = 1&lt;br /&gt;
PAM_AUTH_NO_EXTEND = 1&lt;br /&gt;
USE_SSL = 1 &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Please run irodssetup to compile the irods community client with PAM authentication.&lt;br /&gt;
&lt;br /&gt;
== SweStore iRODS usage documentation  ==&lt;br /&gt;
&lt;br /&gt;
To use the system you need to have the E-iRODS command line client installed or using iDROP web. &lt;br /&gt;
&lt;br /&gt;
=== Command line client ===&lt;br /&gt;
&lt;br /&gt;
For Linux systems the iRODS command line client is available as an installable package for various&lt;br /&gt;
Linux platforms from the e-iRODS website downloads section.&lt;br /&gt;
&lt;br /&gt;
The command line client is natural to use for Unix users.&lt;br /&gt;
There are versions of the usual ls, rm, mv, mkdir, pwd, rsync&lt;br /&gt;
commands prefixed with an i for iRODS, i.e. irm, imv, imkdir etc.&lt;br /&gt;
&lt;br /&gt;
As expected iput and iget move files to and from the irods system.&lt;br /&gt;
All these commands print short help when using the -h option.&lt;br /&gt;
&lt;br /&gt;
==== iCommands environment file ====&lt;br /&gt;
&lt;br /&gt;
There is an environment file .irodsEnv in the .irods subdirectory&lt;br /&gt;
of the home directory ($HOME/.irods/.irodsEnv) which contains information where and how&lt;br /&gt;
to access the iRODS metadata (iCAT) server.&lt;br /&gt;
&lt;br /&gt;
It looks like (placeholders are in &amp;lt;&amp;gt;):&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
irodsHost 'irods.swestore.se'&lt;br /&gt;
irodsPort 1247&lt;br /&gt;
irodsDefResource 'snicdefResc'&lt;br /&gt;
irodsHome '/snicZone/proj/&amp;lt;PROJECT_NAME&amp;gt;'&lt;br /&gt;
irodsCwd '/snicZone/proj/&amp;lt;PROJECT_NAME&amp;gt;'&lt;br /&gt;
irodsUserName '&amp;lt;USERNAME&amp;gt;'&lt;br /&gt;
irodsZone 'snicZone'&lt;br /&gt;
irodsAuthScheme 'PAM'&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The iCAT server is irods.swestore.se.&lt;br /&gt;
The default irods zone name is snicZone.&lt;br /&gt;
The default resource is snicdefResc.&lt;br /&gt;
It is best to set the home directory to the same as the&lt;br /&gt;
project directory, which would be a subdirectory under&lt;br /&gt;
the /snicZone/proj directory tree.&lt;br /&gt;
&lt;br /&gt;
==== Yubikey instructions ====&lt;br /&gt;
&lt;br /&gt;
Prerequisite: A correct iCommands environment file, see above for instructions.&lt;br /&gt;
&lt;br /&gt;
# Insert the yubikey in an available USB-slot in your computer.&lt;br /&gt;
# Type iinit&lt;br /&gt;
# Touch the conductive surface on the yubikey to send an one-time password to the system. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
$ iinit&lt;br /&gt;
Enter your current PAM (system) password:&lt;br /&gt;
$ ils&lt;br /&gt;
/snicZone/proj/&amp;lt;projectname&amp;gt;:&lt;br /&gt;
$&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
After that we can use the usual iCommands for 8 hours.&lt;br /&gt;
&lt;br /&gt;
More details on the iCommands are available at&lt;br /&gt;
https://www.irods.org/index.php/icommands&lt;br /&gt;
&lt;br /&gt;
==== iCommands ====&lt;br /&gt;
&lt;br /&gt;
Having initialized the session as described above we can use tie iRODS versions&lt;br /&gt;
of the basic Unix commands. The project directory is under /snicZone/proj, all&lt;br /&gt;
members of the project should have write access to this directory. We can use&lt;br /&gt;
the command&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
icd /snicZone/proj/projectname&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
to move to the project directory, or to change to an another project directory&lt;br /&gt;
when we are members of more than one project.&lt;br /&gt;
&lt;br /&gt;
All commands give short help when invoked with the -h flag.&lt;br /&gt;
&lt;br /&gt;
To put files files into the iRODS system we can use:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
iput localfile irodsfile&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
or, to put a whole directory tree:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
iput -r localdirectory irodscollection&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To load large amout of data it might be more advantageous to use&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
irsync -r localdirectory irodscollection&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
It might be a good idea to use -K so then checksums will be computed,&lt;br /&gt;
stored and checked.&lt;br /&gt;
&lt;br /&gt;
To create directories (collections in iRODSspeak) we use:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
imkdir collection&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
as it would be expected.&lt;br /&gt;
&lt;br /&gt;
To get those files back we can use&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
iget irodsfile localfile&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
or&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
irsync -r irodscollection localdirectory&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To remove files we use:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
irm&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
or&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
irm -r&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Removing files like that would put the files into the trashcan (path: /snicZone/trash/).&lt;br /&gt;
Time to time we would need to empty the trashcan, using&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
irmtrash&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Using iCommands on SNIC HPC clusters ====&lt;br /&gt;
&lt;br /&gt;
On SNIC-clusters the icommands command line tools are either available in the PATH or by adding the irods module, e.g.&lt;br /&gt;
: module load irods&lt;br /&gt;
:If the irods commands are not available at the SNIC HPC cluster, please contact support@swestore.se&lt;br /&gt;
We also need to setup the iCommands environment file $HOME/.irods/.irodsEnv&lt;br /&gt;
&lt;br /&gt;
=== Storage Project directory structure ===&lt;br /&gt;
&lt;br /&gt;
Your storage project is available at /snicZone/proj/&amp;lt;PROJECT NAME&amp;gt;&lt;br /&gt;
&lt;br /&gt;
/snicZone/home/&amp;lt;USERNAME&amp;gt; is just a small home directory.&lt;br /&gt;
&lt;br /&gt;
=== iDROP web client ===&lt;br /&gt;
&lt;br /&gt;
See the [[iDrop web]] specific page.&lt;br /&gt;
&lt;br /&gt;
=== Upstream documentation ===&lt;br /&gt;
Detailed documentation, papers and resources are available from&lt;br /&gt;
the [http://www.eirods.org E-iRODS web site]&lt;br /&gt;
&lt;br /&gt;
[http://www.irods.org Community iRODS]&lt;br /&gt;
&lt;br /&gt;
[https://groups.google.com/d/forum/irod-chat‎ User forum]&lt;/div&gt;</summary>
		<author><name>Janos Nagy (NSC)</name></author>
		
	</entry>
	<entry>
		<id>http://docs.snic.se/w/index.php?title=Swestore-irods&amp;diff=5883</id>
		<title>Swestore-irods</title>
		<link rel="alternate" type="text/html" href="http://docs.snic.se/w/index.php?title=Swestore-irods&amp;diff=5883"/>
		<updated>2014-06-26T10:45:28Z</updated>

		<summary type="html">&lt;p&gt;Janos Nagy (NSC): /* Supported clients */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= National Storage using iRODS =&lt;br /&gt;
[[Category:Storage]]&lt;br /&gt;
[[Category:SweStore]]&lt;br /&gt;
&lt;br /&gt;
== Getting access ==&lt;br /&gt;
; Apply for storage&lt;br /&gt;
: Please follow the instructions on the [[Apply for storage on SweStore]] page.&lt;br /&gt;
&lt;br /&gt;
;iRODS user authentication&lt;br /&gt;
:SweStore's iRODS system uses [http://www.yubico.com/products/yubikey-hardware/yubikey/ Yubikey] one-time passwords (OTP). With a simple touch of a button, a 44 character one-time password is generated and sent to the system. The user will be provided with a SweStore yubikey.&lt;br /&gt;
:Yubikey has a status as pilot now. It can be changed in the future.&lt;br /&gt;
&lt;br /&gt;
; iRODS usage &amp;lt;span style=&amp;quot;color:#FF0000&amp;quot;&amp;gt; Pilot. &amp;lt;/span&amp;gt;&amp;lt;br&amp;gt; - How to acquire a SweStore yubikey&lt;br /&gt;
:Please send an email to [mailto:support@swestore.se?subject=Yubikey support@swestore.se] and provide the shipping address to where the yubikey should be sent.&amp;lt;br&amp;gt;&lt;br /&gt;
:Yubikey has a status as pilot now. It can be changed in the future.&lt;br /&gt;
&lt;br /&gt;
== Support == &lt;br /&gt;
&lt;br /&gt;
If you have any issues using SweStore please do not hesitate to contact [mailto:support@swestore.se support@swestore.se].&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:#FF0000&amp;quot;&amp;gt; Be careful with filenames. Don't use filename with '. &amp;lt;/span&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;span style=&amp;quot;color:#FF0000&amp;quot;&amp;gt; We have memory issues with many files or bigfiles transferring now. Be careful when moving files bigger than 50GB and 20000 files at one time. &amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Usage monitoring ==&lt;br /&gt;
* [http://status.swestore.se/munin/monitor/monitor/ Per Project Monitoring of Swestore usage]&lt;br /&gt;
&lt;br /&gt;
== Supported clients ==&lt;br /&gt;
&lt;br /&gt;
: iDrop web - Point your Web browser to [https://iweb.swestore.se iweb.swestore.se]&lt;br /&gt;
: E-iRODS iCommands 3.0 - Command line client [ftp://ftp.renci.org/pub/irods/releases/3.0.1 Download E-iRODS icommands]&lt;br /&gt;
&lt;br /&gt;
SweStore iRODS uses PAM authentication and SweStore yubikeys. With a simple touch of a button, a 44 character one-time password is generated and sent to the system.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Web GUI (iDrop web) ===&lt;br /&gt;
Please see the specific documentation for [[iDrop web]].&lt;br /&gt;
&lt;br /&gt;
=== Community iRODS version 3.3 ===&lt;br /&gt;
The community iRODS client version 3.3 also should work, with PAM authentication.&amp;lt;br&amp;gt;&lt;br /&gt;
Please install the OpenSSL include files and libraries:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ sudo apt-get install libssl-dev (debian based system)&lt;br /&gt;
# yum install openssl-devel (redhat-based systems)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Download irods 3.3 from http://irods.sdsc.edu/download.html and unpack the tar.gz archive.&lt;br /&gt;
&lt;br /&gt;
Please enable the following defines in the Makefile iRODS/config/config.mk.in&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
PAM_AUTH = 1&lt;br /&gt;
PAM_AUTH_NO_EXTEND = 1&lt;br /&gt;
USE_SSL = 1 &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Please run irodssetup to compile the irods community client with PAM authentication.&lt;br /&gt;
&lt;br /&gt;
== SweStore iRODS usage documentation  ==&lt;br /&gt;
&lt;br /&gt;
To use the system you need to have the E-iRODS command line client installed or using iDROP web. &lt;br /&gt;
&lt;br /&gt;
=== Command line client ===&lt;br /&gt;
&lt;br /&gt;
For Linux systems the iRODS command line client is available as an installable package for various&lt;br /&gt;
Linux platforms from the e-iRODS website downloads section.&lt;br /&gt;
&lt;br /&gt;
The command line client is natural to use for Unix users.&lt;br /&gt;
There are versions of the usual ls, rm, mv, mkdir, pwd, rsync&lt;br /&gt;
commands prefixed with an i for iRODS, i.e. irm, imv, imkdir etc.&lt;br /&gt;
&lt;br /&gt;
As expected iput and iget move files to and from the irods system.&lt;br /&gt;
All these commands print short help when using the -h option.&lt;br /&gt;
&lt;br /&gt;
==== iCommands environment file ====&lt;br /&gt;
&lt;br /&gt;
There is an environment file .irodsEnv in the .irods subdirectory&lt;br /&gt;
of the home directory ($HOME/.irods/.irodsEnv) which contains information where and how&lt;br /&gt;
to access the iRODS metadata (iCAT) server.&lt;br /&gt;
&lt;br /&gt;
It looks like (placeholders are in &amp;lt;&amp;gt;):&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
irodsHost 'irods.swestore.se'&lt;br /&gt;
irodsPort 1247&lt;br /&gt;
irodsDefResource 'snicdefResc'&lt;br /&gt;
irodsHome '/snicZone/proj/&amp;lt;PROJECT_NAME&amp;gt;'&lt;br /&gt;
irodsCwd '/snicZone/proj/&amp;lt;PROJECT_NAME&amp;gt;'&lt;br /&gt;
irodsUserName '&amp;lt;USERNAME&amp;gt;'&lt;br /&gt;
irodsZone 'snicZone'&lt;br /&gt;
irodsAuthScheme 'PAM'&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The iCAT server is irods.swestore.se.&lt;br /&gt;
The default irods zone name is snicZone.&lt;br /&gt;
The default resource is snicdefResc.&lt;br /&gt;
It is best to set the home directory to the same as the&lt;br /&gt;
project directory, which would be a subdirectory under&lt;br /&gt;
the /snicZone/proj directory tree.&lt;br /&gt;
&lt;br /&gt;
==== Yubikey instructions ====&lt;br /&gt;
&lt;br /&gt;
Prerequisite: A correct iCommands environment file, see above for instructions.&lt;br /&gt;
&lt;br /&gt;
# Insert the yubikey in an available USB-slot in your computer.&lt;br /&gt;
# Type iinit&lt;br /&gt;
# Touch the conductive surface on the yubikey to send an one-time password to the system. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
$ iinit&lt;br /&gt;
Enter your current PAM (system) password:&lt;br /&gt;
$ ils&lt;br /&gt;
/snicZone/proj/&amp;lt;projectname&amp;gt;:&lt;br /&gt;
$&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
After that we can use the usual iCommands for 8 hours.&lt;br /&gt;
&lt;br /&gt;
More details on the iCommands are available at&lt;br /&gt;
https://www.irods.org/index.php/icommands&lt;br /&gt;
&lt;br /&gt;
==== iCommands ====&lt;br /&gt;
&lt;br /&gt;
Having initialized the session as described above we can use tie iRODS versions&lt;br /&gt;
of the basic Unix commands. The project directory is under /snicZone/proj, all&lt;br /&gt;
members of the project should have write access to this directory. We can use&lt;br /&gt;
the command&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
icd /snicZone/proj/projectname&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
to move to the project directory, or to change to an another project directory&lt;br /&gt;
when we are members of more than one project.&lt;br /&gt;
&lt;br /&gt;
All commands give short help when invoked with the -h flag.&lt;br /&gt;
&lt;br /&gt;
To put files files into the iRODS system we can use:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
iput localfile irodsfile&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
or, to put a whole directory tree:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
iput -r localdirectory irodscollection&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To load large amout of data it might be more advantageous to use&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
irsync -r localdirectory irodscollection&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
It might be a good idea to use -K so then checksums will be computed,&lt;br /&gt;
stored and checked.&lt;br /&gt;
&lt;br /&gt;
To create directories (collections in iRODSspeak) we use:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
imkdir collection&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
as it would be expected.&lt;br /&gt;
&lt;br /&gt;
To get those files back we can use&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
iget irodsfile localfile&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
or&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
irsync -r irodscollection localdirectory&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To remove files we use:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
irm&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
or&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
irm -r&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Removing files like that would put the files into the trashcan (path: /snicZone/trash/).&lt;br /&gt;
Time to time we would need to empty the trashcan, using&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
irmtrash&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Using iCommands on SNIC HPC clusters ====&lt;br /&gt;
&lt;br /&gt;
On SNIC-clusters the icommands command line tools are either available in the PATH or by adding the irods module, e.g.&lt;br /&gt;
: module load irods&lt;br /&gt;
:If the irods commands are not available at the SNIC HPC cluster, please contact support@swestore.se&lt;br /&gt;
We also need to setup the iCommands environment file $HOME/.irods/.irodsEnv&lt;br /&gt;
&lt;br /&gt;
=== Storage Project directory structure ===&lt;br /&gt;
&lt;br /&gt;
Your storage project is available at /snicZone/proj/&amp;lt;PROJECT NAME&amp;gt;&lt;br /&gt;
&lt;br /&gt;
/snicZone/home/&amp;lt;USERNAME&amp;gt; is just a small home directory.&lt;br /&gt;
&lt;br /&gt;
=== iDROP web client ===&lt;br /&gt;
&lt;br /&gt;
See the [[iDrop web]] specific page.&lt;br /&gt;
&lt;br /&gt;
=== Upstream documentation ===&lt;br /&gt;
Detailed documentation, papers and resources are available from&lt;br /&gt;
the [http://www.eirods.org E-iRODS web site]&lt;br /&gt;
&lt;br /&gt;
[http://www.irods.org Community iRODS]&lt;br /&gt;
&lt;br /&gt;
[https://groups.google.com/d/forum/irod-chat‎ User forum]&lt;/div&gt;</summary>
		<author><name>Janos Nagy (NSC)</name></author>
		
	</entry>
	<entry>
		<id>http://docs.snic.se/w/index.php?title=Swestore-irods&amp;diff=5719</id>
		<title>Swestore-irods</title>
		<link rel="alternate" type="text/html" href="http://docs.snic.se/w/index.php?title=Swestore-irods&amp;diff=5719"/>
		<updated>2014-03-07T09:44:40Z</updated>

		<summary type="html">&lt;p&gt;Janos Nagy (NSC): /* Yubikey instructions */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= National Storage using iRODS =&lt;br /&gt;
[[Category:Storage]]&lt;br /&gt;
[[Category:SweStore]]&lt;br /&gt;
&lt;br /&gt;
== Getting access ==&lt;br /&gt;
; Apply for storage&lt;br /&gt;
: Please follow the instructions on the [[Apply for storage on SweStore]] page.&lt;br /&gt;
&lt;br /&gt;
;iRODS user authentication&lt;br /&gt;
:SweStore's iRODS system uses [http://www.yubico.com/products/yubikey-hardware/yubikey/ Yubikey] one-time passwords (OTP). With a simple touch of a button, a 44 character one-time password is generated and sent to the system. The user will be provided with a SweStore yubikey.&lt;br /&gt;
:Yubikey has a status as pilot now. It can be changed in the future.&lt;br /&gt;
&lt;br /&gt;
; iRODS usage - How to acquire a SweStore yubikey&lt;br /&gt;
:Please send an email to [mailto:support@swestore.se?subject=Yubikey support@swestore.se] and provide the shipping address to where the yubikey should be sent.&amp;lt;br&amp;gt;&lt;br /&gt;
:Yubikey has a status as pilot now. It can be changed in the future.&lt;br /&gt;
&lt;br /&gt;
== Support == &lt;br /&gt;
&lt;br /&gt;
If you have any issues using SweStore please do not hesitate to contact [mailto:support@swestore.se support@swestore.se].&lt;br /&gt;
&lt;br /&gt;
== Usage monitoring ==&lt;br /&gt;
* [http://status.swestore.se/munin/monitor/monitor/ Per Project Monitoring of Swestore usage]&lt;br /&gt;
&lt;br /&gt;
== Supported clients ==&lt;br /&gt;
&lt;br /&gt;
: iDrop web - Point your Web browser to [https://iweb.swestore.se iweb.swestore.se]&lt;br /&gt;
: E-iRODS iCommands 3.0 - Command line client [ftp://ftp.renci.org/pub/eirods/releases/3.0 Download E-iRODS icommands]&lt;br /&gt;
&lt;br /&gt;
SweStore iRODS uses PAM authentication and SweStore yubikeys. With a simple touch of a button, a 44 character one-time password is generated and sent to the system.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Web GUI (iDrop web) ===&lt;br /&gt;
Please see the specific documentation for [[iDrop web]].&lt;br /&gt;
&lt;br /&gt;
=== Community iRODS version 3.3 ===&lt;br /&gt;
The community iRODS client version 3.3 also should work, with PAM authentication.&amp;lt;br&amp;gt;&lt;br /&gt;
Please install the OpenSSL include files and libraries:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ sudo apt-get install libssl-dev (debian based system)&lt;br /&gt;
# yum install openssl-devel (redhat-based systems)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Download irods 3.3 from https://www.irods.org/index.php/Downloads and unpack the tar.gz archive.&lt;br /&gt;
&lt;br /&gt;
Please enable the following defines in the Makefile iRODS/config/config.mk.in&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
PAM_AUTH = 1&lt;br /&gt;
PAM_AUTH_NO_EXTEND = 1&lt;br /&gt;
USE_SSL = 1 &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Please run irodssetup to compile the irods community client with PAM authentication.&lt;br /&gt;
&lt;br /&gt;
== SweStore iRODS usage documentation  ==&lt;br /&gt;
&lt;br /&gt;
To use the system you need to have the E-iRODS command line client installed or using iDROP web. &lt;br /&gt;
&lt;br /&gt;
=== Command line client ===&lt;br /&gt;
&lt;br /&gt;
For Linux systems the iRODS command line client is available as an installable package for various&lt;br /&gt;
Linux platforms from the e-iRODS website downloads section.&lt;br /&gt;
&lt;br /&gt;
The command line client is natural to use for Unix users.&lt;br /&gt;
There are versions of the usual ls, rm, mv, mkdir, pwd, rsync&lt;br /&gt;
commands prefixed with an i for iRODS, i.e. irm, imv, imkdir etc.&lt;br /&gt;
&lt;br /&gt;
As expected iput and iget move files to and from the irods system.&lt;br /&gt;
All these commands print short help when using the -h option.&lt;br /&gt;
&lt;br /&gt;
==== iCommands environment file ====&lt;br /&gt;
&lt;br /&gt;
There is an environment file .irodsEnv in the .irods subdirectory&lt;br /&gt;
of the home directory ($HOME/.irods/.irodsEnv) which contains information where and how&lt;br /&gt;
to access the iRODS metadata (iCAT) server.&lt;br /&gt;
&lt;br /&gt;
It looks like (placeholders are in &amp;lt;&amp;gt;):&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
irodsHost 'irods.swestore.se'&lt;br /&gt;
irodsPort 1247&lt;br /&gt;
irodsDefResource 'snicdefResc'&lt;br /&gt;
irodsHome '/snicZone/proj/&amp;lt;PROJECT_NAME&amp;gt;'&lt;br /&gt;
irodsCwd '/snicZone/proj/&amp;lt;PROJECT_NAME&amp;gt;'&lt;br /&gt;
irodsUserName '&amp;lt;USERNAME&amp;gt;'&lt;br /&gt;
irodsZone 'snicZone'&lt;br /&gt;
irodsAuthScheme 'PAM'&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The iCAT server is irods.swestore.se.&lt;br /&gt;
The default irods zone name is snicZone.&lt;br /&gt;
The default resource is snicdefResc.&lt;br /&gt;
It is best to set the home directory to the same as the&lt;br /&gt;
project directory, which would be a subdirectory under&lt;br /&gt;
the /snicZone/proj directory tree.&lt;br /&gt;
&lt;br /&gt;
==== Yubikey instructions ====&lt;br /&gt;
&lt;br /&gt;
Prerequisite: A correct iCommands environment file, see above for instructions.&lt;br /&gt;
&lt;br /&gt;
# Insert the yubikey in an available USB-slot in your computer.&lt;br /&gt;
# Type iinit&lt;br /&gt;
# Touch the conductive surface on the yubikey to send an one-time password to the system. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
$ iinit&lt;br /&gt;
Enter your current PAM (system) password:&lt;br /&gt;
$ ils&lt;br /&gt;
/snicZone/proj/&amp;lt;projectname&amp;gt;:&lt;br /&gt;
$&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
After that we can use the usual iCommands for 8 hours.&lt;br /&gt;
&lt;br /&gt;
More details on the iCommands are available at&lt;br /&gt;
https://www.irods.org/index.php/icommands&lt;br /&gt;
&lt;br /&gt;
==== iCommands ====&lt;br /&gt;
&lt;br /&gt;
Having initialized the session as described above we can use tie iRODS versions&lt;br /&gt;
of the basic Unix commands. The project directory is under /snicZone/proj, all&lt;br /&gt;
members of the project should have write access to this directory. We can use&lt;br /&gt;
the command&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
icd /snicZone/proj/projectname&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
to move to the project directory, or to change to an another project directory&lt;br /&gt;
when we are members of more than one project.&lt;br /&gt;
&lt;br /&gt;
All commands give short help when invoked with the -h flag.&lt;br /&gt;
&lt;br /&gt;
To put files files into the iRODS system we can use:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
iput localfile irodsfile&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
or, to put a whole directory tree:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
iput -r localdirectory irodscollection&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To load large amout of data it might be more advantageous to use&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
irsync -r localdirectory irodscollection&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
It might be a good idea to use -K so then checksums will be computed,&lt;br /&gt;
stored and checked.&lt;br /&gt;
&lt;br /&gt;
To create directories (collections in iRODSspeak) we use:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
imkdir collection&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
as it would be expected.&lt;br /&gt;
&lt;br /&gt;
To get those files back we can use&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
iget irodsfile localfile&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
or&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
irsync -r irodscollection localdirectory&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To remove files we use:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
irm&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
or&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
irm -r&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Removing files like that would put the files into the trashcan (path: /snicZone/trash/).&lt;br /&gt;
Time to time we would need to empty the trashcan, using&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
irmtrash&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Using iCommands on SNIC HPC clusters ====&lt;br /&gt;
&lt;br /&gt;
On SNIC-clusters the icommands command line tools are either available in the PATH or by adding the irods module, e.g.&lt;br /&gt;
: module load irods&lt;br /&gt;
:If the irods commands are not available at the SNIC HPC cluster, please contact support@swestore.se&lt;br /&gt;
We also need to setup the iCommands environment file $HOME/.irods/.irodsEnv&lt;br /&gt;
&lt;br /&gt;
=== Storage Project directory structure ===&lt;br /&gt;
&lt;br /&gt;
Your storage project is available at /snicZone/proj/&amp;lt;PROJECT NAME&amp;gt;&lt;br /&gt;
&lt;br /&gt;
/snicZone/home/&amp;lt;USERNAME&amp;gt; is just a small home directory.&lt;br /&gt;
&lt;br /&gt;
=== iDROP web client ===&lt;br /&gt;
&lt;br /&gt;
See the [[iDrop web]] specific page.&lt;br /&gt;
&lt;br /&gt;
=== Upstream documentation ===&lt;br /&gt;
Detailed documentation, papers and resources are available from&lt;br /&gt;
the [http://www.eirods.org E-iRODS web site]&lt;br /&gt;
&lt;br /&gt;
[http://www.irods.org Community iRODS]&lt;br /&gt;
&lt;br /&gt;
[https://groups.google.com/d/forum/irod-chat‎ User forum]&lt;/div&gt;</summary>
		<author><name>Janos Nagy (NSC)</name></author>
		
	</entry>
	<entry>
		<id>http://docs.snic.se/w/index.php?title=Swestore-irods&amp;diff=5675</id>
		<title>Swestore-irods</title>
		<link rel="alternate" type="text/html" href="http://docs.snic.se/w/index.php?title=Swestore-irods&amp;diff=5675"/>
		<updated>2014-01-10T09:59:21Z</updated>

		<summary type="html">&lt;p&gt;Janos Nagy (NSC): /* iCommands */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= National Storage using iRODS =&lt;br /&gt;
[[Category:Storage]]&lt;br /&gt;
[[Category:SweStore]]&lt;br /&gt;
&lt;br /&gt;
== Getting access ==&lt;br /&gt;
; Apply for storage&lt;br /&gt;
: Please follow the instructions on the [[Apply for storage on SweStore]] page.&lt;br /&gt;
&lt;br /&gt;
;iRODS user authentication&lt;br /&gt;
:SweStore's iRODS system uses [http://www.yubico.com/products/yubikey-hardware/yubikey/ Yubikey] one-time passwords (OTP). With a simple touch of a button, a 44 character one-time password is generated and sent to the system. The user will be provided with a SweStore yubikey.&lt;br /&gt;
:Yubikey has a status as pilot now. It can be changed in the future.&lt;br /&gt;
&lt;br /&gt;
; iRODS usage - How to acquire a SweStore yubikey&lt;br /&gt;
:Please send an email to [mailto:support@swestore.se?subject=Yubikey support@swestore.se] and provide the shipping address to where the yubikey should be sent.&amp;lt;br&amp;gt;&lt;br /&gt;
:Yubikey has a status as pilot now. It can be changed in the future.&lt;br /&gt;
&lt;br /&gt;
== Support == &lt;br /&gt;
&lt;br /&gt;
If you have any issues using SweStore please do not hesitate to contact [mailto:support@swestore.se support@swestore.se].&lt;br /&gt;
&lt;br /&gt;
== Usage monitoring ==&lt;br /&gt;
* [http://status.swestore.se/munin/monitor/monitor/ Per Project Monitoring of Swestore usage]&lt;br /&gt;
&lt;br /&gt;
== Supported clients ==&lt;br /&gt;
&lt;br /&gt;
: iDrop web - Point your Web browser to [https://iweb.swestore.se iweb.swestore.se]&lt;br /&gt;
: E-iRODS iCommands 3.0 - Command line client [ftp://ftp.renci.org/pub/eirods/releases/3.0 Download E-iRODS icommands]&lt;br /&gt;
&lt;br /&gt;
SweStore iRODS uses PAM authentication and SweStore yubikeys. With a simple touch of a button, a 44 character one-time password is generated and sent to the system.&lt;br /&gt;
&lt;br /&gt;
=== Community iRODS version 3.3 ===&lt;br /&gt;
The community iRODS client version 3.3 also should work, with PAM authentication.&amp;lt;br&amp;gt;&lt;br /&gt;
Please install the OpenSSL include files and libraries:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ sudo apt-get install libssl-dev (debian based system)&lt;br /&gt;
# yum install openssl-devel (redhat-based systems)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Download irods 3.3 from https://www.irods.org/index.php/Downloads and unpack the tar.gz archive.&lt;br /&gt;
&lt;br /&gt;
Please enable the following defines in the Makefile iRODS/config/config.mk.in&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
PAM_AUTH = 1&lt;br /&gt;
PAM_AUTH_NO_EXTEND = 1&lt;br /&gt;
USE_SSL = 1 &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Please run irodssetup to compile the irods community client with PAM authentication.&lt;br /&gt;
&lt;br /&gt;
== SweStore iRODS usage documentation  ==&lt;br /&gt;
&lt;br /&gt;
To use the system you need to have the E-iRODS command line client installed or using iDROP web. &lt;br /&gt;
&lt;br /&gt;
=== Command line client ===&lt;br /&gt;
&lt;br /&gt;
For Linux systems the iRODS command line client is available as an installable package for various&lt;br /&gt;
Linux platforms from the e-iRODS website downloads section.&lt;br /&gt;
&lt;br /&gt;
The command line client is natural to use for Unix users.&lt;br /&gt;
There are versions of the usual ls, rm, mv, mkdir, pwd, rsync&lt;br /&gt;
commands prefixed with an i for iRODS, i.e. irm, imv, imkdir etc.&lt;br /&gt;
&lt;br /&gt;
As expected iput and iget move files to and from the irods system.&lt;br /&gt;
All these commands print short help when using the -h option.&lt;br /&gt;
&lt;br /&gt;
==== iCommands environment file ====&lt;br /&gt;
&lt;br /&gt;
There is an environment file .irodsEnv in the .irods subdirectory&lt;br /&gt;
of the home directory ($HOME/.irods/.irodsEnv) which contains information where and how&lt;br /&gt;
to access the iRODS metadata (iCAT) server.&lt;br /&gt;
&lt;br /&gt;
It looks like (placeholders are in &amp;lt;&amp;gt;):&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
irodsHost 'irods.swestore.se'&lt;br /&gt;
irodsPort 1247&lt;br /&gt;
irodsDefResource 'snicdefResc'&lt;br /&gt;
irodsHome '/snicZone/proj/&amp;lt;PROJECT_NAME&amp;gt;'&lt;br /&gt;
irodsCwd '/snicZone/proj/&amp;lt;PROJECT_NAME&amp;gt;'&lt;br /&gt;
irodsUserName '&amp;lt;USERNAME&amp;gt;'&lt;br /&gt;
irodsZone 'snicZone'&lt;br /&gt;
irodsAuthScheme 'PAM'&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The iCAT server is irods.swestore.se.&lt;br /&gt;
The default irods zone name is snicZone.&lt;br /&gt;
The default resource is snicdefResc.&lt;br /&gt;
It is best to set the home directory to the same as the&lt;br /&gt;
project directory, which would be a subdirectory under&lt;br /&gt;
the /snicZone/proj directory tree.&lt;br /&gt;
&lt;br /&gt;
==== Yubikey instructions ====&lt;br /&gt;
&lt;br /&gt;
Prerequisite: A correct iCommands environment file, see above for instructions.&lt;br /&gt;
&lt;br /&gt;
# Insert the yubikey in an available USB-slot in your computer.&lt;br /&gt;
# Type iinit&lt;br /&gt;
# Touch the conductive surface on the yubikey to send an one-time password to the system. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
$ iinit&lt;br /&gt;
Enter your current PAM (system) password:&lt;br /&gt;
$ ils&lt;br /&gt;
/snicZone/home/&amp;lt;USERNAME&amp;gt;:&lt;br /&gt;
$&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
After that we can use the usual iCommands for 8 hours.&lt;br /&gt;
&lt;br /&gt;
More details on the iCommands are available at&lt;br /&gt;
https://www.irods.org/index.php/icommands&lt;br /&gt;
&lt;br /&gt;
==== iCommands ====&lt;br /&gt;
&lt;br /&gt;
Having initialized the session as described above we can use tie iRODS versions&lt;br /&gt;
of the basic Unix commands. The project directory is under /snicZone/proj, all&lt;br /&gt;
members of the project should have write access to this directory. We can use&lt;br /&gt;
the command&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
icd /snicZone/proj/projectname&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
to move to the project directory, or to change to an another project directory&lt;br /&gt;
when we are members of more than one project.&lt;br /&gt;
&lt;br /&gt;
All commands give short help when invoked with the -h flag.&lt;br /&gt;
&lt;br /&gt;
To put files files into the iRODS system we can use:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
iput localfile irodsfile&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
or, to put a whole directory tree:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
iput -r localdirectory irodscollection&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To load large amout of data it might be more advantageous to use&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
irsync -r localdirectory irodscollection&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
It might be a good idea to use -K so then checksums will be computed,&lt;br /&gt;
stored and checked.&lt;br /&gt;
&lt;br /&gt;
To create directories (collections in iRODSspeak) we use:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
imkdir collection&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
as it would be expected.&lt;br /&gt;
&lt;br /&gt;
To get those files back we can use&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
iget irodsfile localfile&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
or&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
irsync -r irodscollection localdirectory&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To remove files we use:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
irm&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
or&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
irm -r&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Removing files like that would put the files into the trashcan.&lt;br /&gt;
Time to time we would need to empty the trashcan, using&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
irmtrash&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Using iCommands on SNIC HPC clusters ====&lt;br /&gt;
&lt;br /&gt;
On SNIC-clusters the icommands command line tools are either available in the PATH or by adding the irods module, e.g.&lt;br /&gt;
: module load irods&lt;br /&gt;
:If the irods commands are not available at the SNIC HPC cluster, please contact support@swestore.se&lt;br /&gt;
We also need to setup the iCommands environment file $HOME/.irods/.irodsEnv&lt;br /&gt;
&lt;br /&gt;
=== Storage Project directory structure ===&lt;br /&gt;
&lt;br /&gt;
Your storage project is available at /snicZone/proj/&amp;lt;PROJECT NAME&amp;gt;&lt;br /&gt;
&lt;br /&gt;
/snicZone/home/&amp;lt;USERNAME&amp;gt; is just a small home directory.&lt;br /&gt;
&lt;br /&gt;
=== iDROP web client ===&lt;br /&gt;
&lt;br /&gt;
The web client is accessible via the URL https://iweb.swestore.se/.&lt;br /&gt;
The login screen consists of two prompts:&lt;br /&gt;
&lt;br /&gt;
: Username:&lt;br /&gt;
: Password:&lt;br /&gt;
&lt;br /&gt;
#Please type in your SweStore username.&lt;br /&gt;
#Insert the yubikey in an available USB-slot in your computer.&lt;br /&gt;
#Touch the conductive golden surface on the yubikey (for at least a second) to send an one-time password to the system.&lt;br /&gt;
&lt;br /&gt;
=== Upstream documentation ===&lt;br /&gt;
Detailed documentation, papers and resources are available from&lt;br /&gt;
the [http://www.eirods.org E-iRODS web site]&lt;br /&gt;
&lt;br /&gt;
[http://www.irods.org Community iRODS]&lt;br /&gt;
&lt;br /&gt;
[https://groups.google.com/d/forum/irod-chat‎ User forum]&lt;/div&gt;</summary>
		<author><name>Janos Nagy (NSC)</name></author>
		
	</entry>
	<entry>
		<id>http://docs.snic.se/w/index.php?title=Swestore-irods&amp;diff=5674</id>
		<title>Swestore-irods</title>
		<link rel="alternate" type="text/html" href="http://docs.snic.se/w/index.php?title=Swestore-irods&amp;diff=5674"/>
		<updated>2014-01-10T09:58:44Z</updated>

		<summary type="html">&lt;p&gt;Janos Nagy (NSC): /* SweStore iRODS usage documentation */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= National Storage using iRODS =&lt;br /&gt;
[[Category:Storage]]&lt;br /&gt;
[[Category:SweStore]]&lt;br /&gt;
&lt;br /&gt;
== Getting access ==&lt;br /&gt;
; Apply for storage&lt;br /&gt;
: Please follow the instructions on the [[Apply for storage on SweStore]] page.&lt;br /&gt;
&lt;br /&gt;
;iRODS user authentication&lt;br /&gt;
:SweStore's iRODS system uses [http://www.yubico.com/products/yubikey-hardware/yubikey/ Yubikey] one-time passwords (OTP). With a simple touch of a button, a 44 character one-time password is generated and sent to the system. The user will be provided with a SweStore yubikey.&lt;br /&gt;
:Yubikey has a status as pilot now. It can be changed in the future.&lt;br /&gt;
&lt;br /&gt;
; iRODS usage - How to acquire a SweStore yubikey&lt;br /&gt;
:Please send an email to [mailto:support@swestore.se?subject=Yubikey support@swestore.se] and provide the shipping address to where the yubikey should be sent.&amp;lt;br&amp;gt;&lt;br /&gt;
:Yubikey has a status as pilot now. It can be changed in the future.&lt;br /&gt;
&lt;br /&gt;
== Support == &lt;br /&gt;
&lt;br /&gt;
If you have any issues using SweStore please do not hesitate to contact [mailto:support@swestore.se support@swestore.se].&lt;br /&gt;
&lt;br /&gt;
== Usage monitoring ==&lt;br /&gt;
* [http://status.swestore.se/munin/monitor/monitor/ Per Project Monitoring of Swestore usage]&lt;br /&gt;
&lt;br /&gt;
== Supported clients ==&lt;br /&gt;
&lt;br /&gt;
: iDrop web - Point your Web browser to [https://iweb.swestore.se iweb.swestore.se]&lt;br /&gt;
: E-iRODS iCommands 3.0 - Command line client [ftp://ftp.renci.org/pub/eirods/releases/3.0 Download E-iRODS icommands]&lt;br /&gt;
&lt;br /&gt;
SweStore iRODS uses PAM authentication and SweStore yubikeys. With a simple touch of a button, a 44 character one-time password is generated and sent to the system.&lt;br /&gt;
&lt;br /&gt;
=== Community iRODS version 3.3 ===&lt;br /&gt;
The community iRODS client version 3.3 also should work, with PAM authentication.&amp;lt;br&amp;gt;&lt;br /&gt;
Please install the OpenSSL include files and libraries:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ sudo apt-get install libssl-dev (debian based system)&lt;br /&gt;
# yum install openssl-devel (redhat-based systems)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Download irods 3.3 from https://www.irods.org/index.php/Downloads and unpack the tar.gz archive.&lt;br /&gt;
&lt;br /&gt;
Please enable the following defines in the Makefile iRODS/config/config.mk.in&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
PAM_AUTH = 1&lt;br /&gt;
PAM_AUTH_NO_EXTEND = 1&lt;br /&gt;
USE_SSL = 1 &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Please run irodssetup to compile the irods community client with PAM authentication.&lt;br /&gt;
&lt;br /&gt;
== SweStore iRODS usage documentation  ==&lt;br /&gt;
&lt;br /&gt;
To use the system you need to have the E-iRODS command line client installed or using iDROP web. &lt;br /&gt;
&lt;br /&gt;
=== Command line client ===&lt;br /&gt;
&lt;br /&gt;
For Linux systems the iRODS command line client is available as an installable package for various&lt;br /&gt;
Linux platforms from the e-iRODS website downloads section.&lt;br /&gt;
&lt;br /&gt;
The command line client is natural to use for Unix users.&lt;br /&gt;
There are versions of the usual ls, rm, mv, mkdir, pwd, rsync&lt;br /&gt;
commands prefixed with an i for iRODS, i.e. irm, imv, imkdir etc.&lt;br /&gt;
&lt;br /&gt;
As expected iput and iget move files to and from the irods system.&lt;br /&gt;
All these commands print short help when using the -h option.&lt;br /&gt;
&lt;br /&gt;
==== iCommands environment file ====&lt;br /&gt;
&lt;br /&gt;
There is an environment file .irodsEnv in the .irods subdirectory&lt;br /&gt;
of the home directory ($HOME/.irods/.irodsEnv) which contains information where and how&lt;br /&gt;
to access the iRODS metadata (iCAT) server.&lt;br /&gt;
&lt;br /&gt;
It looks like (placeholders are in &amp;lt;&amp;gt;):&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
irodsHost 'irods.swestore.se'&lt;br /&gt;
irodsPort 1247&lt;br /&gt;
irodsDefResource 'snicdefResc'&lt;br /&gt;
irodsHome '/snicZone/proj/&amp;lt;PROJECT_NAME&amp;gt;'&lt;br /&gt;
irodsCwd '/snicZone/proj/&amp;lt;PROJECT_NAME&amp;gt;'&lt;br /&gt;
irodsUserName '&amp;lt;USERNAME&amp;gt;'&lt;br /&gt;
irodsZone 'snicZone'&lt;br /&gt;
irodsAuthScheme 'PAM'&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The iCAT server is irods.swestore.se.&lt;br /&gt;
The default irods zone name is snicZone.&lt;br /&gt;
The default resource is snicdefResc.&lt;br /&gt;
It is best to set the home directory to the same as the&lt;br /&gt;
project directory, which would be a subdirectory under&lt;br /&gt;
the /snicZone/proj directory tree.&lt;br /&gt;
&lt;br /&gt;
==== Yubikey instructions ====&lt;br /&gt;
&lt;br /&gt;
Prerequisite: A correct iCommands environment file, see above for instructions.&lt;br /&gt;
&lt;br /&gt;
# Insert the yubikey in an available USB-slot in your computer.&lt;br /&gt;
# Type iinit&lt;br /&gt;
# Touch the conductive surface on the yubikey to send an one-time password to the system. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
$ iinit&lt;br /&gt;
Enter your current PAM (system) password:&lt;br /&gt;
$ ils&lt;br /&gt;
/snicZone/home/&amp;lt;USERNAME&amp;gt;:&lt;br /&gt;
$&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
After that we can use the usual iCommands for 8 hours.&lt;br /&gt;
&lt;br /&gt;
More details on the iCommands are available at&lt;br /&gt;
https://www.irods.org/index.php/icommands&lt;br /&gt;
&lt;br /&gt;
==== iCommands ====&lt;br /&gt;
&lt;br /&gt;
Having initialized the session as described above we can use tie iRODS versions&lt;br /&gt;
of the basic Unix commands. The project directory is under /snicZone/proj, all&lt;br /&gt;
members of the project should have write access to this directory. We can use&lt;br /&gt;
the command&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
icd /snicZone/proj/projectname&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
to move to the project directory, or to change to an another project directory&lt;br /&gt;
when we are members of more than one project.&lt;br /&gt;
&lt;br /&gt;
All commands give short help when invoked with the -h flag.&lt;br /&gt;
&lt;br /&gt;
To put files files into the iRODS system we can use:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
iput localfile irodsfile&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
or, to put a whole directory tree:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
iput -r localdirectory irodscollection&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To load large amout of data it might be more advantageous to use&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
irsync -r localdirectory irodscollection&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
It might be a good idea to use -K so then checksums will be computed,&lt;br /&gt;
stored and checked.&lt;br /&gt;
&lt;br /&gt;
To create directories (collections in iRODSspeak) we use:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
imkdir collection&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
as it would be expected.&lt;br /&gt;
&lt;br /&gt;
To get those files back we can use&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
iget irodsfile localfile&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
or&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
irsync -r irodscollection localdirectory&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To remove files we use:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
irm&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
or&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
irm -r&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Removing files like that would put the files into the trashcan.&lt;br /&gt;
Time to time we would need to empty the trashcan, using&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
irmtrash&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Using iCommands on SNIC HPC clusters ====&lt;br /&gt;
&lt;br /&gt;
On SNIC-clusters the icommands command line tools are either available in the PATH or by adding the irods module, e.g.&lt;br /&gt;
: module load irods&lt;br /&gt;
:If the irods commands are not available at the SNIC HPC cluster, please contact support@swestore.se&lt;br /&gt;
We also need to setup the iCommands environment file $HOME/.irods/.irodsEnv&lt;br /&gt;
&lt;br /&gt;
=== Storage Project directory structure ===&lt;br /&gt;
&lt;br /&gt;
Your storage project is available at /snicZone/proj/&amp;lt;PROJECT NAME&amp;gt;&lt;br /&gt;
&lt;br /&gt;
/snicZone/home/&amp;lt;USERNAME&amp;gt; is just a small home directory.&lt;br /&gt;
&lt;br /&gt;
=== iDROP web client ===&lt;br /&gt;
&lt;br /&gt;
The web client is accessible via the URL https://iweb.swestore.se/.&lt;br /&gt;
The login screen consists of two prompts:&lt;br /&gt;
&lt;br /&gt;
: Username:&lt;br /&gt;
: Password:&lt;br /&gt;
&lt;br /&gt;
#Please type in your SweStore username.&lt;br /&gt;
#Insert the yubikey in an available USB-slot in your computer.&lt;br /&gt;
#Touch the conductive golden surface on the yubikey (for at least a second) to send an one-time password to the system.&lt;br /&gt;
&lt;br /&gt;
=== Upstream documentation ===&lt;br /&gt;
Detailed documentation, papers and resources are available from&lt;br /&gt;
the [http://www.eirods.org E-iRODS web site]&lt;br /&gt;
&lt;br /&gt;
[http://www.irods.org Community iRODS]&lt;br /&gt;
&lt;br /&gt;
[https://groups.google.com/d/forum/irod-chat‎ User forum]&lt;/div&gt;</summary>
		<author><name>Janos Nagy (NSC)</name></author>
		
	</entry>
	<entry>
		<id>http://docs.snic.se/w/index.php?title=Swestore-irods&amp;diff=5606</id>
		<title>Swestore-irods</title>
		<link rel="alternate" type="text/html" href="http://docs.snic.se/w/index.php?title=Swestore-irods&amp;diff=5606"/>
		<updated>2013-11-19T18:06:04Z</updated>

		<summary type="html">&lt;p&gt;Janos Nagy (NSC): /* SweStore iRODS usage documentation */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Storage]]&lt;br /&gt;
[[Category:SweStore]]&lt;br /&gt;
&lt;br /&gt;
'''This is not official yet'''&lt;br /&gt;
&lt;br /&gt;
SNIC is building a storage infrastructure to complement the computational resources.&lt;br /&gt;
&lt;br /&gt;
Many forms of automated measurements can produce large amounts of data. In scientific areas such as high energy physics (the Large Hadron Collider at CERN), climate modeling, bioinformatics, bioimaging etc., the demands for storage are increasing dramatically. To serve these and other user communities, SNIC has appointed a working group to design a storage strategy, taking into account the needs on many levels and creating a unified storage infrastructure, which is now being implemented.&lt;br /&gt;
&lt;br /&gt;
Swestore is in collaboration with [http://www.ecds.se/ ECDS], [http://snd.gu.se/ SND], Bioimage Sweden, [http://www.bils.se/ BILS], [http://www.uppnex.uu.se/ UPPNEX],[http://wlcg.web.cern.ch/ WLCG], [http://www.nrm.se/ NaturHistoriska RiksMuseet].&lt;br /&gt;
&lt;br /&gt;
= National storage =&lt;br /&gt;
The Swestore Nationally Accessible Storage, commonly called just Swestore, is a robust, flexible and expandable long term storage system aimed at storing large amounts of data produced by various Swedish research projects. It is based on the [http://www.dcache.org dCache] and  [http://www.irods.org iRODS]&lt;br /&gt;
storage systems.&lt;br /&gt;
&lt;br /&gt;
Swestore is distributed across the SNIC centres [http://www.c3se.chalmers.se/ C3SE], [http://www.hpc2n.umu.se/ HPC2N], [http://www.lunarc.lu.se/ Lunarc], [http://www.nsc.liu.se/ NSC], [http://www.pdc.kth.se PDC] and [http://www.uppmax.uu.se Uppmax]. Data is stored in two copies with each copy at a different SNIC centre. This enables the system to cope with a multitude of issues ranging from a simple crash of a storage element to losing an entire site while still providing access to the stored data. &lt;br /&gt;
&lt;br /&gt;
One of the major advantages to the distributed nature of dCache and iRODS is the excellent aggregated transfer rates possible. This is achieved by bypassing a central node and having transfers going directly to/from the storage elements if the protocol allows it. The Swestore Nationally Accessible Storage system can achieve aggregated  transfer rates in excess of 100 Gigabit per second, but in practice this is limited by connectivity to each University (usually 10 Gbit/s) or a limited number of files (typically&lt;br /&gt;
max 1 Gbit/s per file/connection).&lt;br /&gt;
&lt;br /&gt;
To protect against silent data corruption the dCache storage system checksums all stored data and periodically verifies the data using this checksum.&lt;br /&gt;
&lt;br /&gt;
The dCache system does NOT yet provide protection against user errors like inadvertent file deletions and so on. The iRODS system provides this protection. Deleted files are moved to a trashcan.&lt;br /&gt;
&lt;br /&gt;
== Getting access ==&lt;br /&gt;
; Apply for storage&lt;br /&gt;
: Please follow the instructions on the [[Apply for storage on SweStore]] page.&lt;br /&gt;
&lt;br /&gt;
;Difference between dCache and iRODS user authentication&lt;br /&gt;
:SweStore's dCache system uses eScience client certificates.&lt;br /&gt;
:SweStore's iRODS system uses [http://www.yubico.com/products/yubikey-hardware/yubikey/ Yubikey] one-time passwords (OTP). With a simple touch of a button, a 44 character one-time password is generated and sent to the system.&lt;br /&gt;
:Yubikey has a status as pilot now. It can be changed in the future.&lt;br /&gt;
&lt;br /&gt;
; dCache usage - How to acquire an eScience client certificate&lt;br /&gt;
: Follow the instructions on [[Grid_certificates#Requesting_a_certificate|Requesting a certificate]] to get your client certificate. This step can be performed while waiting for the storage application to be approved and processed. Of course, if you already have a valid eScience certificate you don't need to acquire another one.&lt;br /&gt;
:; For Terena certificates&lt;br /&gt;
:: If intending to access SweStore from a SNIC resource, please make sure you also [[Exporting_a_client_certificate|export the certificate]], transfer it to the intended SNIC resource and [[Preparing_a_client_certificate|prepare it for use with grid tools]] (not necessarily needed with ARC 3.x, see [[Grid_certificates#Creating_a_proxy_certificate_using_the_Firefox.2FThunderbird_credential_store|proxy certificates using Firefox credential store]]).&lt;br /&gt;
:; For Nordugrid certificates&lt;br /&gt;
:: Please make sure to also [[Requesting_a_grid_certificate_from_the_Nordugrid_CA#Installing_the_certificate_in_your_browser|install your client certificate in your browser]].&lt;br /&gt;
:; Request membership in the SweGrid VO&lt;br /&gt;
:: Follow the instructions on [[Grid_certificates#Requesting_membership_in_the_SweGrid_VO|Requesting membership in the SweGrid VO]] to get added to the SweGrid Virtual Organisation (VO) and request membership to your allocated storage project.&lt;br /&gt;
&lt;br /&gt;
; iRODS usage - How to acquire a SweStore YubiKey&lt;br /&gt;
&lt;br /&gt;
To apply for a SweStore yubikey, please send an email to [mailto:support@swestore.se?subject=Yubikey support@swestore.se] and provide the shipping address to where the yubikey should be sent.&amp;lt;br&amp;gt;&lt;br /&gt;
Yubikey solution is still in a pilot phase. It can be changed in the future.&lt;br /&gt;
&lt;br /&gt;
== Support == &lt;br /&gt;
&lt;br /&gt;
If you have any issues using SweStore please do not hesitate to contact [mailto:support@swestore.se support@swestore.se].&lt;br /&gt;
&lt;br /&gt;
== dCache ==&lt;br /&gt;
&lt;br /&gt;
=== Access protocols ===&lt;br /&gt;
; Currently supported protocols&lt;br /&gt;
: GridFTP - gsiftp://gsiftp.swestore.se/&lt;br /&gt;
: Storage Resource Manager - srm://srm.swegrid.se/&lt;br /&gt;
: Hypertext Transfer Protocol (read-only), Web Distributed Authoring and Versioning - http://webdav.swestore.se/ (unauthenticated), https://webdav.swestore.se/&lt;br /&gt;
: NFS4.1&lt;br /&gt;
&lt;br /&gt;
For authentication eScience certificates are used, which provides a higher level of security than legacy username/password schemes.&lt;br /&gt;
&lt;br /&gt;
=== Download and upload data ===&lt;br /&gt;
; Interactive browsing and manipulation of single files&lt;br /&gt;
: SweStore is accessible in your web browser in two ways, as a directory index interface at https://webdav.swestore.se/ and with an interactive file manager at https://webdav.swestore.se/browser/. '''Note''' that the interactive file manager has a lot of features and functions not supported in SweStore, only the basic file transfer features are supported.&lt;br /&gt;
: To browse private data you need to have your certificate installed in your browser (default with Terena certificates, see above). Projects are organized under the &amp;lt;code&amp;gt;/snic&amp;lt;/code&amp;gt; directory as &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;https://webdav.swestore.se/snic/YOUR_PROJECT_NAME/&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;.&lt;br /&gt;
; Upload and delete data interactively or with automation&lt;br /&gt;
There are several tools that are capable of using the protocols provided by SweStore national storage.&lt;br /&gt;
For interactive usage on SNIC clusters we recommend using the ARC tools which should be installed on all SNIC resources.&lt;br /&gt;
As an integration point for building scripts and automated systems we suggest using the curl program and library.&lt;br /&gt;
: Use the ARC client. Please see the instructions for [[Accessing SweStore national storage with the ARC client]]. '''Recommended''' method when logged in on SNIC resources.&lt;br /&gt;
: Use lftp. Please see the instructions for [[Accessing SweStore national storage with lftp]].&lt;br /&gt;
: Use cURL. Please see the instructions for [[Accessing SweStore national storage with cURL]].&lt;br /&gt;
: Use globus-url-copy. Please see the instructions for [[Accessing SweStore national storage with globus-url-copy]].&lt;br /&gt;
&lt;br /&gt;
=== Tools and scripts ===&lt;br /&gt;
&lt;br /&gt;
There exists a number of tools and utilities developed externally that can be useful. Here are some links:&lt;br /&gt;
&lt;br /&gt;
* [https://github.com/samuell/arc_tools ARC_Tools] - Convenience scripts for the arc client (Only a recursive rmdir so far).&lt;br /&gt;
* [http://sourceforge.net/projects/arc-gui-clients ARC Graphical Clients] - Contains the ARC Storage Explorer (SweStore supported development).&lt;br /&gt;
* Transfer script, [[SweStore/swetrans_arc|swetrans_arc]], provided by Adam Peplinski / Philipp Schlatter&lt;br /&gt;
* [http://www.nordugrid.org/documents/SWIG-wrapped-ARC-Python-API.pdf Documentation of the ARC Python API (PDF)]&lt;br /&gt;
&lt;br /&gt;
=== Slides and more ===&lt;br /&gt;
&lt;br /&gt;
[http://docs.snic.se/wiki/Swestore/Lund_Seminar_Apr18 Slides and material from seminar for Lund users on April 18th]&lt;br /&gt;
&lt;br /&gt;
=== Usage monitoring ===&lt;br /&gt;
* [http://status.swestore.se/munin/monitor/monitor/ Per Project Monitoring of Swestore usage]&lt;br /&gt;
&lt;br /&gt;
== iRODS ==&lt;br /&gt;
&lt;br /&gt;
There is a SNIC iRODS system available under Swestore.&lt;br /&gt;
&lt;br /&gt;
=== Supported clients ===&lt;br /&gt;
&lt;br /&gt;
: iDrop web - Point your Web browser to [https://iweb.swestore.se iweb.swestore.se]&lt;br /&gt;
: E-iRODS iCommands 3.0 - Command line client [ftp://ftp.renci.org/pub/eirods/releases/3.0 Download E-iRODS icommands]&lt;br /&gt;
&lt;br /&gt;
SweStore iRODS uses PAM authentication and SweStore yubikeys. With a simple touch of a button, a 44 character one-time password is generated and sent to the system.&lt;br /&gt;
&lt;br /&gt;
==== Community iRODS version 3.3 ==== &lt;br /&gt;
The community iRODS client version 3.3 also should work, with PAM authentication.&amp;lt;br&amp;gt;&lt;br /&gt;
Please install the OpenSSL include files and libraries:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo apt-get install libssl-dev (debian based system)&lt;br /&gt;
# yum install openssl-devel (redhat-based systems)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Please enable the following defines in the Makefile iRODS/config/config.mk.in&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
PAM_AUTH = 1&lt;br /&gt;
PAM_AUTH_NO_EXTEND = 1&lt;br /&gt;
USE_SSL = 1 &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Please run irodssetup to compile the irods community client with PAM authentication.&lt;br /&gt;
&lt;br /&gt;
=== SweStore iRODS usage documentation  ===&lt;br /&gt;
&lt;br /&gt;
To use the system you need to have the E-iRODS command line client installed or using iDROP web. &lt;br /&gt;
&lt;br /&gt;
==== Command line client ====&lt;br /&gt;
&lt;br /&gt;
For Linux systems the iRODS command line client is available as an installable package for various&lt;br /&gt;
Linux platforms from the e-iRODS website downloads section.&lt;br /&gt;
&lt;br /&gt;
The command line client is natural to use for Unix users.&lt;br /&gt;
There are versions of the usual ls, rm, mv, mkdir, pwd, rsync&lt;br /&gt;
commands prefixed with an i for iRODS, i.e. irm, imv, imkdir etc.&lt;br /&gt;
&lt;br /&gt;
As expected iput and iget move files to and from the irods system.&lt;br /&gt;
All these commands print short help when using the -h option.&lt;br /&gt;
&lt;br /&gt;
===== iCommands environment file =====&lt;br /&gt;
&lt;br /&gt;
There is an environment file .irodsEnv in the .irods subdirectory&lt;br /&gt;
of the home directory ($HOME/.irods/.irodsEnv) which contains information where and how&lt;br /&gt;
to access the iRODS metadata (iCAT) server.&lt;br /&gt;
&lt;br /&gt;
It looks like (placeholders are in &amp;lt;&amp;gt;):&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
irodsHost 'irods.swestore.se'&lt;br /&gt;
irodsPort 1247&lt;br /&gt;
irodsDefResource 'snicdefResc'&lt;br /&gt;
irodsHome '/snicZone/home/USERNAME'&lt;br /&gt;
irodsCwd '/snicZone/home/USERNAME'&lt;br /&gt;
irodsUserName 'USERNAME'&lt;br /&gt;
irodsZone 'snicZone'&lt;br /&gt;
irodsAuthScheme 'PAM'&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The iCAT server is irods.swestore.se.&lt;br /&gt;
The default irods zone name is snicZone.&lt;br /&gt;
The default resource is snicdefResc.&lt;br /&gt;
&lt;br /&gt;
With the corrent environment file all we need is a Yubikey and we can run the iinit command to authenticate to the iCAT server. After that we can use the usual iCommands for 8 hours.&lt;br /&gt;
&lt;br /&gt;
More details on the iCommands are available at&lt;br /&gt;
https://www.irods.org/index.php/icommands&lt;br /&gt;
&lt;br /&gt;
===== Using iCommands on SNIC HPC clusters =====&lt;br /&gt;
&lt;br /&gt;
On SNIC-clusters the icommands command line tools are either available in the PATH or by adding the irods module, e.g.&lt;br /&gt;
: module load irods&lt;br /&gt;
We also need to setup the iCommands environment file $HOME/.irods/.irodsEnv&lt;br /&gt;
&lt;br /&gt;
==== iDROP web client ====&lt;br /&gt;
&lt;br /&gt;
The web client is accessible via the URL https://iweb.swestore.se/.&lt;br /&gt;
A login screen will be presented first and your Yubikey should&lt;br /&gt;
be used to log in.&lt;br /&gt;
&lt;br /&gt;
==== Upstream documentation ====&lt;br /&gt;
Detailed documentation, papers and resources are available from&lt;br /&gt;
the [http://www.eirods.org E-iRODS web site]&lt;br /&gt;
&lt;br /&gt;
[http://www.irods.org Community iRODS]&lt;br /&gt;
&lt;br /&gt;
[https://groups.google.com/d/forum/irod-chat‎ User forum]&lt;br /&gt;
&lt;br /&gt;
= Center storage =&lt;br /&gt;
Centre storage, as defined by the SNIC storage group, is a storage solution that lives independently of the computational resources and can be accessed from all such resources at a centre. Key features include the ability to access the same filesystem the same way on all computational resources at a centre, and a unified structure and nomenclature for all centra. Unlike cluster storage which is tightly associated with a single cluster, and thus has a limited life-time, centre storage does not require the users to migrate their own data when clusters are decommissioned, not even when the storage hardware itself is being replaced.&lt;br /&gt;
&lt;br /&gt;
== Unified environment ==&lt;br /&gt;
To make the usage more transparent for SNIC users, a set of environment variables are available on all SNIC resources:&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;code&amp;gt;SNIC_BACKUP&amp;lt;/code&amp;gt; – the user's primary directory at the centre&amp;lt;br&amp;gt;(the part of the centre storage that is backed up)&lt;br /&gt;
* &amp;lt;code&amp;gt;SNIC_NOBACKUP&amp;lt;/code&amp;gt; – recommended directory for project storage without backup&amp;lt;br&amp;gt;(also on the centre storage)&lt;br /&gt;
* &amp;lt;code&amp;gt;SNIC_TMP&amp;lt;/code&amp;gt; – recommended directory for best performance during a job&amp;lt;br&amp;gt;(local disk on nodes if applicable)&lt;/div&gt;</summary>
		<author><name>Janos Nagy (NSC)</name></author>
		
	</entry>
	<entry>
		<id>http://docs.snic.se/w/index.php?title=Swestore-irods&amp;diff=5587</id>
		<title>Swestore-irods</title>
		<link rel="alternate" type="text/html" href="http://docs.snic.se/w/index.php?title=Swestore-irods&amp;diff=5587"/>
		<updated>2013-11-04T09:32:04Z</updated>

		<summary type="html">&lt;p&gt;Janos Nagy (NSC): /* Supported clients */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Storage]]&lt;br /&gt;
[[Category:SweStore]]&lt;br /&gt;
&lt;br /&gt;
'''This is not official yet'''&lt;br /&gt;
&lt;br /&gt;
SNIC is building a storage infrastructure to complement the computational resources.&lt;br /&gt;
&lt;br /&gt;
Many forms of automated measurements can produce large amounts of data. In scientific areas such as high energy physics (the Large Hadron Collider at CERN), climate modeling, bioinformatics, bioimaging etc., the demands for storage are increasing dramatically. To serve these and other user communities, SNIC has appointed a working group to design a storage strategy, taking into account the needs on many levels and creating a unified storage infrastructure, which is now being implemented.&lt;br /&gt;
&lt;br /&gt;
Swestore is in collaboration with [http://www.ecds.se/ ECDS], [http://snd.gu.se/ SND], Bioimage Sweden, [http://www.bils.se/ BILS], [http://www.uppnex.uu.se/ UPPNEX],[http://wlcg.web.cern.ch/ WLCG], [http://www.nrm.se/ NaturHistoriska RiksMuseet].&lt;br /&gt;
&lt;br /&gt;
= National storage =&lt;br /&gt;
The Swestore Nationally Accessible Storage, commonly called just Swestore, is a robust, flexible and expandable long term storage system aimed at storing large amounts of data produced by various Swedish research projects. It is based on the [http://www.dcache.org dCache] and  [http://www.irods.org iRODS]&lt;br /&gt;
storage systems.&lt;br /&gt;
&lt;br /&gt;
Swestore is distributed across the SNIC centres [http://www.c3se.chalmers.se/ C3SE], [http://www.hpc2n.umu.se/ HPC2N], [http://www.lunarc.lu.se/ Lunarc], [http://www.nsc.liu.se/ NSC], [http://www.pdc.kth.se PDC] and [http://www.uppmax.uu.se Uppmax]. Data is stored in two copies with each copy at a different SNIC centre. This enables the system to cope with a multitude of issues ranging from a simple crash of a storage element to losing an entire site while still providing access to the stored data. &lt;br /&gt;
&lt;br /&gt;
One of the major advantages to the distributed nature of dCache and iRODS is the excellent aggregated transfer rates possible. This is achieved by bypassing a central node and having transfers going directly to/from the storage elements if the protocol allows it. The Swestore Nationally Accessible Storage system can achieve aggregated  transfer rates in excess of 100 Gigabit per second, but in practice this is limited by connectivity to each University (usually 10 Gbit/s) or a limited number of files (typically&lt;br /&gt;
max 1 Gbit/s per file/connection).&lt;br /&gt;
&lt;br /&gt;
To protect against silent data corruption the dCache storage system checksums all stored data and periodically verifies the data using this checksum.&lt;br /&gt;
&lt;br /&gt;
The dCache system does NOT yet provide protection against user errors like inadvertent file deletions and so on. The iRODS system provides this protection. Deleted files are moved to a trashcan.&lt;br /&gt;
&lt;br /&gt;
== Getting access ==&lt;br /&gt;
; Apply for storage&lt;br /&gt;
: Please follow the instructions on the [[Apply for storage on SweStore]] page.&lt;br /&gt;
&lt;br /&gt;
;Difference between dCache and iRODS user authentication&lt;br /&gt;
:SweStore's dCache system uses eScience client certificates.&lt;br /&gt;
:SweStore's iRODS system uses [http://www.yubico.com/products/yubikey-hardware/yubikey/ Yubikey] one-time passwords (OTP). With a simple touch of a button, a 44 character one-time password is generated and sent to the system. &lt;br /&gt;
&lt;br /&gt;
; dCache usage - How to acquire an eScience client certificate&lt;br /&gt;
: Follow the instructions on [[Grid_certificates#Requesting_a_certificate|Requesting a certificate]] to get your client certificate. This step can be performed while waiting for the storage application to be approved and processed. Of course, if you already have a valid eScience certificate you don't need to acquire another one.&lt;br /&gt;
:; For Terena certificates&lt;br /&gt;
:: If intending to access SweStore from a SNIC resource, please make sure you also [[Exporting_a_client_certificate|export the certificate]], transfer it to the intended SNIC resource and [[Preparing_a_client_certificate|prepare it for use with grid tools]] (not necessarily needed with ARC 3.x, see [[Grid_certificates#Creating_a_proxy_certificate_using_the_Firefox.2FThunderbird_credential_store|proxy certificates using Firefox credential store]]).&lt;br /&gt;
:; For Nordugrid certificates&lt;br /&gt;
:: Please make sure to also [[Requesting_a_grid_certificate_from_the_Nordugrid_CA#Installing_the_certificate_in_your_browser|install your client certificate in your browser]].&lt;br /&gt;
:; Request membership in the SweGrid VO&lt;br /&gt;
:: Follow the instructions on [[Grid_certificates#Requesting_membership_in_the_SweGrid_VO|Requesting membership in the SweGrid VO]] to get added to the SweGrid Virtual Organisation (VO) and request membership to your allocated storage project.&lt;br /&gt;
&lt;br /&gt;
; iRODS usage - How to acquire a SweStore YubiKey&lt;br /&gt;
&lt;br /&gt;
To apply for a SweStore yubikey, please send an email to [mailto:support@swestore.se?subject=Yubikey support@swestore.se] and provide a shipping address to where the yubikey should be sent.&lt;br /&gt;
&lt;br /&gt;
== Support == &lt;br /&gt;
&lt;br /&gt;
If you have any issues using SweStore please do not hesitate to contact [mailto:support@swestore.se support@swestore.se].&lt;br /&gt;
&lt;br /&gt;
== dCache ==&lt;br /&gt;
&lt;br /&gt;
=== Access protocols ===&lt;br /&gt;
; Currently supported protocols&lt;br /&gt;
: GridFTP - gsiftp://gsiftp.swestore.se/&lt;br /&gt;
: Storage Resource Manager - srm://srm.swegrid.se/&lt;br /&gt;
: Hypertext Transfer Protocol (read-only), Web Distributed Authoring and Versioning - http://webdav.swestore.se/ (unauthenticated), https://webdav.swestore.se/&lt;br /&gt;
: NFS4.1&lt;br /&gt;
&lt;br /&gt;
For authentication eScience certificates are used, which provides a higher level of security than legacy username/password schemes.&lt;br /&gt;
&lt;br /&gt;
=== Download and upload data ===&lt;br /&gt;
; Interactive browsing and manipulation of single files&lt;br /&gt;
: SweStore is accessible in your web browser in two ways, as a directory index interface at https://webdav.swestore.se/ and with an interactive file manager at https://webdav.swestore.se/browser/. '''Note''' that the interactive file manager has a lot of features and functions not supported in SweStore, only the basic file transfer features are supported.&lt;br /&gt;
: To browse private data you need to have your certificate installed in your browser (default with Terena certificates, see above). Projects are organized under the &amp;lt;code&amp;gt;/snic&amp;lt;/code&amp;gt; directory as &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;https://webdav.swestore.se/snic/YOUR_PROJECT_NAME/&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;.&lt;br /&gt;
; Upload and delete data interactively or with automation&lt;br /&gt;
There are several tools that are capable of using the protocols provided by SweStore national storage.&lt;br /&gt;
For interactive usage on SNIC clusters we recommend using the ARC tools which should be installed on all SNIC resources.&lt;br /&gt;
As an integration point for building scripts and automated systems we suggest using the curl program and library.&lt;br /&gt;
: Use the ARC client. Please see the instructions for [[Accessing SweStore national storage with the ARC client]]. '''Recommended''' method when logged in on SNIC resources.&lt;br /&gt;
: Use lftp. Please see the instructions for [[Accessing SweStore national storage with lftp]].&lt;br /&gt;
: Use cURL. Please see the instructions for [[Accessing SweStore national storage with cURL]].&lt;br /&gt;
: Use globus-url-copy. Please see the instructions for [[Accessing SweStore national storage with globus-url-copy]].&lt;br /&gt;
&lt;br /&gt;
=== Tools and scripts ===&lt;br /&gt;
&lt;br /&gt;
There exists a number of tools and utilities developed externally that can be useful. Here are some links:&lt;br /&gt;
&lt;br /&gt;
* [https://github.com/samuell/arc_tools ARC_Tools] - Convenience scripts for the arc client (Only a recursive rmdir so far).&lt;br /&gt;
* [http://sourceforge.net/projects/arc-gui-clients ARC Graphical Clients] - Contains the ARC Storage Explorer (SweStore supported development).&lt;br /&gt;
* Transfer script, [[SweStore/swetrans_arc|swetrans_arc]], provided by Adam Peplinski / Philipp Schlatter&lt;br /&gt;
* [http://www.nordugrid.org/documents/SWIG-wrapped-ARC-Python-API.pdf Documentation of the ARC Python API (PDF)]&lt;br /&gt;
&lt;br /&gt;
=== Slides and more ===&lt;br /&gt;
&lt;br /&gt;
[http://docs.snic.se/wiki/Swestore/Lund_Seminar_Apr18 Slides and material from seminar for Lund users on April 18th]&lt;br /&gt;
&lt;br /&gt;
=== Usage monitoring ===&lt;br /&gt;
* [http://status.swestore.se/munin/monitor/monitor/ Per Project Monitoring of Swestore usage]&lt;br /&gt;
&lt;br /&gt;
== iRODS ==&lt;br /&gt;
&lt;br /&gt;
There is a SNIC iRODS system available under Swestore.&lt;br /&gt;
&lt;br /&gt;
=== Supported clients ===&lt;br /&gt;
&lt;br /&gt;
: iDrop web - Point your Web browser to [https://iweb.swestore.se iweb.swestore.se]&lt;br /&gt;
: E-iRODS iCommands - Command line client [http://eirods.org/download/ Download E-iRODS icommands]&lt;br /&gt;
&lt;br /&gt;
SweStore iRODS uses PAM authentication and SweStore yubikeys. With a simple touch of a button, a 44 character one-time password is generated and sent to the system.&lt;br /&gt;
&lt;br /&gt;
The community iRODS client also should work, with PAM authentication e.g.&lt;br /&gt;
the following changes to the Makefile iRODS/config/config.mk and a recompile:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
PAM_AUTH = 1&lt;br /&gt;
PAM_AUTH_NO_EXTEND = 1&lt;br /&gt;
USE_SSL = 1 &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== SweStore iRODS usage documentation  ===&lt;br /&gt;
&lt;br /&gt;
To use the system you need to have the E-iRODS command line client installed or using iDROP web. &lt;br /&gt;
&lt;br /&gt;
==== Command line client ====&lt;br /&gt;
&lt;br /&gt;
For Linux systems the iRODS commandline client is available as an installable package for various&lt;br /&gt;
Linux platforms from the e-iRODS website downloads section.&lt;br /&gt;
&lt;br /&gt;
The command line client is natural to use for Unix users.&lt;br /&gt;
There are versions of the usual ls, rm, mv, mkdir, pwd, rsync&lt;br /&gt;
commands prefixed with an i for iRODS, i.e. irm, imv, imkdir etc.&lt;br /&gt;
&lt;br /&gt;
As expected iput and iget move files to and from the irods system.&lt;br /&gt;
All these commands print short help when using the -h option.&lt;br /&gt;
&lt;br /&gt;
===== iCommands environment file =====&lt;br /&gt;
&lt;br /&gt;
There is an environment file .irodsEnv in the .irods subdirectory&lt;br /&gt;
of the home directory ($HOME/.irods/.irodsEnv) which contains information where and how&lt;br /&gt;
to access the iRODS metadata (iCAT) server.&lt;br /&gt;
&lt;br /&gt;
It looks like (placeholders are in &amp;lt;&amp;gt;):&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
irodsHost 'irods.swestore.se'&lt;br /&gt;
irodsPort 1247&lt;br /&gt;
irodsDefResource 'snicdefResc'&lt;br /&gt;
irodsHome '/snicZone/home/&amp;lt;email address&amp;gt;'&lt;br /&gt;
irodsCwd '/snicZone/home/&amp;lt;email address&amp;gt;'&lt;br /&gt;
irodsUserName '&amp;lt;email address&amp;gt;'&lt;br /&gt;
irodsZone 'snicZone'&lt;br /&gt;
irodsAuthScheme 'PAM'&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The iCAT server is irods.swestore.se.&lt;br /&gt;
The default irods zone name is snicZone.&lt;br /&gt;
The default resource is snicdefResc.&lt;br /&gt;
&lt;br /&gt;
With the corrent environment file all we need is a Yubikey and we can run the iinit command to authenticate to the iCAT server. After that we can use the usual iCommands for 8 hours.&lt;br /&gt;
&lt;br /&gt;
More details on the iCommands are available at&lt;br /&gt;
https://www.irods.org/index.php/icommands&lt;br /&gt;
&lt;br /&gt;
===== Using iCommands on SNIC HPC clusters =====&lt;br /&gt;
&lt;br /&gt;
On SNIC-clusters the icommands command line tools are either available in the PATH or by adding the irods module, e.g.&lt;br /&gt;
: module load irods&lt;br /&gt;
We also need to setup the iCommands environment file $HOME/.irods/.irodsEnv&lt;br /&gt;
&lt;br /&gt;
==== iDROP web client ====&lt;br /&gt;
&lt;br /&gt;
The web client is accessible via the URL https://iweb.swestore.se/.&lt;br /&gt;
A login screen will be presented first and your Yubikey should&lt;br /&gt;
be used to log in.&lt;br /&gt;
&lt;br /&gt;
==== Upstream documentation ====&lt;br /&gt;
Detailed documentation, papers and resources are available from&lt;br /&gt;
the [http://www.eirods.org E-iRODS web site]&lt;br /&gt;
&lt;br /&gt;
[http://www.irods.org Community iRODS]&lt;br /&gt;
&lt;br /&gt;
[https://groups.google.com/d/forum/irod-chat‎ User forum]&lt;br /&gt;
&lt;br /&gt;
= Center storage =&lt;br /&gt;
Centre storage, as defined by the SNIC storage group, is a storage solution that lives independently of the computational resources and can be accessed from all such resources at a centre. Key features include the ability to access the same filesystem the same way on all computational resources at a centre, and a unified structure and nomenclature for all centra. Unlike cluster storage which is tightly associated with a single cluster, and thus has a limited life-time, centre storage does not require the users to migrate their own data when clusters are decommissioned, not even when the storage hardware itself is being replaced.&lt;br /&gt;
&lt;br /&gt;
== Unified environment ==&lt;br /&gt;
To make the usage more transparent for SNIC users, a set of environment variables are available on all SNIC resources:&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;code&amp;gt;SNIC_BACKUP&amp;lt;/code&amp;gt; – the user's primary directory at the centre&amp;lt;br&amp;gt;(the part of the centre storage that is backed up)&lt;br /&gt;
* &amp;lt;code&amp;gt;SNIC_NOBACKUP&amp;lt;/code&amp;gt; – recommended directory for project storage without backup&amp;lt;br&amp;gt;(also on the centre storage)&lt;br /&gt;
* &amp;lt;code&amp;gt;SNIC_TMP&amp;lt;/code&amp;gt; – recommended directory for best performance during a job&amp;lt;br&amp;gt;(local disk on nodes if applicable)&lt;/div&gt;</summary>
		<author><name>Janos Nagy (NSC)</name></author>
		
	</entry>
	<entry>
		<id>http://docs.snic.se/w/index.php?title=Swestore-irods&amp;diff=5586</id>
		<title>Swestore-irods</title>
		<link rel="alternate" type="text/html" href="http://docs.snic.se/w/index.php?title=Swestore-irods&amp;diff=5586"/>
		<updated>2013-11-04T08:47:27Z</updated>

		<summary type="html">&lt;p&gt;Janos Nagy (NSC): /* National storage */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Storage]]&lt;br /&gt;
[[Category:SweStore]]&lt;br /&gt;
&lt;br /&gt;
'''This is not official yet'''&lt;br /&gt;
&lt;br /&gt;
SNIC is building a storage infrastructure to complement the computational resources.&lt;br /&gt;
&lt;br /&gt;
Many forms of automated measurements can produce large amounts of data. In scientific areas such as high energy physics (the Large Hadron Collider at CERN), climate modeling, bioinformatics, bioimaging etc., the demands for storage are increasing dramatically. To serve these and other user communities, SNIC has appointed a working group to design a storage strategy, taking into account the needs on many levels and creating a unified storage infrastructure, which is now being implemented.&lt;br /&gt;
&lt;br /&gt;
Swestore is in collaboration with [http://www.ecds.se/ ECDS], [http://snd.gu.se/ SND], Bioimage Sweden, [http://www.bils.se/ BILS], [http://www.uppnex.uu.se/ UPPNEX],[http://wlcg.web.cern.ch/ WLCG], [http://www.nrm.se/ NaturHistoriska RiksMuseet].&lt;br /&gt;
&lt;br /&gt;
= National storage =&lt;br /&gt;
The Swestore Nationally Accessible Storage, commonly called just Swestore, is a robust, flexible and expandable long term storage system aimed at storing large amounts of data produced by various Swedish research projects. It is based on the [http://www.dcache.org dCache] and  [http://www.irods.org iRODS]&lt;br /&gt;
storage systems.&lt;br /&gt;
&lt;br /&gt;
Swestore is distributed across the SNIC centres [http://www.c3se.chalmers.se/ C3SE], [http://www.hpc2n.umu.se/ HPC2N], [http://www.lunarc.lu.se/ Lunarc], [http://www.nsc.liu.se/ NSC], [http://www.pdc.kth.se PDC] and [http://www.uppmax.uu.se Uppmax]. Data is stored in two copies with each copy at a different SNIC centre. This enables the system to cope with a multitude of issues ranging from a simple crash of a storage element to losing an entire site while still providing access to the stored data. &lt;br /&gt;
&lt;br /&gt;
One of the major advantages to the distributed nature of dCache and iRODS is the excellent aggregated transfer rates possible. This is achieved by bypassing a central node and having transfers going directly to/from the storage elements if the protocol allows it. The Swestore Nationally Accessible Storage system can achieve aggregated  transfer rates in excess of 100 Gigabit per second, but in practice this is limited by connectivity to each University (usually 10 Gbit/s) or a limited number of files (typically&lt;br /&gt;
max 1 Gbit/s per file/connection).&lt;br /&gt;
&lt;br /&gt;
To protect against silent data corruption the dCache storage system checksums all stored data and periodically verifies the data using this checksum.&lt;br /&gt;
&lt;br /&gt;
The dCache system does NOT yet provide protection against user errors like inadvertent file deletions and so on. The iRODS system provides this protection. Deleted files are moved to a trashcan.&lt;br /&gt;
&lt;br /&gt;
== Getting access ==&lt;br /&gt;
; Apply for storage&lt;br /&gt;
: Please follow the instructions on the [[Apply for storage on SweStore]] page.&lt;br /&gt;
&lt;br /&gt;
;Difference between dCache and iRODS user authentication&lt;br /&gt;
:SweStore's dCache system uses eScience client certificates.&lt;br /&gt;
:SweStore's iRODS system uses [http://www.yubico.com/products/yubikey-hardware/yubikey/ Yubikey] one-time passwords (OTP). With a simple touch of a button, a 44 character one-time password is generated and sent to the system. &lt;br /&gt;
&lt;br /&gt;
; dCache usage - How to acquire an eScience client certificate&lt;br /&gt;
: Follow the instructions on [[Grid_certificates#Requesting_a_certificate|Requesting a certificate]] to get your client certificate. This step can be performed while waiting for the storage application to be approved and processed. Of course, if you already have a valid eScience certificate you don't need to acquire another one.&lt;br /&gt;
:; For Terena certificates&lt;br /&gt;
:: If intending to access SweStore from a SNIC resource, please make sure you also [[Exporting_a_client_certificate|export the certificate]], transfer it to the intended SNIC resource and [[Preparing_a_client_certificate|prepare it for use with grid tools]] (not necessarily needed with ARC 3.x, see [[Grid_certificates#Creating_a_proxy_certificate_using_the_Firefox.2FThunderbird_credential_store|proxy certificates using Firefox credential store]]).&lt;br /&gt;
:; For Nordugrid certificates&lt;br /&gt;
:: Please make sure to also [[Requesting_a_grid_certificate_from_the_Nordugrid_CA#Installing_the_certificate_in_your_browser|install your client certificate in your browser]].&lt;br /&gt;
:; Request membership in the SweGrid VO&lt;br /&gt;
:: Follow the instructions on [[Grid_certificates#Requesting_membership_in_the_SweGrid_VO|Requesting membership in the SweGrid VO]] to get added to the SweGrid Virtual Organisation (VO) and request membership to your allocated storage project.&lt;br /&gt;
&lt;br /&gt;
; iRODS usage - How to acquire a SweStore YubiKey&lt;br /&gt;
&lt;br /&gt;
To apply for a SweStore yubikey, please send an email to [mailto:support@swestore.se?subject=Yubikey support@swestore.se] and provide a shipping address to where the yubikey should be sent.&lt;br /&gt;
&lt;br /&gt;
== Support == &lt;br /&gt;
&lt;br /&gt;
If you have any issues using SweStore please do not hesitate to contact [mailto:support@swestore.se support@swestore.se].&lt;br /&gt;
&lt;br /&gt;
== dCache ==&lt;br /&gt;
&lt;br /&gt;
=== Access protocols ===&lt;br /&gt;
; Currently supported protocols&lt;br /&gt;
: GridFTP - gsiftp://gsiftp.swestore.se/&lt;br /&gt;
: Storage Resource Manager - srm://srm.swegrid.se/&lt;br /&gt;
: Hypertext Transfer Protocol (read-only), Web Distributed Authoring and Versioning - http://webdav.swestore.se/ (unauthenticated), https://webdav.swestore.se/&lt;br /&gt;
: NFS4.1&lt;br /&gt;
&lt;br /&gt;
For authentication eScience certificates are used, which provides a higher level of security than legacy username/password schemes.&lt;br /&gt;
&lt;br /&gt;
=== Download and upload data ===&lt;br /&gt;
; Interactive browsing and manipulation of single files&lt;br /&gt;
: SweStore is accessible in your web browser in two ways, as a directory index interface at https://webdav.swestore.se/ and with an interactive file manager at https://webdav.swestore.se/browser/. '''Note''' that the interactive file manager has a lot of features and functions not supported in SweStore, only the basic file transfer features are supported.&lt;br /&gt;
: To browse private data you need to have your certificate installed in your browser (default with Terena certificates, see above). Projects are organized under the &amp;lt;code&amp;gt;/snic&amp;lt;/code&amp;gt; directory as &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;https://webdav.swestore.se/snic/YOUR_PROJECT_NAME/&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;.&lt;br /&gt;
; Upload and delete data interactively or with automation&lt;br /&gt;
There are several tools that are capable of using the protocols provided by SweStore national storage.&lt;br /&gt;
For interactive usage on SNIC clusters we recommend using the ARC tools which should be installed on all SNIC resources.&lt;br /&gt;
As an integration point for building scripts and automated systems we suggest using the curl program and library.&lt;br /&gt;
: Use the ARC client. Please see the instructions for [[Accessing SweStore national storage with the ARC client]]. '''Recommended''' method when logged in on SNIC resources.&lt;br /&gt;
: Use lftp. Please see the instructions for [[Accessing SweStore national storage with lftp]].&lt;br /&gt;
: Use cURL. Please see the instructions for [[Accessing SweStore national storage with cURL]].&lt;br /&gt;
: Use globus-url-copy. Please see the instructions for [[Accessing SweStore national storage with globus-url-copy]].&lt;br /&gt;
&lt;br /&gt;
=== Tools and scripts ===&lt;br /&gt;
&lt;br /&gt;
There exists a number of tools and utilities developed externally that can be useful. Here are some links:&lt;br /&gt;
&lt;br /&gt;
* [https://github.com/samuell/arc_tools ARC_Tools] - Convenience scripts for the arc client (Only a recursive rmdir so far).&lt;br /&gt;
* [http://sourceforge.net/projects/arc-gui-clients ARC Graphical Clients] - Contains the ARC Storage Explorer (SweStore supported development).&lt;br /&gt;
* Transfer script, [[SweStore/swetrans_arc|swetrans_arc]], provided by Adam Peplinski / Philipp Schlatter&lt;br /&gt;
* [http://www.nordugrid.org/documents/SWIG-wrapped-ARC-Python-API.pdf Documentation of the ARC Python API (PDF)]&lt;br /&gt;
&lt;br /&gt;
=== Slides and more ===&lt;br /&gt;
&lt;br /&gt;
[http://docs.snic.se/wiki/Swestore/Lund_Seminar_Apr18 Slides and material from seminar for Lund users on April 18th]&lt;br /&gt;
&lt;br /&gt;
=== Usage monitoring ===&lt;br /&gt;
* [http://status.swestore.se/munin/monitor/monitor/ Per Project Monitoring of Swestore usage]&lt;br /&gt;
&lt;br /&gt;
== iRODS ==&lt;br /&gt;
&lt;br /&gt;
There is a SNIC iRODS system available under Swestore.&lt;br /&gt;
&lt;br /&gt;
== Supported clients ==&lt;br /&gt;
&lt;br /&gt;
: iDrop web - Point your Web browser to [https://iweb.swestore.se iweb.swestore.se]&lt;br /&gt;
: E-iRODS iCommands - Command line client [http://eirods.org/download/ Download E-iRODS icommands]&lt;br /&gt;
&lt;br /&gt;
SweStore iRODS uses PAM authentication and SweStore yubikeys. With a simple touch of a button, a 44 character one-time password is generated and sent to the system.&lt;br /&gt;
&lt;br /&gt;
The community iRODS client also should work, with PAM authentication e.g.&lt;br /&gt;
the following changes to the Makefile iRODS/config/config.mk and a recompile:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
PAM_AUTH = 1&lt;br /&gt;
PAM_AUTH_NO_EXTEND = 1&lt;br /&gt;
USE_SSL = 1 &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== SweStore iRODS usage documentation  ===&lt;br /&gt;
&lt;br /&gt;
To use the system you need to have the E-iRODS command line client installed or using iDROP web. &lt;br /&gt;
&lt;br /&gt;
==== Command line client ====&lt;br /&gt;
&lt;br /&gt;
For Linux systems the iRODS commandline client is available as an installable package for various&lt;br /&gt;
Linux platforms from the e-iRODS website downloads section.&lt;br /&gt;
&lt;br /&gt;
The command line client is natural to use for Unix users.&lt;br /&gt;
There are versions of the usual ls, rm, mv, mkdir, pwd, rsync&lt;br /&gt;
commands prefixed with an i for iRODS, i.e. irm, imv, imkdir etc.&lt;br /&gt;
&lt;br /&gt;
As expected iput and iget move files to and from the irods system.&lt;br /&gt;
All these commands print short help when using the -h option.&lt;br /&gt;
&lt;br /&gt;
===== iCommands environment file =====&lt;br /&gt;
&lt;br /&gt;
There is an environment file .irodsEnv in the .irods subdirectory&lt;br /&gt;
of the home directory ($HOME/.irods/.irodsEnv) which contains information where and how&lt;br /&gt;
to access the iRODS metadata (iCAT) server.&lt;br /&gt;
&lt;br /&gt;
It looks like (placeholders are in &amp;lt;&amp;gt;):&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
irodsHost 'irods.swestore.se'&lt;br /&gt;
irodsPort 1247&lt;br /&gt;
irodsDefResource 'snicdefResc'&lt;br /&gt;
irodsHome '/snicZone/home/&amp;lt;email address&amp;gt;'&lt;br /&gt;
irodsCwd '/snicZone/home/&amp;lt;email address&amp;gt;'&lt;br /&gt;
irodsUserName '&amp;lt;email address&amp;gt;'&lt;br /&gt;
irodsZone 'snicZone'&lt;br /&gt;
irodsAuthScheme 'PAM'&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The iCAT server is irods.swestore.se.&lt;br /&gt;
The default irods zone name is snicZone.&lt;br /&gt;
The default resource is snicdefResc.&lt;br /&gt;
&lt;br /&gt;
With the corrent environment file all we need is a Yubikey and we can run the iinit command to authenticate to the iCAT server. After that we can use the usual iCommands for 8 hours.&lt;br /&gt;
&lt;br /&gt;
More details on the iCommands are available at&lt;br /&gt;
https://www.irods.org/index.php/icommands&lt;br /&gt;
&lt;br /&gt;
===== Using iCommands on SNIC HPC clusters =====&lt;br /&gt;
&lt;br /&gt;
On SNIC-clusters the icommands command line tools are either available in the PATH or by adding the irods module, e.g.&lt;br /&gt;
: module load irods&lt;br /&gt;
We also need to setup the iCommands environment file $HOME/.irods/.irodsEnv&lt;br /&gt;
&lt;br /&gt;
==== iDROP web client ====&lt;br /&gt;
&lt;br /&gt;
The web client is accessible via the URL https://iweb.swestore.se/.&lt;br /&gt;
A login screen will be presented first and your Yubikey should&lt;br /&gt;
be used to log in.&lt;br /&gt;
&lt;br /&gt;
==== Upstream documentation ====&lt;br /&gt;
Detailed documentation, papers and resources are available from&lt;br /&gt;
the [http://www.eirods.org E-iRODS web site]&lt;br /&gt;
&lt;br /&gt;
[http://www.irods.org Community iRODS]&lt;br /&gt;
&lt;br /&gt;
[https://groups.google.com/d/forum/irod-chat‎ User forum]&lt;br /&gt;
&lt;br /&gt;
= Center storage =&lt;br /&gt;
Centre storage, as defined by the SNIC storage group, is a storage solution that lives independently of the computational resources and can be accessed from all such resources at a centre. Key features include the ability to access the same filesystem the same way on all computational resources at a centre, and a unified structure and nomenclature for all centra. Unlike cluster storage which is tightly associated with a single cluster, and thus has a limited life-time, centre storage does not require the users to migrate their own data when clusters are decommissioned, not even when the storage hardware itself is being replaced.&lt;br /&gt;
&lt;br /&gt;
== Unified environment ==&lt;br /&gt;
To make the usage more transparent for SNIC users, a set of environment variables are available on all SNIC resources:&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;code&amp;gt;SNIC_BACKUP&amp;lt;/code&amp;gt; – the user's primary directory at the centre&amp;lt;br&amp;gt;(the part of the centre storage that is backed up)&lt;br /&gt;
* &amp;lt;code&amp;gt;SNIC_NOBACKUP&amp;lt;/code&amp;gt; – recommended directory for project storage without backup&amp;lt;br&amp;gt;(also on the centre storage)&lt;br /&gt;
* &amp;lt;code&amp;gt;SNIC_TMP&amp;lt;/code&amp;gt; – recommended directory for best performance during a job&amp;lt;br&amp;gt;(local disk on nodes if applicable)&lt;/div&gt;</summary>
		<author><name>Janos Nagy (NSC)</name></author>
		
	</entry>
	<entry>
		<id>http://docs.snic.se/w/index.php?title=Swestore-irods&amp;diff=5585</id>
		<title>Swestore-irods</title>
		<link rel="alternate" type="text/html" href="http://docs.snic.se/w/index.php?title=Swestore-irods&amp;diff=5585"/>
		<updated>2013-11-01T21:36:51Z</updated>

		<summary type="html">&lt;p&gt;Janos Nagy (NSC): /* iRODS */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Storage]]&lt;br /&gt;
[[Category:SweStore]]&lt;br /&gt;
&lt;br /&gt;
'''This is not official yet'''&lt;br /&gt;
&lt;br /&gt;
SNIC is building a storage infrastructure to complement the computational resources.&lt;br /&gt;
&lt;br /&gt;
Many forms of automated measurements can produce large amounts of data. In scientific areas such as high energy physics (the Large Hadron Collider at CERN), climate modeling, bioinformatics, bioimaging etc., the demands for storage are increasing dramatically. To serve these and other user communities, SNIC has appointed a working group to design a storage strategy, taking into account the needs on many levels and creating a unified storage infrastructure, which is now being implemented.&lt;br /&gt;
&lt;br /&gt;
Swestore is in collaboration with [http://www.ecds.se/ ECDS], [http://snd.gu.se/ SND], Bioimage Sweden, [http://www.bils.se/ BILS], [http://www.uppnex.uu.se/ UPPNEX],[http://wlcg.web.cern.ch/ WLCG], [http://www.nrm.se/ NaturHistoriska RiksMuseet].&lt;br /&gt;
&lt;br /&gt;
= National storage =&lt;br /&gt;
The Swestore Nationally Accessible Storage, commonly called just Swestore, is a robust, flexible and expandable long term storage system aimed at storing large amounts of data produced by various Swedish research projects. It is based on the [http://www.dcache.org dCache] and  [http://www.irods.org iRODS]&lt;br /&gt;
storage systems.&lt;br /&gt;
&lt;br /&gt;
Swestore is distributed across the SNIC centres [http://www.c3se.chalmers.se/ C3SE], [http://www.hpc2n.umu.se/ HPC2N], [http://www.lunarc.lu.se/ Lunarc], [http://www.nsc.liu.se/ NSC], [http://www.pdc.kth.se PDC] and [http://www.uppmax.uu.se Uppmax]. Data is stored in two copies with each copy at a different SNIC centre. This enables the system to cope with a multitude of issues ranging from a simple crash of a storage element to losing an entire site while still providing access to the stored data. &lt;br /&gt;
&lt;br /&gt;
One of the major advantages to the distributed nature of dCache and iRODS is the excellent aggregated transfer rates possible. This is achieved by bypassing a central node and having transfers going directly to/from the storage elements if the protocol allows it. The Swestore Nationally Accessible Storage system can achieve aggregated  transfer rates in excess of 100 Gigabit per second, but in practice this is limited by connectivity to each University (usually 10 Gbit/s) or a limited number of files (typically&lt;br /&gt;
max 1 Gbit/s per file/connection).&lt;br /&gt;
&lt;br /&gt;
To protect against silent data corruption the dCache storage system checksums all stored data and periodically verifies the data using this checksum.&lt;br /&gt;
&lt;br /&gt;
The dCache system does NOT yet provide protection against user errors like inadvertent file deletions and so on. The iRODS system provides this protection. Deleted files are moved to a trashcan.&lt;br /&gt;
&lt;br /&gt;
== Getting access ==&lt;br /&gt;
; Apply for storage&lt;br /&gt;
: Please follow the instructions on the [[Apply for storage on SweStore]] page.&lt;br /&gt;
&lt;br /&gt;
;Difference between dCache and iRODS user authentication&lt;br /&gt;
:SweStore's dCache system uses eScience client certificates.&lt;br /&gt;
:SweStore's iRODS system uses [http://www.yubico.com/products/yubikey-hardware/yubikey/ Yubikey] one-time passwords (OTP). With a simple touch of a button, a 44 character one-time password is generated and sent to the system. &lt;br /&gt;
&lt;br /&gt;
; dCache usage - How to acquire an eScience client certificate&lt;br /&gt;
: Follow the instructions on [[Grid_certificates#Requesting_a_certificate|Requesting a certificate]] to get your client certificate. This step can be performed while waiting for the storage application to be approved and processed. Of course, if you already have a valid eScience certificate you don't need to acquire another one.&lt;br /&gt;
:; For Terena certificates&lt;br /&gt;
:: If intending to access SweStore from a SNIC resource, please make sure you also [[Exporting_a_client_certificate|export the certificate]], transfer it to the intended SNIC resource and [[Preparing_a_client_certificate|prepare it for use with grid tools]] (not necessarily needed with ARC 3.x, see [[Grid_certificates#Creating_a_proxy_certificate_using_the_Firefox.2FThunderbird_credential_store|proxy certificates using Firefox credential store]]).&lt;br /&gt;
:; For Nordugrid certificates&lt;br /&gt;
:: Please make sure to also [[Requesting_a_grid_certificate_from_the_Nordugrid_CA#Installing_the_certificate_in_your_browser|install your client certificate in your browser]].&lt;br /&gt;
:; Request membership in the SweGrid VO&lt;br /&gt;
:: Follow the instructions on [[Grid_certificates#Requesting_membership_in_the_SweGrid_VO|Requesting membership in the SweGrid VO]] to get added to the SweGrid Virtual Organisation (VO) and request membership to your allocated storage project.&lt;br /&gt;
&lt;br /&gt;
; iRODS usage - How to acquire a SweStore YubiKey&lt;br /&gt;
&lt;br /&gt;
To apply for a SweStore yubikey, please send an email to [mailto:support@swestore.se?subject=Yubikey support@swestore.se] and provide a shipping address to where the yubikey should be sent.&lt;br /&gt;
&lt;br /&gt;
== Support == &lt;br /&gt;
&lt;br /&gt;
If you have any issues using SweStore please do not hesitate to contact [mailto:support@swestore.se support@swestore.se].&lt;br /&gt;
&lt;br /&gt;
== dCache ==&lt;br /&gt;
&lt;br /&gt;
=== Access protocols ===&lt;br /&gt;
; Currently supported protocols&lt;br /&gt;
: GridFTP - gsiftp://gsiftp.swestore.se/&lt;br /&gt;
: Storage Resource Manager - srm://srm.swegrid.se/&lt;br /&gt;
: Hypertext Transfer Protocol (read-only), Web Distributed Authoring and Versioning - http://webdav.swestore.se/ (unauthenticated), https://webdav.swestore.se/&lt;br /&gt;
: NFS4.1&lt;br /&gt;
&lt;br /&gt;
For authentication eScience certificates are used, which provides a higher level of security than legacy username/password schemes.&lt;br /&gt;
&lt;br /&gt;
=== Download and upload data ===&lt;br /&gt;
; Interactive browsing and manipulation of single files&lt;br /&gt;
: SweStore is accessible in your web browser in two ways, as a directory index interface at https://webdav.swestore.se/ and with an interactive file manager at https://webdav.swestore.se/browser/. '''Note''' that the interactive file manager has a lot of features and functions not supported in SweStore, only the basic file transfer features are supported.&lt;br /&gt;
: To browse private data you need to have your certificate installed in your browser (default with Terena certificates, see above). Projects are organized under the &amp;lt;code&amp;gt;/snic&amp;lt;/code&amp;gt; directory as &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;https://webdav.swestore.se/snic/YOUR_PROJECT_NAME/&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;.&lt;br /&gt;
; Upload and delete data interactively or with automation&lt;br /&gt;
There are several tools that are capable of using the protocols provided by SweStore national storage.&lt;br /&gt;
For interactive usage on SNIC clusters we recommend using the ARC tools which should be installed on all SNIC resources.&lt;br /&gt;
As an integration point for building scripts and automated systems we suggest using the curl program and library.&lt;br /&gt;
: Use the ARC client. Please see the instructions for [[Accessing SweStore national storage with the ARC client]]. '''Recommended''' method when logged in on SNIC resources.&lt;br /&gt;
: Use lftp. Please see the instructions for [[Accessing SweStore national storage with lftp]].&lt;br /&gt;
: Use cURL. Please see the instructions for [[Accessing SweStore national storage with cURL]].&lt;br /&gt;
: Use globus-url-copy. Please see the instructions for [[Accessing SweStore national storage with globus-url-copy]].&lt;br /&gt;
&lt;br /&gt;
=== Tools and scripts ===&lt;br /&gt;
&lt;br /&gt;
There exists a number of tools and utilities developed externally that can be useful. Here are some links:&lt;br /&gt;
&lt;br /&gt;
* [https://github.com/samuell/arc_tools ARC_Tools] - Convenience scripts for the arc client (Only a recursive rmdir so far).&lt;br /&gt;
* [http://sourceforge.net/projects/arc-gui-clients ARC Graphical Clients] - Contains the ARC Storage Explorer (SweStore supported development).&lt;br /&gt;
* Transfer script, [[SweStore/swetrans_arc|swetrans_arc]], provided by Adam Peplinski / Philipp Schlatter&lt;br /&gt;
* [http://www.nordugrid.org/documents/SWIG-wrapped-ARC-Python-API.pdf Documentation of the ARC Python API (PDF)]&lt;br /&gt;
&lt;br /&gt;
=== Slides and more ===&lt;br /&gt;
&lt;br /&gt;
[http://docs.snic.se/wiki/Swestore/Lund_Seminar_Apr18 Slides and material from seminar for Lund users on April 18th]&lt;br /&gt;
&lt;br /&gt;
=== Usage monitoring ===&lt;br /&gt;
* [http://status.swestore.se/munin/monitor/monitor/ Per Project Monitoring of Swestore usage]&lt;br /&gt;
&lt;br /&gt;
== iRODS ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Build and install the SNIC iCAT server ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Build postgres ===&lt;br /&gt;
&lt;br /&gt;
We use postgres version 9.4 with unixodbc and build it from&lt;br /&gt;
source.&lt;br /&gt;
&lt;br /&gt;
The binaries will be built under &amp;lt;code&amp;gt;/usr/postgres&amp;lt;/code&amp;gt;&lt;br /&gt;
since the e-irods install script expects the postgres directory&lt;br /&gt;
tree to be under &amp;lt;code&amp;gt;/usr&amp;lt;/code&amp;gt;. The userid &amp;lt;code&amp;gt;postgres&amp;lt;/code&amp;gt;&lt;br /&gt;
will own the directory tree.&lt;br /&gt;
&lt;br /&gt;
Data will be owned by the &amp;lt;code&amp;gt;postgres&amp;lt;/code&amp;gt; userid and under&lt;br /&gt;
&amp;lt;code&amp;gt;/postgres&amp;lt;/code&amp;gt; since that is necessary for the peaceful&lt;br /&gt;
co-existence with unixodbc. We will use xfs for the database file system.&lt;br /&gt;
The file system is created as a RAID6 slice on an array with&lt;br /&gt;
10 x 3TB spindles. We plan to obtain a mirrored pair of disks&lt;br /&gt;
for the online logs to have them separate.&lt;br /&gt;
&lt;br /&gt;
An account and a group called postgres is created. In it's home&lt;br /&gt;
directory there is an install subdirectory with the command line&lt;br /&gt;
history and the two scripts, &amp;lt;code&amp;gt;postgres-build.sh&amp;lt;/code&amp;gt;&lt;br /&gt;
and &amp;lt;code&amp;gt;unixodbc-build.sh&amp;lt;/code&amp;gt; which are used to build the software.&lt;br /&gt;
There is a tarball of the result of make install and to be used&lt;br /&gt;
on the iCAT hosts.&lt;br /&gt;
Use:&lt;br /&gt;
  cd&lt;br /&gt;
  cd src&lt;br /&gt;
  tar -xf ../tar/postgresql-9.2.4.tar.gz&lt;br /&gt;
  cd postgresql-9.2.4&lt;br /&gt;
  cp ~/install/scripts/postgres-build.sh .&lt;br /&gt;
  ./postgres-build.sh 2&amp;gt;&amp;amp;1 | tee -a postgres-build.log&lt;br /&gt;
  cd&lt;br /&gt;
  cd src&lt;br /&gt;
  tar -xf ../tar/unixODBC-2.3.1.tar.gz&lt;br /&gt;
  cd unixODBC-2.3.1&lt;br /&gt;
  ./unixodbc-build.sh  2&amp;gt;&amp;amp;1 | tee -a unixodbc-build.log&lt;br /&gt;
This should create everything under &amp;lt;code&amp;gt;/usr/postgres&amp;lt;/code&amp;gt;.&lt;br /&gt;
A tarball is manually created under &amp;lt;code&amp;gt;~postgres/install/tar&amp;lt;/code&amp;gt;&lt;br /&gt;
as &amp;lt;code&amp;gt;postgres-9.4-snic-build.tar.gz&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The database will run on snic-irods, so the&lt;br /&gt;
&amp;lt;code&amp;gt;/usr/postgres&amp;lt;/code&amp;gt; tree is taken and transplanted&lt;br /&gt;
from snic-irods-mgmt using the tarball.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Running postgres on the iCAT server ===&lt;br /&gt;
&lt;br /&gt;
The userid &amp;lt;code&amp;gt;postgres&amp;lt;/code&amp;gt; is added to the puppet manfiests.&lt;br /&gt;
&lt;br /&gt;
Puppet manifests will also need to be amended with mount options&lt;br /&gt;
for the &amp;lt;code&amp;gt;/postgres&amp;lt;/code&amp;gt; file system.&lt;br /&gt;
&lt;br /&gt;
Create the data file system manually as:&lt;br /&gt;
  mkfs.xfs -b size=4096 -d su=64k,sw=8 -l size=64m,su=64k \&lt;br /&gt;
        -i maxpct=1 -L /pgsql /dev/xvdc&lt;br /&gt;
&lt;br /&gt;
Logged as:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
meta-data=/dev/xvdc              isize=256    agcount=32, agsize=8388592 blks&lt;br /&gt;
         =                       sectsz=512   attr=2, projid32bit=0&lt;br /&gt;
data     =                       bsize=4096   blocks=268434944, imaxpct=1&lt;br /&gt;
         =                       sunit=16     swidth=128 blks&lt;br /&gt;
naming   =version 2              bsize=4096   ascii-ci=0&lt;br /&gt;
log      =internal log           bsize=4096   blocks=16384, version=2&lt;br /&gt;
         =                       sectsz=512   sunit=16 blks, lazy-count=1&lt;br /&gt;
realtime =none                   extsz=4096   blocks=0, rtextents=0&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Mount the file system with the options:&lt;br /&gt;
  logbufs=8,logbsize=256k,largeio,inode64&lt;br /&gt;
so update &amp;lt;code&amp;gt;/etc/fstab&amp;lt;/code&amp;gt; accordingly.&lt;br /&gt;
&lt;br /&gt;
Mount it:&lt;br /&gt;
  mkdir /postgres&lt;br /&gt;
  mount -a&lt;br /&gt;
  chown postgres.postgres /postgres&lt;br /&gt;
  chmod g+w /postgres&lt;br /&gt;
  chmod g+s /postgres&lt;br /&gt;
&lt;br /&gt;
The default umask for unkown reason is 002.&lt;br /&gt;
Might be changed to 022. Create profile for&lt;br /&gt;
postgres user as:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# Add postgres stuff.&lt;br /&gt;
export PATH=$PATH:/usr/postgres/bin&lt;br /&gt;
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/postgres/lib&lt;br /&gt;
export MANPATH=/usr/share/man:/usr/postgres/share/man&lt;br /&gt;
&lt;br /&gt;
# Fix umask.&lt;br /&gt;
umask 022&lt;br /&gt;
&lt;br /&gt;
# Simple prompt.&lt;br /&gt;
PS1=&amp;quot;$ &amp;quot;&lt;br /&gt;
export PS1&lt;br /&gt;
&lt;br /&gt;
# Colourless and odorless.&lt;br /&gt;
alias ls='ls --color=never'&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Change limits in /etc/security/limits.conf as:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
postgres         -       core            unlimited&lt;br /&gt;
postgres         -       data            unlimited&lt;br /&gt;
postgres         -       fsize           unlimited&lt;br /&gt;
postgres         -       memlock         unlimited&lt;br /&gt;
postgres         -       nofile          8192&lt;br /&gt;
postgres         -       rss             unlimited&lt;br /&gt;
postgres         -       stack           unlimited&lt;br /&gt;
postgres         -       cpu             unlimited&lt;br /&gt;
postgres         -       nproc           2048&lt;br /&gt;
postgres         -       as              unlimited&lt;br /&gt;
postgres         -       msgqueue        unlimited&lt;br /&gt;
&lt;br /&gt;
eirods           -       core            unlimited&lt;br /&gt;
eirods           -       data            unlimited&lt;br /&gt;
eirods           -       fsize           unlimited&lt;br /&gt;
eirods           -       memlock         unlimited&lt;br /&gt;
eirods           -       nofile          8192&lt;br /&gt;
eirods           -       rss             unlimited&lt;br /&gt;
eirods           -       stack           unlimited&lt;br /&gt;
eirods           -       cpu             unlimited&lt;br /&gt;
eirods           -       nproc           2048&lt;br /&gt;
eirods           -       as              unlimited&lt;br /&gt;
eirods           -       msgqueue        unlimited&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Change file for authd ===&lt;br /&gt;
&lt;br /&gt;
Change &amp;lt;code&amp;gt;/etc/xinetd.d/auth&amp;lt;/code&amp;gt; as:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
service auth&lt;br /&gt;
{&lt;br /&gt;
	disable	= no&lt;br /&gt;
        socket_type     = stream&lt;br /&gt;
        wait            = no&lt;br /&gt;
        user            = ident&lt;br /&gt;
        cps             = 4096 10&lt;br /&gt;
        instances       = UNLIMITED&lt;br /&gt;
        server          = /usr/sbin/in.authd&lt;br /&gt;
        server_args     = -t60 --xerror --os&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Create the database ===&lt;br /&gt;
&lt;br /&gt;
Make sure the locale is set to UTF8.&lt;br /&gt;
Use:&lt;br /&gt;
  /bin/su - postgres&lt;br /&gt;
  mkdir /postgres/icats01 /postgres/icats01/data /postgres/icats01/log&lt;br /&gt;
  chmod g+w /postgres/icats01 /postgres/icats01/data /postgres/icats01/log&lt;br /&gt;
  initdb -D /postgres/icats01/data -X /postgres/icats01/log \&lt;br /&gt;
    -E UTF8 --locale=UTF8 -U postgres&lt;br /&gt;
&lt;br /&gt;
Get the startup script as:&lt;br /&gt;
  cp ~postgres/install/postgresql /etc/init.d/postresql&lt;br /&gt;
&lt;br /&gt;
As root:&lt;br /&gt;
  /etc/init.d/postgresql start&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Changes relative to e-iRODS 3.0 ===&lt;br /&gt;
&lt;br /&gt;
A git repository of the original tree for e-iRODS 3.0 had been created&lt;br /&gt;
by Andreas. It is accessible as&lt;br /&gt;
&amp;lt;code&amp;gt;ssh://datil.nsc.liu.se/srv/git/e-irods.git&amp;lt;/code&amp;gt;.&lt;br /&gt;
It is accessed via &amp;lt;code&amp;gt;ssh&amp;lt;/code&amp;gt; so first on the computer which&lt;br /&gt;
has the ssh keys:&lt;br /&gt;
  ssh-add&lt;br /&gt;
  ssh -A snic-irods-mgmt&lt;br /&gt;
Then&lt;br /&gt;
  git clone ssh://datil.nsc.liu.se/srv/git/e-irods.git&lt;br /&gt;
&lt;br /&gt;
In &amp;lt;code&amp;gt;./iRODS/config/config.mk&amp;lt;/code&amp;gt; various options changed.&lt;br /&gt;
Actually this is generated, it is config.mk.in to be&lt;br /&gt;
changed.&lt;br /&gt;
  vi ./iRODS/config/config.mk.in&lt;br /&gt;
&lt;br /&gt;
Define &amp;lt;code&amp;gt;POSTGRES_HOME&amp;lt;/code&amp;gt; here as it seems to be an option here&lt;br /&gt;
as well:&lt;br /&gt;
&lt;br /&gt;
Enable syslog logging (will also switch of file logging).&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
IRODS_SYSLOG = 1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
PAM authentication. This is now default, no need to change.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
PAM_AUTH = 1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Location of the executable, should be read only for iRODS.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
PAM_AUTH_CHECK_PROG=/usr/sbin/PamAuthCheck&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To get unique .irodsA credential tokens per session with a&lt;br /&gt;
TTL defaulting to 8 hrs instead of two weeks, making it&lt;br /&gt;
more difficult for an attacker to use a stolen .irodsA file.&lt;br /&gt;
Change in platform.mk to add CFLAG for previous define&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
PAM_AUTH_NO_EXTEND = 1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For the encryption of communication channel between&lt;br /&gt;
client/server when sending PAM password). Now on as default.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
USE_SSL = 1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Suggestion from Pontus.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
UNI_CODE = 1&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Update the version number. In file ./packaging/VERSION.&lt;br /&gt;
Like:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
EIRODSVERSION=3.0.1b1-snic2&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
  vi ./packaging/VERSION&lt;br /&gt;
  git commit -m &amp;quot;Customized local version&amp;quot; ./packaging/VERSION&lt;br /&gt;
&lt;br /&gt;
  git commit -m &amp;quot;Our config changes&amp;quot; config.mk.in&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
We leave this since reviewing the source we believe this is fixed.&lt;br /&gt;
But it's not. Replace in the function definition startIrods.&lt;br /&gt;
In the script &amp;lt;code&amp;gt;eirods_setup.pl&amp;lt;/code&amp;gt; the call to the function &amp;quot;run&amp;quot; to&lt;br /&gt;
run a script to start irods gets stuck. The call is to be replaced&lt;br /&gt;
with the &amp;quot;system&amp;quot; call (does not return diagnostics output but works).&lt;br /&gt;
  vi ./iRODS/scripts/perl/eirods_setup.pl&lt;br /&gt;
  git commit -m &amp;quot;Startup changed in function startIrods&amp;quot; ./iRODS/scripts/perl/eirods_setup.pl&lt;br /&gt;
&lt;br /&gt;
In &amp;lt;code&amp;gt;./iRODS/server/core/include/rodsServer.h&amp;lt;/code&amp;gt;&lt;br /&gt;
raise the number of connections MAX_SVR_SVR_CONNECT_CNT to some&lt;br /&gt;
number above a hundred at least.&lt;br /&gt;
Also, raise &amp;lt;code&amp;gt;NUM_READ_WORKER_THR&amp;lt;/code&amp;gt;.&lt;br /&gt;
  vi ./iRODS/server/core/include/rodsServer.h&lt;br /&gt;
  git commit -m &amp;quot;Raising resource limits&amp;quot; ./iRODS/server/core/include/rodsServer.h&lt;br /&gt;
&lt;br /&gt;
In &amp;lt;pre&amp;gt;./iRODS/scripts/perl/irodsctl.pl.orig&amp;lt;/pre&amp;gt; iRODS server is changed&lt;br /&gt;
to start up always in the background.&lt;br /&gt;
  vi ./iRODS/scripts/perl/irodsctl.pl&lt;br /&gt;
  git commit -m &amp;quot;Start always in the background and wait&amp;quot; ./iRODS/scripts/perl/irodsctl.pl&lt;br /&gt;
&lt;br /&gt;
More extensive changes in &amp;lt;pre&amp;gt;./packaging/postinstall.sh&amp;lt;/pre&amp;gt;.&lt;br /&gt;
  vi ./packaging/postinstall.sh&lt;br /&gt;
Running a command with su requires - to pick up the environment of that&lt;br /&gt;
user. Put cd inside the -c command string.&lt;br /&gt;
    :%s/su --shell/\/bin\/su - --shell/&lt;br /&gt;
  git commit -m &amp;quot;Run su with -&amp;quot; ./packaging/postinstall.s&lt;br /&gt;
&lt;br /&gt;
In &amp;lt;pre&amp;gt;./packaging/build.sh&amp;lt;/pre&amp;gt; find Postgresql installed under&lt;br /&gt;
&amp;lt;pre&amp;gt;/usr/postgres&amp;lt;/pre&amp;gt;.&lt;br /&gt;
  vi ./packaging/build.sh&lt;br /&gt;
  git commit -m &amp;quot;Find Postgresql under /usr&amp;quot; ./packaging/build.sh&lt;br /&gt;
&lt;br /&gt;
In the template listing of package files add profile with postgres&lt;br /&gt;
access. Can also take the copy of the Postgres profile.&lt;br /&gt;
The profile content is:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
export PATH=$PATH:/usr/postgres/bin&lt;br /&gt;
export LD_LIBRARY_PATH=$PATH:/usr/postgres/lib&lt;br /&gt;
export MANPATH=/usr/share/man:/usr/postgres/share/man&lt;br /&gt;
umask 022&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Add the file itself like:&lt;br /&gt;
  cat &amp;gt;packaging/eirods-dot-profile&lt;br /&gt;
  git add ./packaging/eirods-dot-profile&lt;br /&gt;
  git commit -m &amp;quot;New file profile&amp;quot; ./packaging/eirods-dot-profile&lt;br /&gt;
  vi ./packaging/eirods.list.template&lt;br /&gt;
  git commit -m &amp;quot;Profile addedd&amp;quot; ./packaging/eirods.list.template&lt;br /&gt;
&lt;br /&gt;
Startup script is broken, fix it.&lt;br /&gt;
  vi ./packaging/eirods&lt;br /&gt;
  git commit -m &amp;quot;Startup script fixed&amp;quot; ./packaging/eirods&lt;br /&gt;
&lt;br /&gt;
Finish.&lt;br /&gt;
  git commit&lt;br /&gt;
  git push&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Bulding the packages ===&lt;br /&gt;
&lt;br /&gt;
An additional dependency is:&lt;br /&gt;
  yum install fuse-devel&lt;br /&gt;
&lt;br /&gt;
Run the build shell script to build the iCAT server package.&lt;br /&gt;
  cd&lt;br /&gt;
  rm -rf rpmbuild&lt;br /&gt;
  cd src/e-irods&lt;br /&gt;
  cd packaging&lt;br /&gt;
  ./build.sh icat postgres 2&amp;gt;&amp;amp;1 | tee -a eirods-build.log&lt;br /&gt;
&lt;br /&gt;
For the resource server package:&lt;br /&gt;
  cd&lt;br /&gt;
  cd src/e-irods&lt;br /&gt;
  cd packaging&lt;br /&gt;
  ./build.sh resource 2&amp;gt;&amp;amp;1 | tee -a eirods-build.log&lt;br /&gt;
&lt;br /&gt;
Packages are created in:&lt;br /&gt;
  cd build&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== To uninstall ===&lt;br /&gt;
&lt;br /&gt;
Run:&lt;br /&gt;
  rpm -e eirods-3.0.1b1-0.x86_64&lt;br /&gt;
  /bin/su - postgres -c 'dropdb EICAT; dropuser eirods;'&lt;br /&gt;
  /usr/sbin/userdel eirods&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Install the eirods packages ===&lt;br /&gt;
&lt;br /&gt;
As root run rpm -i --nodeps to install the package which was&lt;br /&gt;
built on the management node.&lt;br /&gt;
&lt;br /&gt;
Get the environment for postgres since the install script&lt;br /&gt;
does not do /bin/su - to run .profile.&lt;br /&gt;
  . ~postgres/.profile&lt;br /&gt;
  export PS1='# '&lt;br /&gt;
&lt;br /&gt;
Install the package.&lt;br /&gt;
  cd /root/kits/eirods-3.0.1b1/rpm&lt;br /&gt;
  rpm -vv -i --nodeps eirods-3.0.1b1-snic2-64bit-icat-postgres-centos6.rpm&lt;br /&gt;
  rom -vv -i eirods-dev-3.0.1b1-snic2-64bit-centos6.rpm&lt;br /&gt;
&lt;br /&gt;
Check the output because finishes even when inside the postinstall&lt;br /&gt;
script fails.&lt;br /&gt;
&lt;br /&gt;
Check the log:&lt;br /&gt;
  view /var/lib/eirods/iRODS/installLogs/eirods_setup.log&lt;br /&gt;
&lt;br /&gt;
If the postinstall script fails to re-run it like:&lt;br /&gt;
  /var/lib/eirods/packaging/postinstall.sh /var/lib/eirods eirods icat post&lt;br /&gt;
gres postgres EICAT localhost 5432 eirods lly2YOjjPEHkM0p&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Modify the default zone and set password ===&lt;br /&gt;
&lt;br /&gt;
Run:&lt;br /&gt;
  /bin/su - eirods&lt;br /&gt;
  iadmin modzone tempZone name snicZone&lt;br /&gt;
&lt;br /&gt;
Confirm local zone change.&lt;br /&gt;
&lt;br /&gt;
Change the iRODS environment file accordingly.&lt;br /&gt;
  vi .irods/.irodsEnv&lt;br /&gt;
Replace tempZone with snicZone everywhere.&lt;br /&gt;
&lt;br /&gt;
Modify password:&lt;br /&gt;
  iadmin moduser rods password password&lt;br /&gt;
  iexit full&lt;br /&gt;
  iinit&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Client install ===&lt;br /&gt;
&lt;br /&gt;
The client will have prerequisits as:&lt;br /&gt;
  yum -y install openssl098e&lt;br /&gt;
  yum -y install postgresql-odbc&lt;br /&gt;
  yum -y install fuse fuse-libs&lt;br /&gt;
&lt;br /&gt;
Install the package:&lt;br /&gt;
  rpm -vv -i kits/eirods-3.0.1b1/eirods-3.0.1b1-snic2-64bit-resource-centos6.rpm&lt;br /&gt;
&lt;br /&gt;
Run setup:&lt;br /&gt;
  /bin/su - eirods&lt;br /&gt;
  ./packaging/setup_resource.sh&lt;br /&gt;
  snic-irods.nsc.liu.se&lt;br /&gt;
  1247&lt;br /&gt;
  snicZone&lt;br /&gt;
  rods&lt;br /&gt;
  password&lt;br /&gt;
&lt;br /&gt;
=== Create resources ===&lt;br /&gt;
&lt;br /&gt;
Create directories from admin workstation:&lt;br /&gt;
&lt;br /&gt;
  ssh root@snic-sr-001 mkdir /snic-sr-001/Vault&lt;br /&gt;
  ssh root@snic-sr-002 mkdir /snic-sr-002/Vault&lt;br /&gt;
  ssh root@snic-sr-003 mkdir /snic-sr-003/Vault&lt;br /&gt;
  ssh root@snic-sr-004 mkdir /snic-sr-004/Vault&lt;br /&gt;
&lt;br /&gt;
  ssh root@snic-sr-001 chown eirods.eirods /snic-sr-001/Vault&lt;br /&gt;
  ssh root@snic-sr-002 chown eirods.eirods /snic-sr-002/Vault&lt;br /&gt;
  ssh root@snic-sr-003 chown eirods.eirods /snic-sr-003/Vault&lt;br /&gt;
  ssh root@snic-sr-004 chown eirods.eirods /snic-sr-004/Vault&lt;br /&gt;
&lt;br /&gt;
Create resources on the iCAT server:&lt;br /&gt;
&lt;br /&gt;
  iadmin mkresc snic-sr-001-lfs01 &amp;quot;unix file system&amp;quot; snic-sr-001.nsc.liu.se:/snic-sr-001/Vault&lt;br /&gt;
  iadmin mkresc snic-sr-002-lfs01 &amp;quot;unix file system&amp;quot; snic-sr-002.nsc.liu.se:/snic-sr-002/Vault&lt;br /&gt;
  iadmin mkresc snic-sr-003-lfs01 &amp;quot;unix file system&amp;quot; snic-sr-003.nsc.liu.se:/snic-sr-003/Vault&lt;br /&gt;
  iadmin mkresc snic-sr-004-lfs01 &amp;quot;unix file system&amp;quot; snic-sr-004.nsc.liu.se:/snic-sr-004/Vault&lt;br /&gt;
&lt;br /&gt;
Create directories from the admin workstation:&lt;br /&gt;
&lt;br /&gt;
  irods-do ssh &amp;quot;/bin/su - eirods -c \&amp;quot;mkdir /swestore/eirods\&amp;quot;&amp;quot;&lt;br /&gt;
  irods-do ssh &amp;quot;/bin/su - eirods -c \&amp;quot;mkdir /swestore/eirods/Vault\&amp;quot;&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Create nfs resources:&lt;br /&gt;
&lt;br /&gt;
  iadmin mkresc snic-sr-001-nfs01 &amp;quot;unix file system&amp;quot; snic-sr-001.nsc.liu.se:/swestore/eirods/Vault&lt;br /&gt;
  iadmin mkresc snic-sr-002-nfs01 &amp;quot;unix file system&amp;quot; snic-sr-002.nsc.liu.se:/swestore/eirods/Vault&lt;br /&gt;
  iadmin mkresc snic-sr-003-nfs01 &amp;quot;unix file system&amp;quot; snic-sr-003.nsc.liu.se:/swestore/eirods/Vault&lt;br /&gt;
  iadmin mkresc snic-sr-004-nfs01 &amp;quot;unix file system&amp;quot; snic-sr-004.nsc.liu.se:/swestore/eirods/Vault&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Test composable resource replication ===&lt;br /&gt;
&lt;br /&gt;
Create composable test resource:&lt;br /&gt;
  iadmin mkresc tmp1 replication&lt;br /&gt;
  iadmin mkresc tmp11 &amp;quot;unix file system&amp;quot; snic-sr-001.nsc.liu.se:/tmp/Vault1&lt;br /&gt;
  iadmin mkresc tmp12 &amp;quot;unix file system&amp;quot; snic-sr-002.nsc.liu.se:/tmp/Vault2&lt;br /&gt;
  iadmin addchildtoresc tmp1 tmp11&lt;br /&gt;
  iadmin addchildtoresc tmp1 tmp12&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Create default resource ===&lt;br /&gt;
&lt;br /&gt;
/bin/su - eirods&lt;br /&gt;
  iadmin mkresc snicdefResc &amp;quot;unix file system&amp;quot; snic-sr-001.nsc.liu.se:/swes&lt;br /&gt;
tore/eirods/snicdefResc/Vault&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Accessing files as another user ===&lt;br /&gt;
&lt;br /&gt;
Set environment variable:&lt;br /&gt;
  export clientUserName=user&lt;br /&gt;
&lt;br /&gt;
Then you can run icommands as user.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Setting up project hierarchy ===&lt;br /&gt;
&lt;br /&gt;
As eirods user run:&lt;br /&gt;
  imkdir /snicZone/proj/p1&lt;br /&gt;
  iadmin mkgroup p1&lt;br /&gt;
  iadmin atg p1 u1&lt;br /&gt;
  ichmod -r read p1 /snicZone/proj/p1&lt;br /&gt;
  ichmod -r write p1 /snicZone/proj/p1&lt;br /&gt;
  ichmod -r inherit /snicZone/proj/p1&lt;br /&gt;
Any member of p1 should able to read/write&lt;br /&gt;
everything under the project group directory&lt;br /&gt;
tree.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== Security efix ===&lt;br /&gt;
&lt;br /&gt;
Do:&lt;br /&gt;
  /bin/su - eirods&lt;br /&gt;
  cd&lt;br /&gt;
  cd iRODS/server/bin/cmd&lt;br /&gt;
  mkdir -p /var/lib/eirods/save/cmd-removed&lt;br /&gt;
  mv hello test_execstream.py univMSSInterface.sh /var/lib/eirods/save/cmd-removed/&lt;br /&gt;
&lt;br /&gt;
== Supported clients ==&lt;br /&gt;
&lt;br /&gt;
: iDrop web - Point your Web browser to [https://iweb.swestore.se iweb.swestore.se]&lt;br /&gt;
: E-iRODS iCommands - Command line client [http://eirods.org/download/ Download E-iRODS icommands]&lt;br /&gt;
&lt;br /&gt;
SweStore iRODS uses PAM authentication and SweStore yubikeys. With a simple touch of a button, a 44 character one-time password is generated and sent to the system.&lt;br /&gt;
&lt;br /&gt;
The community iRODS client also should work, with PAM authentication e.g.&lt;br /&gt;
the following changes to the Makefile iRODS/config/config.mk and a recompile:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
PAM_AUTH = 1&lt;br /&gt;
PAM_AUTH_NO_EXTEND = 1&lt;br /&gt;
USE_SSL = 1 &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== SweStore iRODS usage documentation  ===&lt;br /&gt;
&lt;br /&gt;
To use the system you need to have the E-iRODS command line client installed or using iDROP web. &lt;br /&gt;
&lt;br /&gt;
==== Command line client ====&lt;br /&gt;
&lt;br /&gt;
For Linux systems the iRODS commandline client is available as an installable package for various&lt;br /&gt;
Linux platforms from the e-iRODS website downloads section.&lt;br /&gt;
&lt;br /&gt;
The command line client is natural to use for Unix users.&lt;br /&gt;
There are versions of the usual ls, rm, mv, mkdir, pwd, rsync&lt;br /&gt;
commands prefixed with an i for iRODS, i.e. irm, imv, imkdir etc.&lt;br /&gt;
&lt;br /&gt;
As expected iput and iget move files to and from the irods system.&lt;br /&gt;
All these commands print short help when using the -h option.&lt;br /&gt;
&lt;br /&gt;
===== iCommands environment file =====&lt;br /&gt;
&lt;br /&gt;
There is an environment file .irodsEnv in the .irods subdirectory&lt;br /&gt;
of the home directory ($HOME/.irods/.irodsEnv) which contains information where and how&lt;br /&gt;
to access the iRODS metadata (iCAT) server.&lt;br /&gt;
&lt;br /&gt;
It looks like (placeholders are in &amp;lt;&amp;gt;):&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
irodsHost 'irods.swestore.se'&lt;br /&gt;
irodsPort 1247&lt;br /&gt;
irodsDefResource 'snicdefResc'&lt;br /&gt;
irodsHome '/snicZone/home/&amp;lt;email address&amp;gt;'&lt;br /&gt;
irodsCwd '/snicZone/home/&amp;lt;email address&amp;gt;'&lt;br /&gt;
irodsUserName '&amp;lt;email address&amp;gt;'&lt;br /&gt;
irodsZone 'snicZone'&lt;br /&gt;
irodsAuthScheme 'PAM'&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The iCAT server is irods.swestore.se.&lt;br /&gt;
The default irods zone name is snicZone.&lt;br /&gt;
The default resource is snicdefResc.&lt;br /&gt;
&lt;br /&gt;
With the corrent environment file all we need is a Yubikey and we can run the iinit command to authenticate to the iCAT server. After that we can use the usual iCommands for 8 hours.&lt;br /&gt;
&lt;br /&gt;
More details on the iCommands are available at&lt;br /&gt;
https://www.irods.org/index.php/icommands&lt;br /&gt;
&lt;br /&gt;
===== Using iCommands on SNIC HPC clusters =====&lt;br /&gt;
&lt;br /&gt;
On SNIC-clusters the icommands command line tools are either available in the PATH or by adding the irods module, e.g.&lt;br /&gt;
: module load irods&lt;br /&gt;
We also need to setup the iCommands environment file $HOME/.irods/.irodsEnv&lt;br /&gt;
&lt;br /&gt;
==== iDROP web client ====&lt;br /&gt;
&lt;br /&gt;
The web client is accessible via the URL https://iweb.swestore.se/.&lt;br /&gt;
A login screen will be presented first and your Yubikey should&lt;br /&gt;
be used to log in.&lt;br /&gt;
&lt;br /&gt;
==== Upstream documentation ====&lt;br /&gt;
Detailed documentation, papers and resources are available from&lt;br /&gt;
the [http://www.eirods.org E-iRODS web site]&lt;br /&gt;
&lt;br /&gt;
[http://www.irods.org Community iRODS]&lt;br /&gt;
&lt;br /&gt;
[https://groups.google.com/d/forum/irod-chat‎ User forum]&lt;br /&gt;
&lt;br /&gt;
= Center storage =&lt;br /&gt;
Centre storage, as defined by the SNIC storage group, is a storage solution that lives independently of the computational resources and can be accessed from all such resources at a centre. Key features include the ability to access the same filesystem the same way on all computational resources at a centre, and a unified structure and nomenclature for all centra. Unlike cluster storage which is tightly associated with a single cluster, and thus has a limited life-time, centre storage does not require the users to migrate their own data when clusters are decommissioned, not even when the storage hardware itself is being replaced.&lt;br /&gt;
&lt;br /&gt;
== Unified environment ==&lt;br /&gt;
To make the usage more transparent for SNIC users, a set of environment variables are available on all SNIC resources:&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;code&amp;gt;SNIC_BACKUP&amp;lt;/code&amp;gt; – the user's primary directory at the centre&amp;lt;br&amp;gt;(the part of the centre storage that is backed up)&lt;br /&gt;
* &amp;lt;code&amp;gt;SNIC_NOBACKUP&amp;lt;/code&amp;gt; – recommended directory for project storage without backup&amp;lt;br&amp;gt;(also on the centre storage)&lt;br /&gt;
* &amp;lt;code&amp;gt;SNIC_TMP&amp;lt;/code&amp;gt; – recommended directory for best performance during a job&amp;lt;br&amp;gt;(local disk on nodes if applicable)&lt;/div&gt;</summary>
		<author><name>Janos Nagy (NSC)</name></author>
		
	</entry>
	<entry>
		<id>http://docs.snic.se/w/index.php?title=Swestore-irods&amp;diff=5537</id>
		<title>Swestore-irods</title>
		<link rel="alternate" type="text/html" href="http://docs.snic.se/w/index.php?title=Swestore-irods&amp;diff=5537"/>
		<updated>2013-10-31T12:19:28Z</updated>

		<summary type="html">&lt;p&gt;Janos Nagy (NSC): /* iRODS */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Storage]]&lt;br /&gt;
[[Category:SweStore]]&lt;br /&gt;
&lt;br /&gt;
'''This is not official yet'''&lt;br /&gt;
&lt;br /&gt;
SNIC is building a storage infrastructure to complement the computational resources.&lt;br /&gt;
&lt;br /&gt;
Many forms of automated measurements can produce large amounts of data. In scientific areas such as high energy physics (the Large Hadron Collider at CERN), climate modeling, bioinformatics, bioimaging etc., the demands for storage are increasing dramatically. To serve these and other user communities, SNIC has appointed a working group to design a storage strategy, taking into account the needs on many levels and creating a unified storage infrastructure, which is now being implemented.&lt;br /&gt;
&lt;br /&gt;
Swestore is in collaboration with [http://www.ecds.se/ ECDS], [http://snd.gu.se/ SND], Bioimage Sweden, [http://www.bils.se/ BILS], [http://www.uppnex.uu.se/ UPPNEX],[http://wlcg.web.cern.ch/ WLCG], [http://www.nrm.se/ NaturHistoriska RiksMuseet].&lt;br /&gt;
&lt;br /&gt;
= National storage =&lt;br /&gt;
The Swestore Nationally Accessible Storage, commonly called just Swestore, is a robust, flexible and expandable long term storage system aimed at storing large amounts of data produced by various Swedish research projects. It is based on the [http://www.dcache.org dCache] and  [http://www.irods.org iRODS]&lt;br /&gt;
storage systems.&lt;br /&gt;
&lt;br /&gt;
Swestore is distributed across the SNIC centres [http://www.c3se.chalmers.se/ C3SE], [http://www.hpc2n.umu.se/ HPC2N], [http://www.lunarc.lu.se/ Lunarc], [http://www.nsc.liu.se/ NSC], [http://www.pdc.kth.se PDC] and [http://www.uppmax.uu.se Uppmax]. Data is stored in two copies with each copy at a different SNIC centre. This enables the system to cope with a multitude of issues ranging from a simple crash of a storage element to losing an entire site while still providing access to the stored data. &lt;br /&gt;
&lt;br /&gt;
One of the major advantages to the distributed nature of dCache and iRODS is the excellent aggregated transfer rates possible. This is achieved by bypassing a central node and having transfers going directly to/from the storage elements if the protocol allows it. The Swestore Nationally Accessible Storage system can achieve aggregated  transfer rates in excess of 100 Gigabit per second, but in practice this is limited by connectivity to each University (usually 10 Gbit/s) or a limited number of files (typically&lt;br /&gt;
max 1 Gbit/s per file/connection).&lt;br /&gt;
&lt;br /&gt;
== Support == &lt;br /&gt;
&lt;br /&gt;
If you have any issues using SweStore please do not hesitate to contact [mailto:support@swestore.se support@swestore.se].&lt;br /&gt;
&lt;br /&gt;
== Getting access ==&lt;br /&gt;
; Apply for storage&lt;br /&gt;
: Please follow the instructions on the [[Apply for storage on SweStore]] page.&lt;br /&gt;
&lt;br /&gt;
=== dCache ===&lt;br /&gt;
&lt;br /&gt;
==== Acquire an eScience client certificate ====&lt;br /&gt;
: Follow the instructions on [[Grid_certificates#Requesting_a_certificate|Requesting a certificate]] to get your client certificate. This step can be performed while waiting for the storage application to be approved and processed. Of course, if you already have a valid eScience certificate you don't need to acquire another one.&lt;br /&gt;
:; For Terena certificates&lt;br /&gt;
:: If intending to access SweStore from a SNIC resource, please make sure you also [[Exporting_a_client_certificate|export the certificate]], transfer it to the intended SNIC resource and [[Preparing_a_client_certificate|prepare it for use with grid tools]] (not necessarily needed with ARC 3.x, see [[Grid_certificates#Creating_a_proxy_certificate_using_the_Firefox.2FThunderbird_credential_store|proxy certificates using Firefox credential store]]).&lt;br /&gt;
:; For Nordugrid certificates&lt;br /&gt;
:: Please make sure to also [[Requesting_a_grid_certificate_from_the_Nordugrid_CA#Installing_the_certificate_in_your_browser|install your client certificate in your browser]].&lt;br /&gt;
; Request membership in the SweGrid VO&lt;br /&gt;
: Follow the instructions on [[Grid_certificates#Requesting_membership_in_the_SweGrid_VO|Requesting membership in the SweGrid VO]] to get added to the SweGrid Virtual Organisation (VO) and request membership to your allocated storage project.&lt;br /&gt;
&lt;br /&gt;
=== iRODS ===&lt;br /&gt;
&lt;br /&gt;
=== The SNIC iRODS system ===&lt;br /&gt;
&lt;br /&gt;
The SNIC iRODS system at NSC and it is running on two&lt;br /&gt;
physical servers as a collection of virtual machines.&lt;br /&gt;
&lt;br /&gt;
The iCAT server is dealing with the metadata. It is running&lt;br /&gt;
a Postgres database which containts information about where&lt;br /&gt;
to find any particular file in the system.&lt;br /&gt;
&lt;br /&gt;
There are four storage servers which got a small amount of&lt;br /&gt;
local disk space and they use the dCACHE system via NFS4 to&lt;br /&gt;
store larger amounts of data.&lt;br /&gt;
&lt;br /&gt;
There is a web server to facilitate access via iDROP web.&lt;br /&gt;
&lt;br /&gt;
Accessing the data is supported via the iRODS command line&lt;br /&gt;
clients, iDROP and iDROP web.&lt;br /&gt;
&lt;br /&gt;
Authentication is done preferably using Yubikey but traditional&lt;br /&gt;
password authentication is also possible.&lt;br /&gt;
&lt;br /&gt;
Currently we are running e-iRODS 3.0, Postgres 9.4 with ODBC 2.3.1&lt;br /&gt;
on CentOS 6.4.&lt;br /&gt;
&lt;br /&gt;
=== Using the SNIC iRODS system ====&lt;br /&gt;
&lt;br /&gt;
Deailed documentation, papers and resources are available from&lt;br /&gt;
the e-iRODS web site, http://www.eirods.org.&lt;br /&gt;
&lt;br /&gt;
Web site for the community iRODS is http://www.irods.org.&lt;br /&gt;
&lt;br /&gt;
To use the system we need to have the iRODS command line client,&lt;br /&gt;
iDROP or iDROP web installed. For Unix systems the iRODS command&lt;br /&gt;
line client is available as an installable package for various&lt;br /&gt;
Linux platforms from the e-iRODS website downloads section.&lt;br /&gt;
&lt;br /&gt;
The community iRODS clients also should work, they won't support&lt;br /&gt;
the latest e-iRODS features though. They are downloadable from&lt;br /&gt;
http://www.irods.org/. There are pre-built clients for Windows and&lt;br /&gt;
MAC OS as well.&lt;br /&gt;
&lt;br /&gt;
==== Command line client ====&lt;br /&gt;
&lt;br /&gt;
The command line client is natural to use for Unix users.&lt;br /&gt;
There are versions of the usual ls, rm, mv, mkdir, pwd, rsync&lt;br /&gt;
commands prefixed with an i for iRODS, lie irm, imv, imkdir etc.&lt;br /&gt;
&lt;br /&gt;
As expected iput and iget move files to and from the irods system.&lt;br /&gt;
All these commands print short help when using the -h option.&lt;br /&gt;
&lt;br /&gt;
To use these first we need to initialize the iRODS environment.&lt;br /&gt;
There is an environment file .irodsEnv in the .irods subdirectory&lt;br /&gt;
of the home directory which contains information where and how&lt;br /&gt;
to access the iRODS metadata (iCAT) server.&lt;br /&gt;
&lt;br /&gt;
There is a script with the name irods-client-setup which when&lt;br /&gt;
executed will try it's best to create an irods environment file&lt;br /&gt;
to use.&lt;br /&gt;
&lt;br /&gt;
It looks like (placeholders are in &amp;lt;&amp;gt;):&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
irodsHost '&amp;lt;fully qualified hostname with the dots&amp;gt;'&lt;br /&gt;
irodsPort 1247&lt;br /&gt;
irodsDefResource '&amp;lt;default iRODS resource name&amp;gt;'&lt;br /&gt;
irodsHome '/&amp;lt;irods zone name&amp;gt;/home/&amp;lt;user id&amp;gt;'&lt;br /&gt;
irodsCwd '/&amp;lt;irods zone name&amp;gt;/home/&amp;lt;user id&amp;gt;'&lt;br /&gt;
irodsUserName '&amp;lt;irods user id&amp;gt;'&lt;br /&gt;
irodsZone '&amp;lt;irods zone name&amp;gt;'&lt;br /&gt;
irodsAuthScheme 'PAM'&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The iCAT server is irods.swestore.se.&lt;br /&gt;
The default irods zone name is snicZone.&lt;br /&gt;
The default resource is snicdefResc.&lt;br /&gt;
&lt;br /&gt;
With the corrent envirnment file all we need is a Yubkey or a&lt;br /&gt;
password and we can run the iinit command to authenticate to&lt;br /&gt;
the iCAT server. After that we can use the usual i commands.&lt;br /&gt;
&lt;br /&gt;
More details on the i commands are available at&lt;br /&gt;
https://www.irods.org/index.php/icommands&lt;br /&gt;
&lt;br /&gt;
==== iDROP web client ====&lt;br /&gt;
&lt;br /&gt;
The web client is accessible via the URL https://iweb.swestore.se/.&lt;br /&gt;
A login screen will be presented first and your Yubikey shold&lt;br /&gt;
be used to log in. More documentation is available at&lt;br /&gt;
https://www.irods.org/index.php/iRODS_Browser/.&lt;br /&gt;
&lt;br /&gt;
==== Acquire a SweStore YubiKey ====&lt;br /&gt;
&lt;br /&gt;
For authentication [http://www.yubico.com/products/yubikey-hardware/yubikey/ Yubikey] one-time passwords (OTP) are used. With a simple touch of a button, a 44 character one-time password is generated and sent to the system. &lt;br /&gt;
&lt;br /&gt;
When you apply for storage, please provide your email address and a physical address where the yubikey should be sent.&lt;br /&gt;
&lt;br /&gt;
==Difference between dCache and iRODS==&lt;br /&gt;
&lt;br /&gt;
== dCache ==&lt;br /&gt;
To protect against silent data corruption the dCache storage system checksums all stored data and periodically verifies the data using this checksum.&lt;br /&gt;
&lt;br /&gt;
The system does NOT yet provide protection against user errors like inadvertent file deletions and so on.&lt;br /&gt;
&lt;br /&gt;
=== Access protocols ===&lt;br /&gt;
; Currently supported protocols&lt;br /&gt;
: GridFTP - gsiftp://gsiftp.swestore.se/&lt;br /&gt;
: Storage Resource Manager - srm://srm.swegrid.se/&lt;br /&gt;
: Hypertext Transfer Protocol (read-only), Web Distributed Authoring and Versioning - http://webdav.swestore.se/ (unauthenticated), https://webdav.swestore.se/&lt;br /&gt;
: NFS4.1&lt;br /&gt;
&lt;br /&gt;
For authentication eScience certificates are used, which provides a higher level of security than legacy username/password schemes.&lt;br /&gt;
&lt;br /&gt;
=== Download and upload data ===&lt;br /&gt;
; Interactive browsing and manipulation of single files&lt;br /&gt;
: SweStore is accessible in your web browser in two ways, as a directory index interface at https://webdav.swestore.se/ and with an interactive file manager at https://webdav.swestore.se/browser/. '''Note''' that the interactive file manager has a lot of features and functions not supported in SweStore, only the basic file transfer features are supported.&lt;br /&gt;
: To browse private data you need to have your certificate installed in your browser (default with Terena certificates, see above). Projects are organized under the &amp;lt;code&amp;gt;/snic&amp;lt;/code&amp;gt; directory as &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;https://webdav.swestore.se/snic/YOUR_PROJECT_NAME/&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;.&lt;br /&gt;
; Upload and delete data interactively or with automation&lt;br /&gt;
There are several tools that are capable of using the protocols provided by SweStore national storage.&lt;br /&gt;
For interactive usage on SNIC clusters we recommend using the ARC tools which should be installed on all SNIC resources.&lt;br /&gt;
As an integration point for building scripts and automated systems we suggest using the curl program and library.&lt;br /&gt;
: Use the ARC client. Please see the instructions for [[Accessing SweStore national storage with the ARC client]]. '''Recommended''' method when logged in on SNIC resources.&lt;br /&gt;
: Use lftp. Please see the instructions for [[Accessing SweStore national storage with lftp]].&lt;br /&gt;
: Use cURL. Please see the instructions for [[Accessing SweStore national storage with cURL]].&lt;br /&gt;
: Use globus-url-copy. Please see the instructions for [[Accessing SweStore national storage with globus-url-copy]].&lt;br /&gt;
&lt;br /&gt;
=== Tools and scripts ===&lt;br /&gt;
&lt;br /&gt;
There exists a number of tools and utilities developed externally that can be useful. Here are some links:&lt;br /&gt;
&lt;br /&gt;
* [https://github.com/samuell/arc_tools ARC_Tools] - Convenience scripts for the arc client (Only a recursive rmdir so far).&lt;br /&gt;
* [http://sourceforge.net/projects/arc-gui-clients ARC Graphical Clients] - Contains the ARC Storage Explorer (SweStore supported development).&lt;br /&gt;
* Transfer script, [[SweStore/swetrans_arc|swetrans_arc]], provided by Adam Peplinski / Philipp Schlatter&lt;br /&gt;
* [http://www.nordugrid.org/documents/SWIG-wrapped-ARC-Python-API.pdf Documentation of the ARC Python API (PDF)]&lt;br /&gt;
&lt;br /&gt;
=== Slides and more ===&lt;br /&gt;
&lt;br /&gt;
[http://docs.snic.se/wiki/Swestore/Lund_Seminar_Apr18 Slides and material from seminar for Lund users on April 18th]&lt;br /&gt;
&lt;br /&gt;
=== Usage monitoring ===&lt;br /&gt;
* [http://status.swestore.se/munin/monitor/monitor/ Per Project Monitoring of Swestore usage]&lt;br /&gt;
&lt;br /&gt;
== iRODS ==&lt;br /&gt;
&lt;br /&gt;
=== Supported clients ===&lt;br /&gt;
&lt;br /&gt;
: iDrop web - Point your Web browser to [https://iweb.swestore.se iweb.swestore.se]&lt;br /&gt;
: Command line client [http://eirods.org/download/ eirods icommands] [[SweStore/iRODS_icommand|How to use icommand on SNIC clusters]]&lt;br /&gt;
&lt;br /&gt;
=== The SweStore iRODS system ===&lt;br /&gt;
&lt;br /&gt;
The SweStore iRODS system at NSC and it is running on two&lt;br /&gt;
physical servers as a collection of virtual machines.&lt;br /&gt;
&lt;br /&gt;
The iCAT server is dealing with the metadata. It is running&lt;br /&gt;
a Postgres database which containts information about where&lt;br /&gt;
to find any particular file in the system.&lt;br /&gt;
&lt;br /&gt;
There are four storage servers which got a small amount of&lt;br /&gt;
local disk space and they use the dCACHE system via NFS4 to&lt;br /&gt;
store larger amounts of data.&lt;br /&gt;
&lt;br /&gt;
=== Using the SweStore iRODS system ===&lt;br /&gt;
&lt;br /&gt;
Deailed documentation, papers and resources are available from&lt;br /&gt;
the e-iRODS web site, http://www.eirods.org.&lt;br /&gt;
&lt;br /&gt;
Web site for the community iRODS is http://www.irods.org.&lt;br /&gt;
&lt;br /&gt;
To use the system you need to have the iRODS command line client installed or using iDROP web. &lt;br /&gt;
For Unix systems the iRODS commandline client is available as an installable package for various&lt;br /&gt;
Linux platforms from the e-iRODS website downloads section.&lt;br /&gt;
&lt;br /&gt;
The community iRODS client also should work, but you need to modify configuration (iRODS/config/config.mk):&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
PAM_AUTH = 1&lt;br /&gt;
PAM_AUTH_NO_EXTEND = 1&lt;br /&gt;
USE_SSL = 1 &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Command line client ====&lt;br /&gt;
&lt;br /&gt;
The command line client is natural to use for Unix users.&lt;br /&gt;
There are versions of the usual ls, rm, mv, mkdir, pwd, rsync&lt;br /&gt;
commands prefixed with an i for iRODS, i.e. irm, imv, imkdir etc.&lt;br /&gt;
&lt;br /&gt;
As expected iput and iget move files to and from the irods system.&lt;br /&gt;
All these commands print short help when using the -h option.&lt;br /&gt;
&lt;br /&gt;
To use these first we need to initialize the iRODS environment.&lt;br /&gt;
There is an environment file .irodsEnv in the .irods subdirectory&lt;br /&gt;
of the home directory which contains information where and how&lt;br /&gt;
to access the iRODS metadata (iCAT) server.&lt;br /&gt;
&lt;br /&gt;
It looks like (placeholders are in &amp;lt;&amp;gt;):&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
irodsHost 'irods.swestore.se'&lt;br /&gt;
irodsPort 1247&lt;br /&gt;
irodsDefResource 'snicdefResc'&lt;br /&gt;
irodsHome '/snicZone/home/&amp;lt;email address&amp;gt;'&lt;br /&gt;
irodsCwd '/snicZone/home/&amp;lt;email address&amp;gt;'&lt;br /&gt;
irodsUserName '&amp;lt;email address&amp;gt;'&lt;br /&gt;
irodsZone 'snicZone'&lt;br /&gt;
irodsAuthScheme 'PAM'&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The iCAT server is irods.swestore.se.&lt;br /&gt;
The default irods zone name is snicZone.&lt;br /&gt;
The default resource is snicdefResc.&lt;br /&gt;
&lt;br /&gt;
With the corrent environment file all we need is a Yubkey and we can run the iinit command to authenticate to the iCAT server. After that we can use the usual iCommands. The ticket is valid 8 hrs.&lt;br /&gt;
&lt;br /&gt;
More details on the i commands are available at&lt;br /&gt;
https://www.irods.org/index.php/icommands&lt;br /&gt;
&lt;br /&gt;
==== iDROP web client ====&lt;br /&gt;
&lt;br /&gt;
The web client is accessible via the URL https://iweb.swestore.se/.&lt;br /&gt;
A login screen will be presented first and your Yubikey should&lt;br /&gt;
be used to log in.&lt;br /&gt;
&lt;br /&gt;
= Center storage =&lt;br /&gt;
Centre storage, as defined by the SNIC storage group, is a storage solution that lives independently of the computational resources and can be accessed from all such resources at a centre. Key features include the ability to access the same filesystem the same way on all computational resources at a centre, and a unified structure and nomenclature for all centra. Unlike cluster storage which is tightly associated with a single cluster, and thus has a limited life-time, centre storage does not require the users to migrate their own data when clusters are decommissioned, not even when the storage hardware itself is being replaced.&lt;br /&gt;
&lt;br /&gt;
== Unified environment ==&lt;br /&gt;
To make the usage more transparent for SNIC users, a set of environment variables are available on all SNIC resources:&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;code&amp;gt;SNIC_BACKUP&amp;lt;/code&amp;gt; – the user's primary directory at the centre&amp;lt;br&amp;gt;(the part of the centre storage that is backed up)&lt;br /&gt;
* &amp;lt;code&amp;gt;SNIC_NOBACKUP&amp;lt;/code&amp;gt; – recommended directory for project storage without backup&amp;lt;br&amp;gt;(also on the centre storage)&lt;br /&gt;
* &amp;lt;code&amp;gt;SNIC_TMP&amp;lt;/code&amp;gt; – recommended directory for best performance during a job&amp;lt;br&amp;gt;(local disk on nodes if applicable)&lt;/div&gt;</summary>
		<author><name>Janos Nagy (NSC)</name></author>
		
	</entry>
</feed>