<?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=Andreas+Lindqvist+%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=Andreas+Lindqvist+%28NSC%29"/>
	<link rel="alternate" type="text/html" href="http://docs.snic.se/wiki/Special:Contributions/Andreas_Lindqvist_(NSC)"/>
	<updated>2026-05-01T03:53:55Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.31.10</generator>
	<entry>
		<id>http://docs.snic.se/w/index.php?title=Swestore-irods&amp;diff=5882</id>
		<title>Swestore-irods</title>
		<link rel="alternate" type="text/html" href="http://docs.snic.se/w/index.php?title=Swestore-irods&amp;diff=5882"/>
		<updated>2014-06-26T10:42:45Z</updated>

		<summary type="html">&lt;p&gt;Andreas Lindqvist (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; 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/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 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>Andreas Lindqvist (NSC)</name></author>
		
	</entry>
	<entry>
		<id>http://docs.snic.se/w/index.php?title=IDrop_web&amp;diff=5713</id>
		<title>IDrop web</title>
		<link rel="alternate" type="text/html" href="http://docs.snic.se/w/index.php?title=IDrop_web&amp;diff=5713"/>
		<updated>2014-02-24T10:04:46Z</updated>

		<summary type="html">&lt;p&gt;Andreas Lindqvist (NSC): moved Swestore-irods/IDrop web to IDrop web over redirect&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= iDrop web =&lt;br /&gt;
&lt;br /&gt;
For web access, simply log in at [https://iweb.swestore.se https://iweb.swestore.se] with your assigned username and yubikey.&lt;br /&gt;
&lt;br /&gt;
[[File:idropLogin.png]]&lt;br /&gt;
&lt;br /&gt;
After logging in, you will be on your home view (probably Starred Files). To browse your accessible directory tree, select Browse in the black menu line on top.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:idropHomeView.png]]&lt;br /&gt;
&lt;br /&gt;
== Browsing ==&lt;br /&gt;
&lt;br /&gt;
In browsing mode, you can move around in your accessible collection tree. To enter browsing mode, select Browse from the menu bar on top.&lt;br /&gt;
&lt;br /&gt;
The interface should be similar to other file browsers although object information is somewhat more focused on object information than normally (one can switch between object information and collection browsing with the “Browse” and “Info” buttons).&lt;br /&gt;
&lt;br /&gt;
== Uploading ==&lt;br /&gt;
&lt;br /&gt;
You can upload files by selecting Quick upload in your home view or selecting Upload in the browse view to put your file in a particular collection. The upload dialog should mention where files are stored (“parent collection”)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:idropQuickUpload.png]]&lt;br /&gt;
&lt;br /&gt;
== Interface walk through ==&lt;br /&gt;
&lt;br /&gt;
This intends to be an explanation of most parts of the iDrop web interface, feel free to skip this part.&lt;br /&gt;
&lt;br /&gt;
=== Top menu ===&lt;br /&gt;
&lt;br /&gt;
[[Image:irods-web-top.png|frame|none|alt=]]&lt;br /&gt;
&lt;br /&gt;
The top menu line (in black) gives access to generic short cuts and default options. The actual functions are currently&lt;br /&gt;
&lt;br /&gt;
* Home&lt;br /&gt;
takes you to your home view, featuring starred and shared files and collections.&lt;br /&gt;
* Browse&lt;br /&gt;
takes you to the browsing interface, letting you walk around your file tree.&lt;br /&gt;
* Profile&lt;br /&gt;
let's you see and modify your profile page. This is currently not used.&lt;br /&gt;
* Search&lt;br /&gt;
gives access to search functionality, unfortunately, in the current version of the web interface this is limited to tags previously assigned.&lt;br /&gt;
* Tools&lt;br /&gt;
let’s you access various tools. Currently, the only such tool is a quick start of iDrop Desktop which doesn’t work correctly for the moment.&lt;br /&gt;
* Account&lt;br /&gt;
various more account and session related features can be found here, particularly, the logout function is located under this menu option. The menu has also&lt;br /&gt;
options to ‘Change password’ (which is not possible for the moment) and changing the default resource files are stored in (don’t change this).&lt;br /&gt;
&lt;br /&gt;
=== Home view ===&lt;br /&gt;
&lt;br /&gt;
The home view gives quick access to selected files (either starred or shared) and an upload button.&lt;br /&gt;
&lt;br /&gt;
[[File:idropHomeView.png]]&lt;br /&gt;
&lt;br /&gt;
* Quick upload&lt;br /&gt;
opens a dialog to store files in a collection called uploads in your home collection.&lt;br /&gt;
* Starred Files&lt;br /&gt;
list your starred files. The list view will have buttons for quick download, browse to file and show the description given to the file when it was starred as well as the file name.&lt;br /&gt;
* Starred Folders&lt;br /&gt;
list your starred collections. The list view will have buttons for a uploads to that collection, browse to collection and show the description given to the file when it was starred as well as the collection name.* * Folders shared by me&lt;br /&gt;
this should list collections you’ve shared with others. It is currently not always available.&lt;br /&gt;
* Folders shared with me&lt;br /&gt;
this should list collections shared with you by others. It is currently not always available.&lt;br /&gt;
&lt;br /&gt;
=== Browse view ===&lt;br /&gt;
&lt;br /&gt;
This is the main view which let’s you walk around your file tree, upload and download files as well as work with metadata and sharing.&lt;br /&gt;
&lt;br /&gt;
[[File:irodsBrowseView.png]]&lt;br /&gt;
&lt;br /&gt;
Just below the menu bar is information about where you’re currently browsing as well as quick links to collections earlier in the path.&lt;br /&gt;
&lt;br /&gt;
Next comes a row of buttons:&lt;br /&gt;
&lt;br /&gt;
[[File:irodsButtonRow1.png]]&lt;br /&gt;
&lt;br /&gt;
* Refresh&lt;br /&gt;
updates the current view.&lt;br /&gt;
* New folder&lt;br /&gt;
creates a new collection in the currently selected path&lt;br /&gt;
* Browse&lt;br /&gt;
chooses browsing mode - collections will show contents instead of information for the collection&lt;br /&gt;
* Info&lt;br /&gt;
chooses information mode - collections will show information instead of contents.&lt;br /&gt;
&lt;br /&gt;
Next comes the actual browsing area divided in two panes; to the left is the actual browsing pane which shows the directory tree from the current anchor point. To the right is information for the currently selected object or a collection list if a collections is selected and “Browse” has been selected.&lt;br /&gt;
&lt;br /&gt;
==== Browsing pane ====&lt;br /&gt;
&lt;br /&gt;
The browsing pane has three buttons&lt;br /&gt;
&lt;br /&gt;
[[File:irodsButtonRow2.png]]&lt;br /&gt;
&lt;br /&gt;
* Refresh&lt;br /&gt;
refreshes the view. Can be needed to show changes done from other places after the page was loaded&lt;br /&gt;
* Home&lt;br /&gt;
resets the browsing to the home directory of the logged in user&lt;br /&gt;
* Up&lt;br /&gt;
resets root to the actual top of the tree, this can be needed if the user has previously restricted the tree using “Set this as the root of the tree”&lt;br /&gt;
&lt;br /&gt;
below these buttons is an expandable view of the tree where you can click the arrows to expand/collapse collections. You can select a data object or collection to view information or for collections see a content listing in the information pane.&lt;br /&gt;
&lt;br /&gt;
===== Information pane =====&lt;br /&gt;
&lt;br /&gt;
The information pane has two modes, Browse (for collections only) or Info. You can select which mode you want to use with the corresponding button in the row above the pane.&lt;br /&gt;
&lt;br /&gt;
====== Browse mode ======&lt;br /&gt;
&lt;br /&gt;
For data objects, Browse mode is identical to Info mode. For collections, the contents of the collection is listed. Each row has the following columns&lt;br /&gt;
&lt;br /&gt;
[[File:irodsBrowseViewZoom.png]]&lt;br /&gt;
&lt;br /&gt;
* Expansion&lt;br /&gt;
this row allows expansion/collapse of a particular object within the Browse view&lt;br /&gt;
* Action&lt;br /&gt;
by selecting this box, particular actions can be done for multiple actions at the same time&lt;br /&gt;
* Name&lt;br /&gt;
the name of the object&lt;br /&gt;
* Type&lt;br /&gt;
this column lists the type of the selected object. The most common ones are COLLECTION and DATA_OBJECT&lt;br /&gt;
* Modified&lt;br /&gt;
timestamp for the last recorded modification&lt;br /&gt;
* Size&lt;br /&gt;
size of the object (0 bytes for collections)&lt;br /&gt;
&lt;br /&gt;
All of the actual data rows (Name, Type, Modified and Size) can be used for sorting ascending/descending.&lt;br /&gt;
&lt;br /&gt;
Through the button at the top of the Action column, selected objects in that column can be added to the “cart” for later download or deleted.&lt;br /&gt;
&lt;br /&gt;
====== Info mode ======&lt;br /&gt;
&lt;br /&gt;
The info mode lets the user display and (possibly) modify information about the selected object.&lt;br /&gt;
&lt;br /&gt;
[[File:irodsInfoView.png]]&lt;br /&gt;
&lt;br /&gt;
Object information is displayed under 5 different tabs&lt;br /&gt;
&lt;br /&gt;
* Info&lt;br /&gt;
displays general file metadata&lt;br /&gt;
* Metadata&lt;br /&gt;
allows the display and editing of custom (AVU) metadata&lt;br /&gt;
* Sharing&lt;br /&gt;
here you can find various information and operations related to sharing&lt;br /&gt;
* Tickets&lt;br /&gt;
tab for handling of tickets (a system for giving access to certain resources, currently not used by BILS).&lt;br /&gt;
* Audit&lt;br /&gt;
shows audit data, currently not used byt BILS.&lt;br /&gt;
&lt;br /&gt;
There are some things worth to note:&lt;br /&gt;
&lt;br /&gt;
Under Info, various tags can be added to objects. These are currently the only thing that are searchable with iDrop web.&lt;br /&gt;
&lt;br /&gt;
For data objects, it’s possible to see information about where the object is stored under Info (Data path, Resource).&lt;/div&gt;</summary>
		<author><name>Andreas Lindqvist (NSC)</name></author>
		
	</entry>
	<entry>
		<id>http://docs.snic.se/w/index.php?title=Swestore-irods/IDrop_web&amp;diff=5714</id>
		<title>Swestore-irods/IDrop web</title>
		<link rel="alternate" type="text/html" href="http://docs.snic.se/w/index.php?title=Swestore-irods/IDrop_web&amp;diff=5714"/>
		<updated>2014-02-24T10:04:46Z</updated>

		<summary type="html">&lt;p&gt;Andreas Lindqvist (NSC): moved Swestore-irods/IDrop web to IDrop web over redirect&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;#REDIRECT [[IDrop web]]&lt;/div&gt;</summary>
		<author><name>Andreas Lindqvist (NSC)</name></author>
		
	</entry>
	<entry>
		<id>http://docs.snic.se/w/index.php?title=IDrop_web&amp;diff=5711</id>
		<title>IDrop web</title>
		<link rel="alternate" type="text/html" href="http://docs.snic.se/w/index.php?title=IDrop_web&amp;diff=5711"/>
		<updated>2014-02-24T10:00:19Z</updated>

		<summary type="html">&lt;p&gt;Andreas Lindqvist (NSC): moved IDrop web to Swestore-irods/IDrop web&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= iDrop web =&lt;br /&gt;
&lt;br /&gt;
For web access, simply log in at [https://iweb.swestore.se https://iweb.swestore.se] with your assigned username and yubikey.&lt;br /&gt;
&lt;br /&gt;
[[File:idropLogin.png]]&lt;br /&gt;
&lt;br /&gt;
After logging in, you will be on your home view (probably Starred Files). To browse your accessible directory tree, select Browse in the black menu line on top.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:idropHomeView.png]]&lt;br /&gt;
&lt;br /&gt;
== Browsing ==&lt;br /&gt;
&lt;br /&gt;
In browsing mode, you can move around in your accessible collection tree. To enter browsing mode, select Browse from the menu bar on top.&lt;br /&gt;
&lt;br /&gt;
The interface should be similar to other file browsers although object information is somewhat more focused on object information than normally (one can switch between object information and collection browsing with the “Browse” and “Info” buttons).&lt;br /&gt;
&lt;br /&gt;
== Uploading ==&lt;br /&gt;
&lt;br /&gt;
You can upload files by selecting Quick upload in your home view or selecting Upload in the browse view to put your file in a particular collection. The upload dialog should mention where files are stored (“parent collection”)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[File:idropQuickUpload.png]]&lt;br /&gt;
&lt;br /&gt;
== Interface walk through ==&lt;br /&gt;
&lt;br /&gt;
This intends to be an explanation of most parts of the iDrop web interface, feel free to skip this part.&lt;br /&gt;
&lt;br /&gt;
=== Top menu ===&lt;br /&gt;
&lt;br /&gt;
[[Image:irods-web-top.png|frame|none|alt=]]&lt;br /&gt;
&lt;br /&gt;
The top menu line (in black) gives access to generic short cuts and default options. The actual functions are currently&lt;br /&gt;
&lt;br /&gt;
* Home&lt;br /&gt;
takes you to your home view, featuring starred and shared files and collections.&lt;br /&gt;
* Browse&lt;br /&gt;
takes you to the browsing interface, letting you walk around your file tree.&lt;br /&gt;
* Profile&lt;br /&gt;
let's you see and modify your profile page. This is currently not used.&lt;br /&gt;
* Search&lt;br /&gt;
gives access to search functionality, unfortunately, in the current version of the web interface this is limited to tags previously assigned.&lt;br /&gt;
* Tools&lt;br /&gt;
let’s you access various tools. Currently, the only such tool is a quick start of iDrop Desktop which doesn’t work correctly for the moment.&lt;br /&gt;
* Account&lt;br /&gt;
various more account and session related features can be found here, particularly, the logout function is located under this menu option. The menu has also&lt;br /&gt;
options to ‘Change password’ (which is not possible for the moment) and changing the default resource files are stored in (don’t change this).&lt;br /&gt;
&lt;br /&gt;
=== Home view ===&lt;br /&gt;
&lt;br /&gt;
The home view gives quick access to selected files (either starred or shared) and an upload button.&lt;br /&gt;
&lt;br /&gt;
[[File:idropHomeView.png]]&lt;br /&gt;
&lt;br /&gt;
* Quick upload&lt;br /&gt;
opens a dialog to store files in a collection called uploads in your home collection.&lt;br /&gt;
* Starred Files&lt;br /&gt;
list your starred files. The list view will have buttons for quick download, browse to file and show the description given to the file when it was starred as well as the file name.&lt;br /&gt;
* Starred Folders&lt;br /&gt;
list your starred collections. The list view will have buttons for a uploads to that collection, browse to collection and show the description given to the file when it was starred as well as the collection name.* * Folders shared by me&lt;br /&gt;
this should list collections you’ve shared with others. It is currently not always available.&lt;br /&gt;
* Folders shared with me&lt;br /&gt;
this should list collections shared with you by others. It is currently not always available.&lt;br /&gt;
&lt;br /&gt;
=== Browse view ===&lt;br /&gt;
&lt;br /&gt;
This is the main view which let’s you walk around your file tree, upload and download files as well as work with metadata and sharing.&lt;br /&gt;
&lt;br /&gt;
[[File:irodsBrowseView.png]]&lt;br /&gt;
&lt;br /&gt;
Just below the menu bar is information about where you’re currently browsing as well as quick links to collections earlier in the path.&lt;br /&gt;
&lt;br /&gt;
Next comes a row of buttons:&lt;br /&gt;
&lt;br /&gt;
[[File:irodsButtonRow1.png]]&lt;br /&gt;
&lt;br /&gt;
* Refresh&lt;br /&gt;
updates the current view.&lt;br /&gt;
* New folder&lt;br /&gt;
creates a new collection in the currently selected path&lt;br /&gt;
* Browse&lt;br /&gt;
chooses browsing mode - collections will show contents instead of information for the collection&lt;br /&gt;
* Info&lt;br /&gt;
chooses information mode - collections will show information instead of contents.&lt;br /&gt;
&lt;br /&gt;
Next comes the actual browsing area divided in two panes; to the left is the actual browsing pane which shows the directory tree from the current anchor point. To the right is information for the currently selected object or a collection list if a collections is selected and “Browse” has been selected.&lt;br /&gt;
&lt;br /&gt;
==== Browsing pane ====&lt;br /&gt;
&lt;br /&gt;
The browsing pane has three buttons&lt;br /&gt;
&lt;br /&gt;
[[File:irodsButtonRow2.png]]&lt;br /&gt;
&lt;br /&gt;
* Refresh&lt;br /&gt;
refreshes the view. Can be needed to show changes done from other places after the page was loaded&lt;br /&gt;
* Home&lt;br /&gt;
resets the browsing to the home directory of the logged in user&lt;br /&gt;
* Up&lt;br /&gt;
resets root to the actual top of the tree, this can be needed if the user has previously restricted the tree using “Set this as the root of the tree”&lt;br /&gt;
&lt;br /&gt;
below these buttons is an expandable view of the tree where you can click the arrows to expand/collapse collections. You can select a data object or collection to view information or for collections see a content listing in the information pane.&lt;br /&gt;
&lt;br /&gt;
===== Information pane =====&lt;br /&gt;
&lt;br /&gt;
The information pane has two modes, Browse (for collections only) or Info. You can select which mode you want to use with the corresponding button in the row above the pane.&lt;br /&gt;
&lt;br /&gt;
====== Browse mode ======&lt;br /&gt;
&lt;br /&gt;
For data objects, Browse mode is identical to Info mode. For collections, the contents of the collection is listed. Each row has the following columns&lt;br /&gt;
&lt;br /&gt;
[[File:irodsBrowseViewZoom.png]]&lt;br /&gt;
&lt;br /&gt;
* Expansion&lt;br /&gt;
this row allows expansion/collapse of a particular object within the Browse view&lt;br /&gt;
* Action&lt;br /&gt;
by selecting this box, particular actions can be done for multiple actions at the same time&lt;br /&gt;
* Name&lt;br /&gt;
the name of the object&lt;br /&gt;
* Type&lt;br /&gt;
this column lists the type of the selected object. The most common ones are COLLECTION and DATA_OBJECT&lt;br /&gt;
* Modified&lt;br /&gt;
timestamp for the last recorded modification&lt;br /&gt;
* Size&lt;br /&gt;
size of the object (0 bytes for collections)&lt;br /&gt;
&lt;br /&gt;
All of the actual data rows (Name, Type, Modified and Size) can be used for sorting ascending/descending.&lt;br /&gt;
&lt;br /&gt;
Through the button at the top of the Action column, selected objects in that column can be added to the “cart” for later download or deleted.&lt;br /&gt;
&lt;br /&gt;
====== Info mode ======&lt;br /&gt;
&lt;br /&gt;
The info mode lets the user display and (possibly) modify information about the selected object.&lt;br /&gt;
&lt;br /&gt;
[[File:irodsInfoView.png]]&lt;br /&gt;
&lt;br /&gt;
Object information is displayed under 5 different tabs&lt;br /&gt;
&lt;br /&gt;
* Info&lt;br /&gt;
displays general file metadata&lt;br /&gt;
* Metadata&lt;br /&gt;
allows the display and editing of custom (AVU) metadata&lt;br /&gt;
* Sharing&lt;br /&gt;
here you can find various information and operations related to sharing&lt;br /&gt;
* Tickets&lt;br /&gt;
tab for handling of tickets (a system for giving access to certain resources, currently not used by BILS).&lt;br /&gt;
* Audit&lt;br /&gt;
shows audit data, currently not used byt BILS.&lt;br /&gt;
&lt;br /&gt;
There are some things worth to note:&lt;br /&gt;
&lt;br /&gt;
Under Info, various tags can be added to objects. These are currently the only thing that are searchable with iDrop web.&lt;br /&gt;
&lt;br /&gt;
For data objects, it’s possible to see information about where the object is stored under Info (Data path, Resource).&lt;/div&gt;</summary>
		<author><name>Andreas Lindqvist (NSC)</name></author>
		
	</entry>
	<entry>
		<id>http://docs.snic.se/w/index.php?title=Swestore-irods&amp;diff=5677</id>
		<title>Swestore-irods</title>
		<link rel="alternate" type="text/html" href="http://docs.snic.se/w/index.php?title=Swestore-irods&amp;diff=5677"/>
		<updated>2014-01-14T12:30:17Z</updated>

		<summary type="html">&lt;p&gt;Andreas Lindqvist (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 (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;
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>Andreas Lindqvist (NSC)</name></author>
		
	</entry>
	<entry>
		<id>http://docs.snic.se/w/index.php?title=Swestore-irods&amp;diff=5676</id>
		<title>Swestore-irods</title>
		<link rel="alternate" type="text/html" href="http://docs.snic.se/w/index.php?title=Swestore-irods&amp;diff=5676"/>
		<updated>2014-01-14T12:29:51Z</updated>

		<summary type="html">&lt;p&gt;Andreas Lindqvist (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 (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;
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>Andreas Lindqvist (NSC)</name></author>
		
	</entry>
	<entry>
		<id>http://docs.snic.se/w/index.php?title=Swestore-dCache&amp;diff=5653</id>
		<title>Swestore-dCache</title>
		<link rel="alternate" type="text/html" href="http://docs.snic.se/w/index.php?title=Swestore-dCache&amp;diff=5653"/>
		<updated>2013-12-16T06:41:42Z</updated>

		<summary type="html">&lt;p&gt;Andreas Lindqvist (NSC): /* Download and upload data */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Storage]]&lt;br /&gt;
[[Category:SweStore]]&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 ([[Swestore-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 [[Swestore-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. 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;
; 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;
: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;
== 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 simple and reliable directory index interface at https://webdav.swestore.se/ and with a richer 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;
Documentation of the SNIC iRODS system: [[Swestore-irods]].&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>Andreas Lindqvist (NSC)</name></author>
		
	</entry>
	<entry>
		<id>http://docs.snic.se/w/index.php?title=Swestore-dCache&amp;diff=5652</id>
		<title>Swestore-dCache</title>
		<link rel="alternate" type="text/html" href="http://docs.snic.se/w/index.php?title=Swestore-dCache&amp;diff=5652"/>
		<updated>2013-12-16T06:39:11Z</updated>

		<summary type="html">&lt;p&gt;Andreas Lindqvist (NSC): /* iRODS */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Storage]]&lt;br /&gt;
[[Category:SweStore]]&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 ([[Swestore-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 [[Swestore-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. 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;
; 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;
: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;
== 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 simple and reliable directory index interface at https://webdav.swestore.se/ and with a richer 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;
Documentation of the SNIC iRODS system: [[Swestore-irods]].&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>Andreas Lindqvist (NSC)</name></author>
		
	</entry>
	<entry>
		<id>http://docs.snic.se/w/index.php?title=Swestore-dCache&amp;diff=5651</id>
		<title>Swestore-dCache</title>
		<link rel="alternate" type="text/html" href="http://docs.snic.se/w/index.php?title=Swestore-dCache&amp;diff=5651"/>
		<updated>2013-12-16T06:38:51Z</updated>

		<summary type="html">&lt;p&gt;Andreas Lindqvist (NSC): /* iRODS */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Storage]]&lt;br /&gt;
[[Category:SweStore]]&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 ([[Swestore-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 [[Swestore-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. 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;
; 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;
: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;
== 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 simple and reliable directory index interface at https://webdav.swestore.se/ and with a richer 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;
Documentation of the SNIC iRODS system is available under [[Swestore-irods]].&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>Andreas Lindqvist (NSC)</name></author>
		
	</entry>
	<entry>
		<id>http://docs.snic.se/w/index.php?title=Swestore-dCache&amp;diff=5650</id>
		<title>Swestore-dCache</title>
		<link rel="alternate" type="text/html" href="http://docs.snic.se/w/index.php?title=Swestore-dCache&amp;diff=5650"/>
		<updated>2013-12-16T06:38:26Z</updated>

		<summary type="html">&lt;p&gt;Andreas Lindqvist (NSC): /* National storage */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Storage]]&lt;br /&gt;
[[Category:SweStore]]&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 ([[Swestore-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 [[Swestore-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. 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;
; 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;
: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;
== 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 simple and reliable directory index interface at https://webdav.swestore.se/ and with a richer 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-irods]].&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>Andreas Lindqvist (NSC)</name></author>
		
	</entry>
	<entry>
		<id>http://docs.snic.se/w/index.php?title=Swestore-dCache&amp;diff=5649</id>
		<title>Swestore-dCache</title>
		<link rel="alternate" type="text/html" href="http://docs.snic.se/w/index.php?title=Swestore-dCache&amp;diff=5649"/>
		<updated>2013-12-16T06:36:18Z</updated>

		<summary type="html">&lt;p&gt;Andreas Lindqvist (NSC): &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Storage]]&lt;br /&gt;
[[Category:SweStore]]&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 [[Swestore-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 [[Swestore-irods 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. 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;
; 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;
: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;
== 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 simple and reliable directory index interface at https://webdav.swestore.se/ and with a richer 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-irods]].&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>Andreas Lindqvist (NSC)</name></author>
		
	</entry>
	<entry>
		<id>http://docs.snic.se/w/index.php?title=Swestore-irods&amp;diff=5646</id>
		<title>Swestore-irods</title>
		<link rel="alternate" type="text/html" href="http://docs.snic.se/w/index.php?title=Swestore-irods&amp;diff=5646"/>
		<updated>2013-12-13T17:26:27Z</updated>

		<summary type="html">&lt;p&gt;Andreas Lindqvist (NSC): &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;
&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;
==== 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>Andreas Lindqvist (NSC)</name></author>
		
	</entry>
	<entry>
		<id>http://docs.snic.se/w/index.php?title=Swestore-irods&amp;diff=5645</id>
		<title>Swestore-irods</title>
		<link rel="alternate" type="text/html" href="http://docs.snic.se/w/index.php?title=Swestore-irods&amp;diff=5645"/>
		<updated>2013-12-13T17:25:44Z</updated>

		<summary type="html">&lt;p&gt;Andreas Lindqvist (NSC): /* Yubikey instructions */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&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;
&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;
==== 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>Andreas Lindqvist (NSC)</name></author>
		
	</entry>
	<entry>
		<id>http://docs.snic.se/w/index.php?title=Swestore-irods&amp;diff=5644</id>
		<title>Swestore-irods</title>
		<link rel="alternate" type="text/html" href="http://docs.snic.se/w/index.php?title=Swestore-irods&amp;diff=5644"/>
		<updated>2013-12-13T17:24:56Z</updated>

		<summary type="html">&lt;p&gt;Andreas Lindqvist (NSC): /* Using iCommands on SNIC HPC clusters */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&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;
&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;
==== 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>Andreas Lindqvist (NSC)</name></author>
		
	</entry>
	<entry>
		<id>http://docs.snic.se/w/index.php?title=Swestore-irods&amp;diff=5643</id>
		<title>Swestore-irods</title>
		<link rel="alternate" type="text/html" href="http://docs.snic.se/w/index.php?title=Swestore-irods&amp;diff=5643"/>
		<updated>2013-12-13T17:24:43Z</updated>

		<summary type="html">&lt;p&gt;Andreas Lindqvist (NSC): /* Using iCommands on SNIC HPC clusters */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&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;
&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;
==== 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;
:If the irods commands are not available at the SNIC HPC cluster, please contact support@swestore.se&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>Andreas Lindqvist (NSC)</name></author>
		
	</entry>
	<entry>
		<id>http://docs.snic.se/w/index.php?title=Swestore-irods&amp;diff=5642</id>
		<title>Swestore-irods</title>
		<link rel="alternate" type="text/html" href="http://docs.snic.se/w/index.php?title=Swestore-irods&amp;diff=5642"/>
		<updated>2013-12-13T17:24:26Z</updated>

		<summary type="html">&lt;p&gt;Andreas Lindqvist (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;
== 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;
&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;
==== 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;
If the irods commands are not available at the SNIC HPC cluster, please contact support@swestore.se&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>Andreas Lindqvist (NSC)</name></author>
		
	</entry>
	<entry>
		<id>http://docs.snic.se/w/index.php?title=Swestore-irods&amp;diff=5641</id>
		<title>Swestore-irods</title>
		<link rel="alternate" type="text/html" href="http://docs.snic.se/w/index.php?title=Swestore-irods&amp;diff=5641"/>
		<updated>2013-12-13T17:23:00Z</updated>

		<summary type="html">&lt;p&gt;Andreas Lindqvist (NSC): &lt;/p&gt;
&lt;hr /&gt;
&lt;div&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;
&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;
===== 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;
==== 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>Andreas Lindqvist (NSC)</name></author>
		
	</entry>
	<entry>
		<id>http://docs.snic.se/w/index.php?title=Swestore-irods&amp;diff=5640</id>
		<title>Swestore-irods</title>
		<link rel="alternate" type="text/html" href="http://docs.snic.se/w/index.php?title=Swestore-irods&amp;diff=5640"/>
		<updated>2013-12-13T17:21:35Z</updated>

		<summary type="html">&lt;p&gt;Andreas Lindqvist (NSC): &lt;/p&gt;
&lt;hr /&gt;
&lt;div&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;
&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;
===== 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;
==== 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>Andreas Lindqvist (NSC)</name></author>
		
	</entry>
	<entry>
		<id>http://docs.snic.se/w/index.php?title=Swestore-dCache&amp;diff=5639</id>
		<title>Swestore-dCache</title>
		<link rel="alternate" type="text/html" href="http://docs.snic.se/w/index.php?title=Swestore-dCache&amp;diff=5639"/>
		<updated>2013-12-13T17:18:26Z</updated>

		<summary type="html">&lt;p&gt;Andreas Lindqvist (NSC): /* iRODS */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Storage]]&lt;br /&gt;
[[Category:SweStore]]&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 [[Swestore-irods 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 [[Swestore-irods 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. 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;
; 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;
: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;
== 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 simple and reliable directory index interface at https://webdav.swestore.se/ and with a richer 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-irods]].&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>Andreas Lindqvist (NSC)</name></author>
		
	</entry>
	<entry>
		<id>http://docs.snic.se/w/index.php?title=Swestore-dCache&amp;diff=5638</id>
		<title>Swestore-dCache</title>
		<link rel="alternate" type="text/html" href="http://docs.snic.se/w/index.php?title=Swestore-dCache&amp;diff=5638"/>
		<updated>2013-12-13T17:18:10Z</updated>

		<summary type="html">&lt;p&gt;Andreas Lindqvist (NSC): /* iRODS */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Storage]]&lt;br /&gt;
[[Category:SweStore]]&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 [[Swestore-irods 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 [[Swestore-irods 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. 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;
; 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;
: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;
== 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 simple and reliable directory index interface at https://webdav.swestore.se/ and with a richer 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. [[Swestore-irods]].&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>Andreas Lindqvist (NSC)</name></author>
		
	</entry>
	<entry>
		<id>http://docs.snic.se/w/index.php?title=Swestore-dCache&amp;diff=5637</id>
		<title>Swestore-dCache</title>
		<link rel="alternate" type="text/html" href="http://docs.snic.se/w/index.php?title=Swestore-dCache&amp;diff=5637"/>
		<updated>2013-12-13T17:17:55Z</updated>

		<summary type="html">&lt;p&gt;Andreas Lindqvist (NSC): /* iRODS */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Storage]]&lt;br /&gt;
[[Category:SweStore]]&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 [[Swestore-irods 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 [[Swestore-irods 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. 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;
; 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;
: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;
== 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 simple and reliable directory index interface at https://webdav.swestore.se/ and with a richer 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. [[Swestore-irods Documentation]].&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>Andreas Lindqvist (NSC)</name></author>
		
	</entry>
	<entry>
		<id>http://docs.snic.se/w/index.php?title=Swestore-dCache&amp;diff=5636</id>
		<title>Swestore-dCache</title>
		<link rel="alternate" type="text/html" href="http://docs.snic.se/w/index.php?title=Swestore-dCache&amp;diff=5636"/>
		<updated>2013-12-13T17:16:51Z</updated>

		<summary type="html">&lt;p&gt;Andreas Lindqvist (NSC): &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Storage]]&lt;br /&gt;
[[Category:SweStore]]&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 [[Swestore-irods 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 [[Swestore-irods 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. 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;
; 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;
: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;
== 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 simple and reliable directory index interface at https://webdav.swestore.se/ and with a richer 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;
[[Swestore-irods There is a SNIC iRODS system available under Swestore]]&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>Andreas Lindqvist (NSC)</name></author>
		
	</entry>
	<entry>
		<id>http://docs.snic.se/w/index.php?title=Swestore-dCache&amp;diff=5635</id>
		<title>Swestore-dCache</title>
		<link rel="alternate" type="text/html" href="http://docs.snic.se/w/index.php?title=Swestore-dCache&amp;diff=5635"/>
		<updated>2013-12-13T17:16:41Z</updated>

		<summary type="html">&lt;p&gt;Andreas Lindqvist (NSC): &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Storage]]&lt;br /&gt;
[[Category:SweStore]]&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 [[Swestore-irods 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 [[Swestore-irods 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. 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;
; 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;
: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;
== 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 simple and reliable directory index interface at https://webdav.swestore.se/ and with a richer 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;
[[Swestore-irods There is a SNIC iRODS system available under Swestore]]&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>Andreas Lindqvist (NSC)</name></author>
		
	</entry>
	<entry>
		<id>http://docs.snic.se/w/index.php?title=Swestore-dCache&amp;diff=5634</id>
		<title>Swestore-dCache</title>
		<link rel="alternate" type="text/html" href="http://docs.snic.se/w/index.php?title=Swestore-dCache&amp;diff=5634"/>
		<updated>2013-12-13T17:14:20Z</updated>

		<summary type="html">&lt;p&gt;Andreas Lindqvist (NSC): &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Storage]]&lt;br /&gt;
[[Category:SweStore]]&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. 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;
; 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;
: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;
== 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 simple and reliable directory index interface at https://webdav.swestore.se/ and with a richer 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;
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;
&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;
===== 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;
==== 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;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>Andreas Lindqvist (NSC)</name></author>
		
	</entry>
	<entry>
		<id>http://docs.snic.se/w/index.php?title=Swestore-dCache&amp;diff=5633</id>
		<title>Swestore-dCache</title>
		<link rel="alternate" type="text/html" href="http://docs.snic.se/w/index.php?title=Swestore-dCache&amp;diff=5633"/>
		<updated>2013-12-13T17:14:09Z</updated>

		<summary type="html">&lt;p&gt;Andreas Lindqvist (NSC): &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. 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;
; 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;
: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;
== 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 simple and reliable directory index interface at https://webdav.swestore.se/ and with a richer 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;
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;
&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;
===== 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;
==== 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;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>Andreas Lindqvist (NSC)</name></author>
		
	</entry>
	<entry>
		<id>http://docs.snic.se/w/index.php?title=Swestore-dCache&amp;diff=5632</id>
		<title>Swestore-dCache</title>
		<link rel="alternate" type="text/html" href="http://docs.snic.se/w/index.php?title=Swestore-dCache&amp;diff=5632"/>
		<updated>2013-12-13T15:32:16Z</updated>

		<summary type="html">&lt;p&gt;Andreas Lindqvist (NSC): /* Getting access */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:Storage]]&lt;br /&gt;
[[Category:SweStore]]&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&lt;br /&gt;
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]&lt;br /&gt;
storage system and is distributed across the SNIC centres [http://www.c3se.chalmers.se/ C3SE], [http://www.hpc2n.umu.se/ HPC2N], [http://www.lunarc.lu.se/ Lunarc],&lt;br /&gt;
[http://www.nsc.liu.se/ NSC], [http://www.pdc.kth.se PDC] and [http://www.uppmax.uu.se Uppmax].&lt;br /&gt;
&lt;br /&gt;
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&lt;br /&gt;
crash of a storage element to losing an entire site while stil providing access to the stored data. To protect against silent data corruption the&lt;br /&gt;
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;
One of the major advantages to the distributed nature of dCache is the excellent aggregated transfer rates possible. This is achieved by bypassing a central node&lt;br /&gt;
and having transfers going directly to/from the storage elements if the protocol allows it.&lt;br /&gt;
The Swestore Nationally Accessible Storage system can achieve aggregated  transfer rates&lt;br /&gt;
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;
==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;
&lt;br /&gt;
; Protocols in evaluation/development&lt;br /&gt;
: NFS4.1, iRODS&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;
== 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;
;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 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. Yubikey has a status as pilot now. It can be changed in the future.&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;
== 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 simple and reliable directory index interface at https://webdav.swestore.se/ and with a richer 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;
== More information ==&lt;br /&gt;
* [http://status.swestore.se/munin/monitor/monitor/ Per Project Monitoring of Swestore usage]&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;
== 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;
= 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>Andreas Lindqvist (NSC)</name></author>
		
	</entry>
	<entry>
		<id>http://docs.snic.se/w/index.php?title=Swestore-irods&amp;diff=5622</id>
		<title>Swestore-irods</title>
		<link rel="alternate" type="text/html" href="http://docs.snic.se/w/index.php?title=Swestore-irods&amp;diff=5622"/>
		<updated>2013-12-02T16:17:08Z</updated>

		<summary type="html">&lt;p&gt;Andreas Lindqvist (NSC): /* iDROP web client */&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. 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;
; 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;
: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;
== 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;
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;
&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;
===== 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;
==== 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;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>Andreas Lindqvist (NSC)</name></author>
		
	</entry>
	<entry>
		<id>http://docs.snic.se/w/index.php?title=Swestore-irods&amp;diff=5621</id>
		<title>Swestore-irods</title>
		<link rel="alternate" type="text/html" href="http://docs.snic.se/w/index.php?title=Swestore-irods&amp;diff=5621"/>
		<updated>2013-12-02T10:33:00Z</updated>

		<summary type="html">&lt;p&gt;Andreas Lindqvist (NSC): /* Yubikey instructions */&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. 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;
; 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;
: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;
== 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;
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;
&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;
===== 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;
==== 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;
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>Andreas Lindqvist (NSC)</name></author>
		
	</entry>
	<entry>
		<id>http://docs.snic.se/w/index.php?title=Swestore-irods&amp;diff=5620</id>
		<title>Swestore-irods</title>
		<link rel="alternate" type="text/html" href="http://docs.snic.se/w/index.php?title=Swestore-irods&amp;diff=5620"/>
		<updated>2013-12-02T10:27:08Z</updated>

		<summary type="html">&lt;p&gt;Andreas Lindqvist (NSC): /* Yubikey instructions */&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. 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;
; 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;
: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;
== 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;
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;
&lt;br /&gt;
===== Yubikey instructions =====&lt;br /&gt;
&lt;br /&gt;
Prerequisite: A correct iRODS environment file&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;
===== 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;
==== 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;
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>Andreas Lindqvist (NSC)</name></author>
		
	</entry>
	<entry>
		<id>http://docs.snic.se/w/index.php?title=Swestore-irods&amp;diff=5619</id>
		<title>Swestore-irods</title>
		<link rel="alternate" type="text/html" href="http://docs.snic.se/w/index.php?title=Swestore-irods&amp;diff=5619"/>
		<updated>2013-11-29T18:42:53Z</updated>

		<summary type="html">&lt;p&gt;Andreas Lindqvist (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. 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;
; 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;
: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;
== 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;
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;
&lt;br /&gt;
===== Yubikey instructions =====&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. Insert the yubikey into USB-slot of computer. Type iinit. 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;
===== 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;
==== 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;
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>Andreas Lindqvist (NSC)</name></author>
		
	</entry>
	<entry>
		<id>http://docs.snic.se/w/index.php?title=Swestore-irods&amp;diff=5618</id>
		<title>Swestore-irods</title>
		<link rel="alternate" type="text/html" href="http://docs.snic.se/w/index.php?title=Swestore-irods&amp;diff=5618"/>
		<updated>2013-11-29T18:37:06Z</updated>

		<summary type="html">&lt;p&gt;Andreas Lindqvist (NSC): /* Community iRODS version 3.3 */&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. 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;
; 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;
: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;
== 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;
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/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;
===== Yubikey instructions =====&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. Insert the yubikey into USB-slot of computer. Type iinit. 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;
===== 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>Andreas Lindqvist (NSC)</name></author>
		
	</entry>
	<entry>
		<id>http://docs.snic.se/w/index.php?title=Apply_for_storage_on_Swestore&amp;diff=5616</id>
		<title>Apply for storage on Swestore</title>
		<link rel="alternate" type="text/html" href="http://docs.snic.se/w/index.php?title=Apply_for_storage_on_Swestore&amp;diff=5616"/>
		<updated>2013-11-28T16:44:11Z</updated>

		<summary type="html">&lt;p&gt;Andreas Lindqvist (NSC): &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:SweStore]]&lt;br /&gt;
[[Category:SweStore user guide]]&lt;br /&gt;
[[SweStore|&amp;lt; SweStore]]&lt;br /&gt;
&lt;br /&gt;
The SweStore nationally accessible storage is available for researchers financed by VR (which includes all researchers using SNIC compute resources) and FORMA.&lt;br /&gt;
&lt;br /&gt;
SweStore is also in collaboration with [http://www.ecds.se/ ECDS], [http://snd.gu.se/ SND], Bioimage, [http://www.bils.se/ BILS], [http://www.uppnex.uu.se/ UPPNEX],[http://wlcg.web.cern.ch/ WLCG], [http://www.nrm.se/ Naturhistoriska Riksmuseet]. If any of these cover your research area, first read their information on applying for SweStore storage.&lt;br /&gt;
&lt;br /&gt;
In the future, applications for storage will be handled by each research community, but for now an email to [mailto:support@swestore.se support@swestore.se] will suffice. &lt;br /&gt;
&lt;br /&gt;
'''From 2013-11-01 you can apply for iRODS storage.'''&lt;br /&gt;
&lt;br /&gt;
Please include the following information in the application:&amp;lt;br&amp;gt;&lt;br /&gt;
* Type of storage dCache or iRODS.&lt;br /&gt;
* If you apply for iRODS-storage: please provide shipping address to where the yubikey should be sent.&lt;br /&gt;
* Name of the principal investigator (PI), including email address.&lt;br /&gt;
* Purpose for the storage: A short description of the project and type of data.&lt;br /&gt;
* Required storage capacity: Preferably a maximum size, but if this is not currently determinable, please calculate a starting size and expansion by time period. '''NOTE''' that applications larger than 10TB takes longer to process.&lt;br /&gt;
* Suggested project name: This will be used as root directory name for your storage.&lt;br /&gt;
# '''NOTE''' that this name is long-lived and will persist. It is not coupled to the lifetime of SNIC compute time allocations.&lt;br /&gt;
# We recommend a project name not tied to a person.&lt;br /&gt;
# Additionally, we recommend that the name is not a common word or term easily confusable with other current or future research efforts.&lt;br /&gt;
# It is a good idea to select a name that's short and easy to type.&lt;br /&gt;
# The name is  limited to lower-case letters a-z, digits 0-9, hyphens - and underscores _.&lt;/div&gt;</summary>
		<author><name>Andreas Lindqvist (NSC)</name></author>
		
	</entry>
	<entry>
		<id>http://docs.snic.se/w/index.php?title=Swestore-irods&amp;diff=5615</id>
		<title>Swestore-irods</title>
		<link rel="alternate" type="text/html" href="http://docs.snic.se/w/index.php?title=Swestore-irods&amp;diff=5615"/>
		<updated>2013-11-28T16:42:42Z</updated>

		<summary type="html">&lt;p&gt;Andreas Lindqvist (NSC): /* Getting access */&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. 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;
; 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;
: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;
== 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;
===== Yubikey instructions =====&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. Insert the yubikey into USB-slot of computer. Type iinit. 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;
===== 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>Andreas Lindqvist (NSC)</name></author>
		
	</entry>
	<entry>
		<id>http://docs.snic.se/w/index.php?title=Swestore-irods&amp;diff=5614</id>
		<title>Swestore-irods</title>
		<link rel="alternate" type="text/html" href="http://docs.snic.se/w/index.php?title=Swestore-irods&amp;diff=5614"/>
		<updated>2013-11-28T16:41:42Z</updated>

		<summary type="html">&lt;p&gt;Andreas Lindqvist (NSC): /* Getting access */&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;
: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;
== 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;
===== Yubikey instructions =====&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. Insert the yubikey into USB-slot of computer. Type iinit. 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;
===== 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>Andreas Lindqvist (NSC)</name></author>
		
	</entry>
	<entry>
		<id>http://docs.snic.se/w/index.php?title=Apply_for_storage_on_Swestore&amp;diff=5613</id>
		<title>Apply for storage on Swestore</title>
		<link rel="alternate" type="text/html" href="http://docs.snic.se/w/index.php?title=Apply_for_storage_on_Swestore&amp;diff=5613"/>
		<updated>2013-11-28T16:39:39Z</updated>

		<summary type="html">&lt;p&gt;Andreas Lindqvist (NSC): &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:SweStore]]&lt;br /&gt;
[[Category:SweStore user guide]]&lt;br /&gt;
[[SweStore|&amp;lt; SweStore]]&lt;br /&gt;
&lt;br /&gt;
The SweStore nationally accessible storage is available for researchers financed by VR (which includes all researchers using SNIC compute resources) and FORMA.&lt;br /&gt;
&lt;br /&gt;
SweStore is also in collaboration with [http://www.ecds.se/ ECDS], [http://snd.gu.se/ SND], Bioimage, [http://www.bils.se/ BILS], [http://www.uppnex.uu.se/ UPPNEX],[http://wlcg.web.cern.ch/ WLCG], [http://www.nrm.se/ Naturhistoriska Riksmuseet]. If any of these cover your research area, first read their information on applying for SweStore storage.&lt;br /&gt;
&lt;br /&gt;
In the future, applications for storage will be handled by each research community, but for now an email to [mailto:support@swestore.se support@swestore.se] will suffice. &lt;br /&gt;
&lt;br /&gt;
'''From 2013-11-01 you can apply for iRODS storage.'''&lt;br /&gt;
&lt;br /&gt;
Please include the following information in the application:&amp;lt;br&amp;gt;&lt;br /&gt;
* Type of storage dCache or iRODS. If you apply for iRODS-storage, please provide shipping address to where the yubikey should be sent.&lt;br /&gt;
* Name of the principal investigator (PI), including email address.&lt;br /&gt;
* Purpose for the storage: A short description of the project and type of data.&lt;br /&gt;
* Required storage capacity: Preferably a maximum size, but if this is not currently determinable, please calculate a starting size and expansion by time period. '''NOTE''' that applications larger than 10TB takes longer to process.&lt;br /&gt;
* Suggested project name: This will be used as root directory name for your storage.&lt;br /&gt;
# '''NOTE''' that this name is long-lived and will persist. It is not coupled to the lifetime of SNIC compute time allocations.&lt;br /&gt;
# We recommend a project name not tied to a person.&lt;br /&gt;
# Additionally, we recommend that the name is not a common word or term easily confusable with other current or future research efforts.&lt;br /&gt;
# It is a good idea to select a name that's short and easy to type.&lt;br /&gt;
# The name is  limited to lower-case letters a-z, digits 0-9, hyphens - and underscores _.&lt;/div&gt;</summary>
		<author><name>Andreas Lindqvist (NSC)</name></author>
		
	</entry>
	<entry>
		<id>http://docs.snic.se/w/index.php?title=Swestore-irods&amp;diff=5612</id>
		<title>Swestore-irods</title>
		<link rel="alternate" type="text/html" href="http://docs.snic.se/w/index.php?title=Swestore-irods&amp;diff=5612"/>
		<updated>2013-11-28T16:38:07Z</updated>

		<summary type="html">&lt;p&gt;Andreas Lindqvist (NSC): /* Getting access */&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;
:To apply for a SweStore yubikey, in your application for iRODS-storage, please provide shipping address to where the yubikey should be sent.&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;
: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;
== 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;
===== Yubikey instructions =====&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. Insert the yubikey into USB-slot of computer. Type iinit. 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;
===== 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>Andreas Lindqvist (NSC)</name></author>
		
	</entry>
	<entry>
		<id>http://docs.snic.se/w/index.php?title=Swestore-irods&amp;diff=5611</id>
		<title>Swestore-irods</title>
		<link rel="alternate" type="text/html" href="http://docs.snic.se/w/index.php?title=Swestore-irods&amp;diff=5611"/>
		<updated>2013-11-28T16:22:44Z</updated>

		<summary type="html">&lt;p&gt;Andreas Lindqvist (NSC): /* iCommands environment file */&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;
===== Yubikey instructions =====&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. Insert the yubikey into USB-slot of computer. Type iinit. 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;
===== 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>Andreas Lindqvist (NSC)</name></author>
		
	</entry>
	<entry>
		<id>http://docs.snic.se/w/index.php?title=Swestore-irods&amp;diff=5610</id>
		<title>Swestore-irods</title>
		<link rel="alternate" type="text/html" href="http://docs.snic.se/w/index.php?title=Swestore-irods&amp;diff=5610"/>
		<updated>2013-11-28T16:21:39Z</updated>

		<summary type="html">&lt;p&gt;Andreas Lindqvist (NSC): /* iCommands environment file */&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. Insert the yubikey into USB-slot of computer. Type iinit. 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;
===== 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>Andreas Lindqvist (NSC)</name></author>
		
	</entry>
	<entry>
		<id>http://docs.snic.se/w/index.php?title=Swestore-irods&amp;diff=5609</id>
		<title>Swestore-irods</title>
		<link rel="alternate" type="text/html" href="http://docs.snic.se/w/index.php?title=Swestore-irods&amp;diff=5609"/>
		<updated>2013-11-28T16:15:09Z</updated>

		<summary type="html">&lt;p&gt;Andreas Lindqvist (NSC): /* Community iRODS version 3.3 */&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>Andreas Lindqvist (NSC)</name></author>
		
	</entry>
	<entry>
		<id>http://docs.snic.se/w/index.php?title=Swestore-irods&amp;diff=5605</id>
		<title>Swestore-irods</title>
		<link rel="alternate" type="text/html" href="http://docs.snic.se/w/index.php?title=Swestore-irods&amp;diff=5605"/>
		<updated>2013-11-19T17:40:20Z</updated>

		<summary type="html">&lt;p&gt;Andreas Lindqvist (NSC): /* Getting access */&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 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/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>Andreas Lindqvist (NSC)</name></author>
		
	</entry>
	<entry>
		<id>http://docs.snic.se/w/index.php?title=Swestore-irods&amp;diff=5604</id>
		<title>Swestore-irods</title>
		<link rel="alternate" type="text/html" href="http://docs.snic.se/w/index.php?title=Swestore-irods&amp;diff=5604"/>
		<updated>2013-11-19T17:35:25Z</updated>

		<summary type="html">&lt;p&gt;Andreas Lindqvist (NSC): /* Getting access */&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 preferred username in the system and a 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 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/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>Andreas Lindqvist (NSC)</name></author>
		
	</entry>
	<entry>
		<id>http://docs.snic.se/w/index.php?title=Swestore-irods&amp;diff=5603</id>
		<title>Swestore-irods</title>
		<link rel="alternate" type="text/html" href="http://docs.snic.se/w/index.php?title=Swestore-irods&amp;diff=5603"/>
		<updated>2013-11-19T17:34:02Z</updated>

		<summary type="html">&lt;p&gt;Andreas Lindqvist (NSC): /* iCommands environment file */&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;
Yubikey solution is still in a pilot phase. It can be changed in the future. &amp;lt;br&amp;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 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 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/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>Andreas Lindqvist (NSC)</name></author>
		
	</entry>
	<entry>
		<id>http://docs.snic.se/w/index.php?title=Swestore-irods&amp;diff=5602</id>
		<title>Swestore-irods</title>
		<link rel="alternate" type="text/html" href="http://docs.snic.se/w/index.php?title=Swestore-irods&amp;diff=5602"/>
		<updated>2013-11-19T17:32:44Z</updated>

		<summary type="html">&lt;p&gt;Andreas Lindqvist (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;
: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;
Yubikey solution is still in a pilot phase. It can be changed in the future. &amp;lt;br&amp;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 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 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>Andreas Lindqvist (NSC)</name></author>
		
	</entry>
	<entry>
		<id>http://docs.snic.se/w/index.php?title=Swestore-irods&amp;diff=5601</id>
		<title>Swestore-irods</title>
		<link rel="alternate" type="text/html" href="http://docs.snic.se/w/index.php?title=Swestore-irods&amp;diff=5601"/>
		<updated>2013-11-19T14:45:39Z</updated>

		<summary type="html">&lt;p&gt;Andreas Lindqvist (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;
: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;
Yubikey solution is still in a pilot phase. It can be changed in the future. &amp;lt;br&amp;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 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;
The community iRODS client version 3.3 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>Andreas Lindqvist (NSC)</name></author>
		
	</entry>
	<entry>
		<id>http://docs.snic.se/w/index.php?title=Swestore-irods&amp;diff=5600</id>
		<title>Swestore-irods</title>
		<link rel="alternate" type="text/html" href="http://docs.snic.se/w/index.php?title=Swestore-irods&amp;diff=5600"/>
		<updated>2013-11-19T14:44:23Z</updated>

		<summary type="html">&lt;p&gt;Andreas Lindqvist (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;
: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;
Yubikey solution is still in a pilot phase. It can be changed in the future. &amp;lt;br&amp;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 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;
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>Andreas Lindqvist (NSC)</name></author>
		
	</entry>
	<entry>
		<id>http://docs.snic.se/w/index.php?title=Swestore-irods&amp;diff=5584</id>
		<title>Swestore-irods</title>
		<link rel="alternate" type="text/html" href="http://docs.snic.se/w/index.php?title=Swestore-irods&amp;diff=5584"/>
		<updated>2013-11-01T13:34:39Z</updated>

		<summary type="html">&lt;p&gt;Andreas Lindqvist (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;
=== 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>Andreas Lindqvist (NSC)</name></author>
		
	</entry>
	<entry>
		<id>http://docs.snic.se/w/index.php?title=Swestore-irods&amp;diff=5583</id>
		<title>Swestore-irods</title>
		<link rel="alternate" type="text/html" href="http://docs.snic.se/w/index.php?title=Swestore-irods&amp;diff=5583"/>
		<updated>2013-10-31T14:21:57Z</updated>

		<summary type="html">&lt;p&gt;Andreas Lindqvist (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;
&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;
=== 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, but you need to modify the makefile (iRODS/config/config.mk) and recompile it:&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>Andreas Lindqvist (NSC)</name></author>
		
	</entry>
	<entry>
		<id>http://docs.snic.se/w/index.php?title=Swestore-irods&amp;diff=5582</id>
		<title>Swestore-irods</title>
		<link rel="alternate" type="text/html" href="http://docs.snic.se/w/index.php?title=Swestore-irods&amp;diff=5582"/>
		<updated>2013-10-31T14:20:00Z</updated>

		<summary type="html">&lt;p&gt;Andreas Lindqvist (NSC): /* iCommands environment file */&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;
=== 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, but you need to modify the makefile (iRODS/config/config.mk) and recompile it:&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;
$HOME/.irods/.irodsEnv need to be setup.&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>Andreas Lindqvist (NSC)</name></author>
		
	</entry>
	<entry>
		<id>http://docs.snic.se/w/index.php?title=Swestore-irods&amp;diff=5581</id>
		<title>Swestore-irods</title>
		<link rel="alternate" type="text/html" href="http://docs.snic.se/w/index.php?title=Swestore-irods&amp;diff=5581"/>
		<updated>2013-10-31T14:15:17Z</updated>

		<summary type="html">&lt;p&gt;Andreas Lindqvist (NSC): /* Using iCommands on SNIC:s HPC clusters */&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;
=== 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, but you need to modify the makefile (iRODS/config/config.mk) and recompile it:&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 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;
$HOME/.irods/.irodsEnv need to be setup.&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>Andreas Lindqvist (NSC)</name></author>
		
	</entry>
	<entry>
		<id>http://docs.snic.se/w/index.php?title=Swestore-irods&amp;diff=5580</id>
		<title>Swestore-irods</title>
		<link rel="alternate" type="text/html" href="http://docs.snic.se/w/index.php?title=Swestore-irods&amp;diff=5580"/>
		<updated>2013-10-31T14:15:04Z</updated>

		<summary type="html">&lt;p&gt;Andreas Lindqvist (NSC): /* SNIC HPC clusters */&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;
=== 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, but you need to modify the makefile (iRODS/config/config.mk) and recompile it:&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 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:s 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;
$HOME/.irods/.irodsEnv need to be setup.&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>Andreas Lindqvist (NSC)</name></author>
		
	</entry>
</feed>