Difference between revisions of "DCache"

From PDP/Grid Wiki
Jump to navigationJump to search
(Created page with "Notes for using the dCache file system. ; Mount point /dcache ; Write once Files can not be appended to or randomly written to.")
 
Line 1: Line 1:
Notes for using the dCache file system.
+
= Introduction =
  
; Mount point
+
[http://www.dcache.org dCache] is filesystem designed for storing large amounts of data. The data is stored amongst many server nodes, accessed through a single virtual filesystem by a variety of methods.
/dcache
 
  
; Write once
+
The dCache filesystem used on stoomboot can be accessed from any of the stoomboot interactive or worker nodes. All file stored in dCache can be found under the mount point <code>/dcache</code>.
Files can not be appended to or randomly written to.
+
 
 +
= Usage =
 +
 
 +
dCache can be used pretty much as a normal file system. The main difference is that you can not change the contents of a file stored in dCache once the file is written. So for example you can't overwrite a file:
 +
 
 +
<code>
 +
<nowiki>
 +
[andrewp@stbc-i1 /dcache/atlas/andrewp]$ echo 123 > test.file
 +
[andrewp@stbc-i1 /dcache/atlas/andrewp]$ echo 1234 > test.file
 +
-bash: test.file: Permission denied</nowiki>
 +
</code>
 +
 
 +
or append to a file:
 +
 
 +
<code>
 +
<nowiki>
 +
[andrewp@stbc-i2 /dcache/atlas/andrewp]$ echo 123 > test.file
 +
[andrewp@stbc-i2 /dcache/atlas/andrewp]$ echo 4 >> test.file
 +
-bash: test.file: Permission denied</nowiki>
 +
</code>
 +
 
 +
and when deleting a file that file is always treated as being write protected (even if the writable bit is set):
 +
 
 +
<code>
 +
<nowiki>
 +
[andrewp@stbc-i2 /dcache/atlas/andrewp]$ ll test.file
 +
-rw-r--r--. 1 andrewp datagrid 4 May  4 09:57 test.file
 +
[andrewp@stbc-i2 /dcache/atlas/andrewp]$ rm test.file
 +
rm: remove write-protected regular file `test.file'? y</nowiki>
 +
</code>

Revision as of 08:46, 20 May 2016

Introduction

dCache is filesystem designed for storing large amounts of data. The data is stored amongst many server nodes, accessed through a single virtual filesystem by a variety of methods.

The dCache filesystem used on stoomboot can be accessed from any of the stoomboot interactive or worker nodes. All file stored in dCache can be found under the mount point /dcache.

Usage

dCache can be used pretty much as a normal file system. The main difference is that you can not change the contents of a file stored in dCache once the file is written. So for example you can't overwrite a file:

[andrewp@stbc-i1 /dcache/atlas/andrewp]$ echo 123 > test.file
[andrewp@stbc-i1 /dcache/atlas/andrewp]$ echo 1234 > test.file
-bash: test.file: Permission denied

or append to a file:

[andrewp@stbc-i2 /dcache/atlas/andrewp]$ echo 123 > test.file
[andrewp@stbc-i2 /dcache/atlas/andrewp]$ echo 4 >> test.file
-bash: test.file: Permission denied

and when deleting a file that file is always treated as being write protected (even if the writable bit is set):

[andrewp@stbc-i2 /dcache/atlas/andrewp]$ ll test.file
-rw-r--r--. 1 andrewp datagrid 4 May  4 09:57 test.file
[andrewp@stbc-i2 /dcache/atlas/andrewp]$ rm test.file
rm: remove write-protected regular file `test.file'? y