This is the LHCb CERN LBD group page describing the management of locally available disk space

Our resources are advertised as volatile and maintained with a fair-use policy. If space becomes limited people should be contacted to voluntarily remove old files, then the manager can if really necessary arbitrarily remove changes on top of that, since the system is advertised as volatile.

The instructions here are in addition to the instructions on CernLbdDiskSpace.


z5:cernlbd holds the access list for the 1TB disk space.

pts mem z5:cernlbd #see the member list
pts adduser <someuser> z5:cernlbd #add someuser to the list
pts removeuser <someuser> z5:cernlbd #remove someone from the list

Group afs space

1TB of space is mounted in 10 volumes in: /afs/

afs_admin create -u rlambert -q 100G /afs/ s.lbcern.vol2 #create a volume
afs_admin set_quota /afs/ 100G #change the quota of a volume
fs sa /afs/ z5:cernlbd write #give the right permissions
afs-admin list_project lbcern #to list the amount of space for the project
python  ~rlambert/public/LBD/ #to check the usage and the usage per user

z5:cernlbd is the access list for this volume. All users should make directories with their user name. If there is some top-level directory without a user name it should be moved/deleted.

For more on acl see here

- Setting more Afs permissions

give the permission to change permissions to a user for their own directory

fs sa /afs/*/<user> <user> rlidwka

To propagate permissions from one place to another use:

fs copy_acl <one_place> <another>

Directories created within a parent directory inherit the parent's permissions

Then if they want to let someone else See/read/write in the directories, the upper directories need to be 'lookup'-able

fs sa /afs/*/<user>/<something> <user-or-group> write 
fs sa /afs/*/<user> <user-or-group> l 
fs sa /afs/* <user-or-group> l 

e.g. <user-or-group> cern:z5


There are two types of files which can be on the lhcbt3: user files, and central files. In general there are two spying scripts, and, each with many options to look in specific directories, etc.

- user files

To find out the used quotas of all users:

python  ~rlambert/public/LBD/

Then to get the list of files:

stager_qry -M  castor/<u>/<uname>

- central files

It is not clear how we can check quickly what is on lhcbt3 from central productions, and which user staged any individual file into the pool is unknown.

python  ~rlambert/public/LBD/ --data >year< --MC

This will take a very long time, probably.

Then to get the list of files:

stager_qry -M  castor/<year>/ -M  castor/

- removal notes:

Once you have the list of files to remove, remove them individually with:

stager_rm -M <existing castor file> -S lhcbt3

~rlambert/public/LBD/ <username or directory>

Removing a user file potentially deletes the file forever, so it's nice to get the users to do that themselves, but any centrally produced or grid-resident file is by definition backed-up and can be removed arbitrarily.

-- RobLambert - 19-Nov-2010

Edit | Attach | Watch | Print version | History: r11 | r8 < r7 < r6 < r5 | Backlinks | Raw View | Raw edit | More topic actions...
Topic revision: r6 - 2010-12-11 - RobLambert
    • Cern Search Icon Cern Search
    • TWiki Search Icon TWiki Search
    • Google Search Icon Google Search

    Main All webs login

This site is powered by the TWiki collaboration platform Powered by PerlCopyright & 2008-2020 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback