Bereichsnavigation

 

Archive Usage

The amount of archive space used cannot be checked using the Unix standard du(1) command, since this would only report on-line data (i.e. data on the archive disk cache).

In order to check on-line space usage as well as near-line (i.e. on tape cartridge or disk-archive) space usage the sdu(1) command has been ported to the CSCS frontend bar.cscs.ch . In the following example, we want to check the total usage for user foo:

# sdu -sh ~/archive 
14G /archive/users/foo

In this case, user foo is using a total of 14GB of archive space. Please note that since the sdu(1) command is derived from the GNU version of the du(1) command, the human readable flag -h is available. You can consult the sdu(1) command manpage on server Bar for further information.

If you are logged in the archive, you can find sdu(1) and other SamFS specific commands in /usr/local/bin/

There are group quota active on the archive. Default is 10 TB per group. You can check your own user and group usage with the following command:

 # ssh bar.cscs.ch arc_usage
           OR
 # ssh ela.cscs.ch arc_usage


You can also use the SamFS squota(1) command to check your user and group usage:

# ssh ${USER}@archive.cscs.ch /usr/local/bin/squota -k /archive   

 


File Status

On the archive NFS shared filesystem, all Unix tools are fully functional. Users can run the ls(1) command to list files as on any other Unix-like filesystems.

Additionally, SamFS provides a version of the ls(1) command, called sls(1), which provides additional SamFS related information. The sls (1) command has been ported to the CSCS frontend bar.cscs.ch along with its manpage.

In the following example, we want to know the status of the file /archive/users/foo/bar.txt:

# sls -lD /archive/users/foo/bar.txt
/archive/users/foo/bar.txt:
mode: -rw-r--r-- links: 1 owner: foo group: foogroup
length: 505431894 admin id: 0 inode: 23997330.3
offline; archdone;
copy 1: ---- Jan 31 16:13 e15c2.1 sf 022000
copy 2: ---- Jan 31 16:22 dac98.1 sf 022007
access: Jan 31 15:44 modification: Jan 31 15:44
changed: Jan 31 15:44 attributes: Jan 31 15:44
creation: Jan 31 15:44 residence: Jan 31 19:24


From the output of the sls(1) command, when using the long listing switch -l along with the SamFS details switch -D, we can see that:

  • The file is offline, which means that accessing this file would imply a stage operation. If there is no offline flag then the file is already online

  • The file has already been archived in both copies.

  • The first copy, i.e. the one which will be automatically used by SamFS when staging normally, is on tape 022000, while the second is on tape 022007.

  • Both copies are on slow access, high capacity tape cartidge (see the sf flag). The other possibilities are sg for fast access, low capacity tape certridge and dk for disk archive.

Besides some information that is rarely useful for end users, the offline flag, or its missing implaing the file is already on-line, is very useful to check the status of a file. Another useful information is sometimes the media type flag indicating on which media the file is stored: from that flag users can do a rough estimate of the access and staging times for a given file.The complete description of the command is in the "man sls(1)"