Tags:
tag this topic
create new tag
,
view all tags
---+++ Short User's Guide dCache <p>Особенности доступа к файлам</p> <p>Файлы в dCache пишутся один раз, а читаются много раз. </p> <p>Модификация файла непосредственно dCache не допускается, происходит следующим образом :</p> <p>файл </p> <p>1. копируется из dCache локально</p> <p>2. редактируется</p> <p>3. стирается из dCache</p> <p>4. записывается из локального пространства в пространство dCache под старым именем.</p> <p>Доступ к файлам возможен исключительно с интерактивной фермы ( *lxpub01-lxpub05.jinr.ru*) </p> <p>через протоколы *dcap* и утилиты копирования *dccp*. </p> <p>Для операций не требующих записи можно использовать</p> *lxse-dc01.jinr.ru:22125* <p>Для операций с записью (удалением файла) требуется</p> *lxse-dc01.jinr.ru:22126* <p> Пример : Чтение-Запись-Удаление файла testfile пользователя trofimov </p> 1. lxpub03:~ > LD_PRELOAD=/usr/lib64/libpdcap.so 2. lxpub03:~ > export DCACHE_IO_TUNNEL=/usr/lib64/dcap/libgssTunnel.so 3. lxpub03:~ > ls dcap://lxse-dc01.jinr.ru:22125//pnfs/jinr.ru/data/user/t/trofimov external iiii totest totest1 xxx xxx0022 xxx0044 xxx0045 xxx33 xxx3366 xxx3378 xxx3379 xxx345 xxx9988 4. lxpub03:~ > dccp testfile dcap://lxse-dc01.jinr.ru:22126//pnfs/jinr.ru/data/user/t/trofimov 26317 bytes (25.7 kiB) in 0 seconds 5. lxpub03:~ >ls dcap://lxse-dc01.jinr.ru:22126//pnfs/jinr.ru/data/user/t/trofimov/testfile -l -rw-r--r-- 0 trofimov lhep 26317 Feb 15 13:22 dcap://lxse-dc01.jinr.ru:22126//pnfs/jinr.ru/data/user/t/trofimov/testfile <p>Читать файл можно и без возможности записи :</p> lxpub03:~ > export n DCACHE_IO_TUNNEL lxpub03:~ >dccp dcap://lxse-dc01.jinr.ru:22125//pnfs/jinr.ru/data/user/t/trofimov/testfile newfile 26317 bytes (25.7 kiB) in 0 seconds <p>Проверяем, тот ли</p> lxpub03:~ > diff newfile testfile <p>Для удаления файла из пространства dCache необходимо библиотеку /usr/lib64/dcap/libgssTunnel.so экспортировать :</p> lxpub03:~ > export DCACHE_IO_TUNNEL=/usr/lib64/dcap/libgssTunnel.so lxpub03:~ > LD_PRELOAD=/usr/lib64/libpdcap.so lxpub03:~ > unlink dcap://lxse-dc01.jinr.ru:22126//pnfs/jinr.ru/data/user/t/trofimov/testfile lxpub03:~ > ls dcap://lxse-dc01.jinr.ru:22126//pnfs/jinr.ru/data/user/t/trofimov/testfile /bin/ls: cannot access dcap://lxse-dc01.jinr.ru:22126//pnfs/jinr.ru/data/user/t/trofimov/testfile: No such file or directory
E
dit
|
A
ttach
|
P
rint version
|
H
istory
: r1
|
B
acklinks
|
V
iew topic
|
Ra
w
edit
|
M
ore topic actions
Topic revision: r1 - 2015-02-24
-
TWikiAdminUser
Home
Site map
Main web
Sandbox web
TWiki web
Sandbox Web
Create New Topic
Index
Search
Changes
Notifications
RSS Feed
Statistics
Preferences
View
Raw View
Print version
Find backlinks
History
More topic actions
Edit
Raw edit
Attach file or image
Edit topic preference settings
Set new parent
More topic actions
Account
Log In
Register User
E
dit
A
ttach
Copyright © 2008-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki?
Send feedback