User:Torben Rasmussen (NSC)/SweGrid old/Using national storage resources
Contents
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/