Bestman & Xrootd Storage System at SLAC Wei Yang Andy Hanushevsky Alex Sim Junmin Gu.

Slides:



Advertisements
Similar presentations
Exploring the UNIX File System and File Security
Advertisements

Lesson 22 – Introduction to Linux Systems Administration.
MCTS Guide to Microsoft Windows Server 2008 Network Infrastructure Configuration Chapter 8 Introduction to Printers in a Windows Server 2008 Network.
NFS. The Sun Network File System (NFS) An implementation and a specification of a software system for accessing remote files across LANs. The implementation.
MCTS Guide to Microsoft Windows Server 2008 Network Infrastructure Configuration Chapter 7 Configuring File Services in Windows Server 2008.
A crash course in njit’s Afs
Experiences Deploying Xrootd at RAL Chris Brew (RAL)
Setup your environment : From Andy Hass: Set ATLCURRENT file to contain "none". You should then see, when you login: $ bash Doing hepix login.
Guide to Linux Installation and Administration, 2e1 Chapter 3 Installing Linux.
Neng XU University of Wisconsin-Madison X D.  This instruction is for beginners to setup and test an Xrootd/PROOF pool quickly.  Following up each step.
CIS 191 – Lesson 2 System Administration. CIS 191 – Lesson 2 System Architecture Component Architecture –The OS provides the simple components from which.
US ATLAS Western Tier 2 Status and Plan Wei Yang ATLAS Physics Analysis Retreat SLAC March 5, 2007.
SRM at Clemson Michael Fenn. What is a Storage Element? Provides grid-accessible storage space. Is accessible to applications running on OSG through either.
1 Web Server Administration Chapter 3 Installing the Server.
Introduction to OSG Storage Suchandra Thapa Computation Institute University of Chicago March 19, 20091GSAW 2009 Clemson.
A. Sim, CRD, L B N L 1 US CMS Workshop, Mar. 3, 2009 Berkeley Storage Manager (BeStMan) Alex Sim Scientific Data Management Research Group Computational.
Scalla/xrootd Andrew Hanushevsky, SLAC SLAC National Accelerator Laboratory Stanford University 19-May-09 ANL Tier3(g,w) Meeting.
Scalla/xrootd Andrew Hanushevsky SLAC National Accelerator Laboratory Stanford University 29-October-09 ATLAS Tier 3 Meeting at ANL
Multi-Tiered Storage with Xrootd at ATLAS Western Tier 2 Andrew Hanushevsky Wei Yang SLAC National Accelerator Laboratory 1CHEP2012, New York
A. Sim, CRD, L B N L 1 OSG Applications Workshop 6/1/2005 OSG SRM/DRM Readiness and Plan Alex Sim / Jorge Rodriguez Scientific Data Management Group Computational.
Xrootd, XrootdFS and BeStMan Wei Yang US ATALS Tier 3 meeting, ANL 1.
Chapter Two Exploring the UNIX File System and File Security.
Scalla/xrootd Introduction Andrew Hanushevsky, SLAC SLAC National Accelerator Laboratory Stanford University 6-April-09 ATLAS Western Tier 2 User’s Forum.
SLAC Experience on Bestman and Xrootd Storage Wei Yang Alex Sim US ATLAS Tier2/Tier3 meeting at Univ. of Chicago Aug 19-20,
D C a c h e Michael Ernst Patrick Fuhrmann Tigran Mkrtchyan d C a c h e M. Ernst, P. Fuhrmann, T. Mkrtchyan Chep 2003 Chep2003 UCSD, California.
Introduction to UNIX Road Map: 1. UNIX Structure 2. Components of UNIX 3. Process Structure 4. Shell & Utility Programs 5. Using Files & Directories 6.
July-2008Fabrizio Furano - The Scalla suite and the Xrootd1.
Architecture and ATLAS Western Tier 2 Wei Yang ATLAS Western Tier 2 User Forum meeting SLAC April
Chapter Two Exploring the UNIX File System and File Security.
 CASTORFS web page - CASTOR web site - FUSE web site -
Redirector xrootd proxy mgr Redirector xrootd proxy mgr Xrd proxy data server N2N Xrd proxy data server N2N Global Redirector Client Backend Xrootd storage.
02-June-2008Fabrizio Furano - Data access and Storage: new directions1.
Scalla/xrootd Andrew Hanushevsky, SLAC SLAC National Accelerator Laboratory Stanford University 08-June-10 ANL Tier3 Meeting.
Scalla Advancements xrootd /cmsd (f.k.a. olbd) Fabrizio Furano CERN – IT/PSS Andrew Hanushevsky Stanford Linear Accelerator Center US Atlas Tier 2/3 Workshop.
CSCI 330 UNIX and Network Programming Unit XX: Linux Administration.
Unix Servers Used in This Class  Two Unix servers set up in CS department will be used for some programming projects  Machine name: eustis.eecs.ucf.edu.
JAliEn Java AliEn middleware A. Grigoras, C. Grigoras, M. Pedreira P Saiz, S. Schreiner ALICE Offline Week – June 2013.
Scalla In’s & Out’s xrootdcmsd xrootd /cmsd Andrew Hanushevsky SLAC National Accelerator Laboratory OSG Administrator’s Work Shop Stanford University/SLAC.
SRM Space Tokens Scalla/xrootd Andrew Hanushevsky Stanford Linear Accelerator Center Stanford University 27-May-08
Scalla As a Full-Fledged LHC Grid SE Wei Yang, SLAC Andrew Hanushevsky, SLAC Alex Sims, LBNL Fabrizio Furano, CERN SLAC National Accelerator Laboratory.
Lecture 02 File and File system. Topics Describe the layout of a Linux file system Display and set paths Describe the most important files, including.
Introduction to FUSE (File system in USEr space) Speaker:Zong-shuo Jheng Date:March 14, 2008.
1 Xrootd-SRM Andy Hanushevsky, SLAC Alex Romosan, LBNL August, 2006.
11-June-2008Fabrizio Furano - Data access and Storage: new directions1.
09-Apr-2008Fabrizio Furano - Scalla/xrootd status and features1.
DCache/XRootD Dmitry Litvintsev (DMS/DMD) FIFE workshop1Dmitry Litvintsev.
New Features of Xrootd SE Wei Yang US ATLAS Tier 2/Tier 3 meeting, University of Texas, Arlington,
OSG STORAGE OVERVIEW Tanya Levshina. Talk Outline  OSG Storage architecture  OSG Storage software  VDT cache  BeStMan  dCache  DFS:  SRM Clients.
OPERATING SYSTEMS COURSE THE HEBREW UNIVERSITY SPRING FUSE File System.
A. Sim, CRD, L B N L 1 Production Data Management Workshop, Mar. 3, 2009 BeStMan and Xrootd Alex Sim Scientific Data Management Research Group Computational.
Experiment Support CERN IT Department CH-1211 Geneva 23 Switzerland t DBES Solutions for WAN data access: xrootd and NFSv4.1 Andrea Sciabà.
CERN IT Department CH-1211 Genève 23 Switzerland t DPM status and plans David Smith CERN, IT-DM-SGT Pre-GDB, Grid Storage Services 11 November.
BeStMan/DFS support in VDT OSG Site Administrators workshop Indianapolis August Tanya Levshina Fermilab.
KIT - University of the State of Baden-Württemberg and National Laboratory of the Helmholtz Association Xrootd SE deployment at GridKa WLCG.
Getting Started with Linux
a brief summary for users
Global Data Access – View from the Tier 2
Jean-Philippe Baud - Sophie Lemaitre IT-GD, CERN May 2005
Berkeley Storage Manager (BeStMan)
Artem Trunov for ALICE visit to FZK Jul
Data Federation with Xrootd Wei Yang US ATLAS Computing Facility meeting Southern Methodist University, Oct 11-12, 2011.
GFAL 2.0 Devresse Adrien CERN lcgutil team
Ákos Frohner EGEE'08 September 2008
Lab 1 introduction, debrief
Scalla/XRootd Advancements
Exploring the UNIX File System and File Security
Unix : Introduction and Commands
The EU DataGrid Fabric Management Services
INFNGRID Workshop – Bari, Italy, October 2004
Presentation transcript:

Bestman & Xrootd Storage System at SLAC Wei Yang Andy Hanushevsky Alex Sim Junmin Gu

Bestman & Xrootd Components  Bestman gateway  XrootdFS Based on Xrootd Posix library and FUSE  GridFTP for Xrootd Globus GridFTP + Data Storage Interface (DSI) module for Xrootd/Posix  Xrootd Latest development release More functionality

Redirector Xrootd/cmsd Redirector Xrootd/cmsd Name space xrootd Name space xrootd Data server Xrootd/cmsd XrdCnd Data server Xrootd/cmsd XrdCnd BeStMan –G XrootdFS BeStMan –G XrootdFS GridFTP w/ Xrootd DSI or xrootdfs GridFTP w/ Xrootd DSI or xrootdfs Desktop xrootdfs Desktop xrootdfs Remote site Data server Xrootd/cmsd XrdCnd Data server Xrootd/cmsd XrdCnd Data server Xrootd/cmsd XrdCnd Data server Xrootd/cmsd XrdCnd Data server Xrootd/cmsd XrdCnd Data server Xrootd/cmsd XrdCnd SLAC Internet Free Zone SLAC network with Internet World SURL TURL Architecture Xrootd or other POSIX file systems

BeStMan Gateway configuration FactoryID=server # lcg-utils doesn't accept service certificate supportedProtocolList=gsiftp://atl-prod07.slac.stanford.edu;gsiftp://atl-prod08.slac.stanford.edu GridMapFileName=/opt/bestman/conf/grid-mapfile.empty GUMSserviceURL= GUMSCurrHostDN=/DC=org/DC=doegrids/OU=Services/CN=osgserv04.slac.stanford.edu # Do srmLs/Rm/Mkdir/Rmdir/Mv via filesystem checkSizeWithFS=true checkSizeWithGsiftp=false accessFileSysViaSudo=false noSudoOnLs=true # Xrootd only, use xrootdTokenCompName=oss.cgroup to pass space token to GridFTPs xrootdTokenCompName=oss.cgroup staticTokenList=tokenA[desc:tokenA][51200];tokenB[desc:tokenB][12800]

Using Sudo with BeStMan Gateway To use sudo to manage file system (mkdir, rmdir, rm, mv, cp, ls) Assuming user 'daemon' run bestman, need the following in /etc/sudoers Cmnd_Alias SRM_CMD = /bin/rm, /bin/mkdir, /bin/rmdir, /bin/mv, /bin/cp, /bin/ls Runas_Alias SRM_USR = ALL, !root daemonALL=(SRM_USR) NOPASSWD: SRM_CMD Some sudo implementation need "Defaults !requiretty”

Xrootd Export Path, Disk Cache and Space Token  Xrootd Export Path is what user will use to access file all.export = /xrootd => root://host:port//xrootd/file  Xrootd Disk Caches are hard disk partitions storing data files Filesystem Size Used Avail Use% Mounted on /dev/sda6 12G 6.0G 5.0G 55% /xrdcache01 oss.cache public /xrdcache01/public # public is default group Export Path contains directories and symlinks, pointing to data files OSS Cache  To support WLCG static space tokens, add more cache groups oss.cache public /xrdcache01/public xa # “xa”: extend attributes oss.cache tokenA /xrdcache01/tokenA xa User create a file using root://host:port//xrootd/file?oss.cgroup=tokenA

Xrootd Config: Redirector and Data Servers xrootd.fslib /opt/xrootd/lib/libXrdOfs.so all.export /xrootd xrd.port 1094 If xrootd-redirector.slac.stanford.edu all.role manager ofs.forward 3way CNShost:port mv rm rmdir trunc else all.role server ofs.notify closew create mkdir | /path/XrdCnsd -l /tmp/cnsd.log root://CNShost:port # please keep the following two lines unchanged. ofs.notifymsg create $TID create $FMODE $LFN?$CGI ofs.notifymsg closew $TID closew $LFN $FSIZE fi oss.cache public /xrdcache01/public xa oss.cache tokenA /xrdcache01/tokenA xa all.manager xrotod-redirector.slac.stanford.edu 3121 cms.allow host dataserver01.slac.stanford.edu cms.allow host dataserver02.slac.stanford.edu

Xrootd Composite Name Space Config: xrootd.fslib /opt/xrootd/lib/libXrdOfs.so all.export /xrootd xrd.port 1095 oss.cache public /xrdcache01/public xa oss.cache tokenA /xrdcache01/tokenA xa # Xrootd uses: # 1) file xrdcache01/.logs/ /Usage to records space usage. # 2) file /xrdcache01/.quotas to set quota for each space token. For example: # public 51200g (51200GB) # tokena 128m (128MB) # Xrootd doesn’t enforce quota. Only for information. oss.usage log /xrdcache01/.logs quotafile /xrdcache01/.quotas all.adminpath /var/adm/xrootd/cns

How to Get Extended Attributes: $ cat xattr.c #include main(int argc, char* argv[]) { ssize_t rc; char value[1024]; rc = getxattr(argv[1],argv[2],value,1023); if (rc != -1) printf("%s\n",value); } $ export LD_LIBRARY_PATH=/opt/xrootd/lib/libXrdPosixPreload.so $ xattr.exe root://CNShost:port//xrootd\?oss.cgroup=tokenA xroot.space oss.cgroup=tokenA&oss.space= &oss.free= &oss.maxf= &oss. used= &oss.quota= $ xattr.exe root://CNShost:port//xrootd/file1 xroot.xattr xroot.xattross.cgroup=tokenA&oss.type=f&oss.used= &oss.mt= &o ss.ct= &oss.at= &oss.u=*&oss.g=*&oss.fs=w&ofs.ap=a

GridFTP configuration  Globus GridFTP on XrootdFS No additional configuration May have performance penalty  Data Storage Interface (DSI) module for Xrootd/Posix Use along with Xrootd Posix preload library $ cat /opt/vdt/vdt/services/vdt-run-gsiftp.sh #!/bin/sh. /opt/vdt/setup.sh export LD_PRELOAD=/opt/xrootd/lib/libXrdPosixPreload.so export XROOTD_VMP=“xrootd-redirector:port:/xrootd=/xrootd Make sure “libglobus_gridftp_server_posix_gcc32dbg.so” is in LD_LIBRARY_PATH exec /opt/vdt/globus/sbin/globus-gridftp-server -dsi posix How to access: root://xrootd-redirector:port//xrootd = gsiftp://gridftpserver/xrootd

XrootdFS Configuration XrootdFS is a Xrootd client. The following script starts XrootdFS export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:/opt/xrootd/lib:/opt/fuse/lib export XROOTDFS_OFSFWD=0 # export XROOTDFS_USER='daemon’ export XROOTDFS_FASTLS="RDR” insmod /lib/modules/`uname -r`/kernel/fs/fuse/fuse.ko 2> /dev/null export XROOTDFS_RDRURL="root://xrootd-redirector:1094//xrootd” export XROOTDFS_CNSURL="root://CNShost:1095//xrootd” MOUNT_POINT="/xrootd” xrootdfsd $MOUNT_POINT -o allow_other,fsname=xrootdfs,max_write=131072,direct_io $ df -h Filesystem Size Used Avail Use% Mounted on xrootdfs 55T 34T 22T 62% /xrootd Use “umount /xrootd” to stop XrootdFS