Difference between revisions of "User:Torben Rasmussen (NSC)/SweGrid old/Using national storage resources"

From SNIC Documentation
Jump to: navigation, search
(Introduction)
Line 4: Line 4:
  
 
The system uses VOMS proxy certificates for authentication. Please see, [[Grid certificates#VOMS certificates|VOMS Certificates]] , for information on how to generate a voms proxy certificate.
 
The system uses VOMS proxy certificates for authentication. Please see, [[Grid certificates#VOMS certificates|VOMS Certificates]] , for information on how to generate a voms proxy certificate.
 +
 +
= Copying files =
 +
 +
Single files
 +
 +
<pre>[jonas@localhost jonas2]$ arccp archive.tar.gz srm://srm.swegrid.se/ops/</pre>
 +
 +
Recursive copying is accomplished using the '''--recursive''' option.
 +
 +
<pre>
 +
[jonas@localhost swestore]$ arccp --recursive=3 jonas2/ srm://srm.swegrid.se/ops/jonas/jonas2/
 +
</pre>
  
 
= Listing files =  
 
= Listing files =  
  
= Copying files =
+
<pre>
 +
[jonas@localhost jonas2]$ arcls srm://srm.swegrid.se/ops/
 +
motd.1
 +
bla
 +
generated
 +
ops
 +
motd.f343
 +
GridFTP-1.0.20-linux.gtk.x86.zip
 +
test23
 +
test24
 +
jonas
 +
ronstestfile
 +
ronstestfile3
 +
testfile-put-1296854868-6468a2d5df07.txt
 +
</pre>
 +
 
 +
Additional information can be listed by adding the '''--long''' option.
 +
 
 +
= Creating directories =  
 +
 
 +
There are no command line tool yet for creating directories. This command will probably be added in a upcoming release. In the meantime the following procedure can be used:
 +
 
 +
<pre>
 +
[jonas@localhost swestore]$ mkdir mydir
 +
[jonas@localhost swestore]$ cd mydir/
 +
[jonas@localhost mydir]$ touch dummyfile
 +
[jonas@localhost mydir]$ cd ..
 +
[jonas@localhost swestore]$ arccp ./mydir/ srm://srm.swegrid.se/ops/mydir/
 +
[jonas@localhost swestore]$ arcls srm://srm.swegrid.se/ops/mydir
 +
dummyfile
 +
</pre>
  
 
= Removing files =
 
= Removing files =
  
= Creating directories =
+
<pre>[jonas@localhost swestore]$ arcrm srm://srm.swegrid.se/ops/mydir/dummyfile</pre>
 +
 
 +
= Removing directories =  
 +
 
 +
To remove directories they have to be empty. To indicate a directory the URL should end with a '''/'''.
 +
 
 +
<pre>[jonas@localhost swestore]$ arcrm srm://srm.swegrid.se/ops/mydir/</pre>

Revision as of 15:37, 11 March 2011

Introduction

The SNIC national storage infrastructure is implemented using dCache, which is a distributed storage system presenting the user with a single filesystem view. The front-end host of the system is srm://srm.swegrid.se which is the machine presenting the filesystem for the user.

The system uses VOMS proxy certificates for authentication. Please see, VOMS Certificates , for information on how to generate a voms proxy certificate.

Copying files

Single files

[jonas@localhost jonas2]$ arccp archive.tar.gz srm://srm.swegrid.se/ops/

Recursive copying is accomplished using the --recursive option.

[jonas@localhost swestore]$ arccp --recursive=3 jonas2/ srm://srm.swegrid.se/ops/jonas/jonas2/

Listing files

[jonas@localhost jonas2]$ arcls srm://srm.swegrid.se/ops/
motd.1
bla
generated
ops
motd.f343
GridFTP-1.0.20-linux.gtk.x86.zip
test23
test24
jonas
ronstestfile
ronstestfile3
testfile-put-1296854868-6468a2d5df07.txt

Additional information can be listed by adding the --long option.

Creating directories

There are no command line tool yet for creating directories. This command will probably be added in a upcoming release. In the meantime the following procedure can be used:

[jonas@localhost swestore]$ mkdir mydir
[jonas@localhost swestore]$ cd mydir/
[jonas@localhost mydir]$ touch dummyfile
[jonas@localhost mydir]$ cd ..
[jonas@localhost swestore]$ arccp ./mydir/ srm://srm.swegrid.se/ops/mydir/
[jonas@localhost swestore]$ arcls srm://srm.swegrid.se/ops/mydir
dummyfile

Removing files

[jonas@localhost swestore]$ arcrm srm://srm.swegrid.se/ops/mydir/dummyfile

Removing directories

To remove directories they have to be empty. To indicate a directory the URL should end with a /.

[jonas@localhost swestore]$ arcrm srm://srm.swegrid.se/ops/mydir/