/af-cern-lxplus:eos-xrootdfrom af-cern-lxplus
Handles file operations on CERN EOS (eoscms, eosuser) and FNAL EOS (cmseos) via xrootd: building root:// URLs, using xrdcp/xrdfs/eos CLI, checksum-verified copies, FUSE vs xrootd in jobs, quota checks, bulk deletes, CMS recycle bin etiquette, and troubleshooting common errors.
Ships in af-cern-lxplus. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
EOS is reached two ways: the /eos FUSE mount (fine for reading on
lxplus) and xrootd (root:// URLs with xrdcp, xrdfs, eos). In jobs,
write with xrdcp and verify size and checksum; never write through FUSE.
eoscms and eosuser are separate instances with separate quotas, and the CMS
recycle bin is shared by everyone, so check quotas before a large run and
pace bulk deletes.
Field notes collected by DickyChant from about 25 Claude Code sessions running CMS work at CERN (Oct–Nov 2026). Every item was hit in practice; where sessions disagreed, both observations are kept.
/eos/cms/... → root://eoscms.cern.ch//eos/cms/...; /eos/user/... → root://eosuser.cern.ch//eos/user/...; FNAL → root://cmseos.fnal.gov//store/.... Note the double slash. eoscms and eosuser are different instances, with different quotas.eos CLI on /eos/cms, set EOS_MGM_URL=root://eoscms.cern.ch, or pass it explicitly: eos root://eoscms.cern.ch ls -l /eos/cms/....xrdfs takes host and path separately (xrdfs root://eoscms.cern.ch stat /eos/cms/...); xrdcp takes full URLs. When splitting root://host//path, normalize the slashes.xrdcp -s "root://eoscms.cern.ch//proc/user/?mgm.cmd=whoami" -. With an expired proxy eosuser maps you to nobody (uid 65534)./eos FUSE mount is fine. In jobs, write with xrdcp, never through FUSE: ROOT files written onto FUSE came out partly damaged, with some branches readable and others not.-????????? for minutes. Retry with backoff, then fail. Never skip silently: a catch-all except once dropped 35 of 429 inputs. Confirm with xrdfs stat before calling an output missing./eos/user is usually mounted, but /eos/cms may not be readable. Stage inputs with xrdcp to $_CONDOR_SCRATCH_DIR.xrdfs <host> mkdir -p <dir> (xrdcp into a missing dir fails, unless you pass --path), then xrdcp -f -s --posc --cksum adler32 <src> <dst>, with a retry loop (e.g. 6 tries, 20 s apart).xrdfs stat) and checksum (xrdfs query checksum vs local xrdadler32). Log OK, MISMATCH or COPYFAIL per file and end with DONE nbad=N.xrdadler32 is in /usr/bin on lxplus but not in the LCG views (LCG_106 checked), so don't assume it in jobs. Where it's missing: python3 -c "import zlib,sys; print('%08x' % zlib.adler32(open(sys.argv[1],'rb').read()))" <file> (whole-file read; fine for small outputs).xrdcp -r --parallel 16 root://eosuser...//src root://eoscms...//dst. Compare file count and bytes on both sides before deleting the source. Copying and deleting the source are separate approvals.xrdcp --cksum adler32:source --posc --path --retry 2. Skip files already present at the right size. Try the site endpoint before cms-xrd-global.scp onto /eos keeps the local mode (0600 files end up unreadable to others); xrdcp gives 0644. Check modes on other people's areas too: listable is not readable.EOS_MGM_URL=root://eosuser.cern.ch eos quota <path> (eoscms for /eos/cms; or eos quota -m). Without the right EOS_MGM_URL it answers error: no quota for path ..., which doesn't mean there is no quota. EOS shows raw bytes at 2× logical; the enforced number is used/max logical bytes. The user quota binds even inside a large group quota.eosquota on a cmslpc node (no CERN-side command).vol-status exceeded (100% filled) makes every write fail with [3021] Unable to get quota space ... Disk quota exceeded. Retrying doesn't help. Check quota before submitting; if a test job hits this, stop, don't submit the campaign, and ask the user to free space or pick another area (e.g. FNAL EOS with a proxy; see lxplus-htcondor credentials). Never delete the user's files to make room./eos/cms/store/user/<u>: 1 TB logical. When it's full, CRAB stageout fails (HTTP 507 / exit 60323) and new tasks come back SUBMITREFUSED./eos/user (1 TB) filled from unrelated folders and killed jobs at their final copy. Check before long runs, and copy partial outputs as you go.rw!d, e.g. phys_bphys; phys_generator): members can create but not delete. Never put test files or write probes there.eos mv between group quota nodes is an instant rename that moves the usage, with no copy./eos/user/<u>/<user>/www is public and counts against the user quota.eos recycle -m). Mass deletes can fill it for everyone, and users can't purge it. Pace deletes against a cap; your entries free up only after 30 days.eos rm -r refuses trees above ~90k entries ("query limit"). Remove subdirectories bottom-up.eos recycle ls shows the restore keys (pxid:...); eos recycle restore <key> restores.treefiles count lags after big removals; sum the child dirs instead.eos calls in timeout: 300 s hangs on eos ls / eos quota were seen.FILE:/tmp/krb5cc_<uid>, and tickets renew for at most 5 days, so plan a manual kinit (or a keytab).chmod 600), and set X509_USER_PROXY to it, not /tmp/x509up_u* (node-local). Check both voms-proxy-info -timeleft and -actimeleft.xrdfs stat succeeds even with an expired proxy. Test real access by opening a file.voms-proxy-init where the proxy is used; if the user decides to move one (e.g. LPC → lxplus for FNAL writes), put it in a private AFS dir (~/private, chmod 600) and tell them where it is so they can delete it.More field notes, each from a real failure.
eos find -f --checksum <dir> lists the stored adler32 of every file. Compare with xrdadler32 on the copies./eos FUSE paths to root://, and opening just-written files that way hung. ROOT.gEnv.SetValue("TFile.CrossProtocolRedirects", 0) fixes it.XRD_NETWORKSTACK=IPv4. eoscms resolved IPv6 first, which went over slow WiFi and was ~50× slower.fsspec-xrootd. For large reads use handler=uproot.source.xrootd.MultithreadedXRootDSource, because the fsspec backend timed out mid-stream. For one-off reads, xrdcp locally first.xrdcp -s -f root://.../file - (writing to /dev/stdout fails). FUSE ls on /eos/cms can hang; xrdfs ... ls -l is safer, and its times are UTC.[3021] Unable to get quota space; the same error comes from a full byte quota, see Quotas). Before a campaign, count a canary job's files (eos find --count) × number of jobs, compare with eos quota ls -m, and write one merged file per job.eos find and an unscoped eos recycle ls stop at 100k entries; use eos recycle ls -m <YYYY/MM/DD>./store/user/<x> or /store/group/<g> can be EOS symlinks, and xrdfs ls -l on the link shows a tiny root-owned file. List a path below it.Operation expired at file open hits bursts of hundreds of jobs. Frameworks with --skipbadfiles-style validation drop the file and exit 0 (5.6k of 59k files lost in one pass). Grep for the validation errors, compare processed with input files, and recover only the dropped ones.root://eoscms.cern.ch, and fall back to cmsxrootd.fnal.gov.No servers are available to read the file can mean 0 replicas while DBS still says valid; check Rucio. A file corrupt through every redirector should be excluded and recorded, not retried.root:// URLs in input lists.nobody. Losing the ticket kills FUSE access mid-job.dir/.f.tmp, then mv it to dir/f. Write archives to a temporary name and verify them (gzip -t, entry count) before removing the source: a quota hit left a truncated tgz.tar --zstd, restored with xrdcp root://...x.tar.zst - | zstd -dc | tar -xf -./eos/user/<u>/<user> is drwx------; share through the www dir. A copy into www/<sub>/ is served immediately at <user>.web.cern.ch/<sub>/.ssh cmscon 'tar cf - -C dir x' | ssh lxplus 'tar xf - -C /eos/...'.dasgoclient -query="file dataset=<ds>" | xargs -P 8 -I{} sh -c 'timeout 300 xrdcp -s root://cms-xrd-global.cern.ch/{} . || echo FAIL {}'.source /cvmfs/cms.cern.ch/rucio/setup-py3.sh; export RUCIO_ACCOUNT=<cern user>, then rucio rule add cms:<ds> --rses T2_CH_CERN --copies 1 --lifetime <s> --activity "User AutoApprove" --ask-approval --asynchronous.nLHEScaleWeight == 0 in a whole file).hadd -fk keeps the Runs tree; normalise with sum(Runs.genEventSumw) and check the entry counts.EOS_MGM_URL isn't set (eosuser for /eos/user, eoscms for /eos/cms).eos ls -la <dir> shows the recursive size of each directory instantly. du over FUSE is very slow.eos find -f --size truncates at 100k files / 50k dirs ("Result is truncated!"). Run it per top-level subdirectory and check stderr..sys.v#.<name>/ dirs and count against quota (~10 GB seen). Removing them is safe, since they go to the recycle bin.eos find first, filter to small text files, then xargs -P grep. Batch deletes: xargs -0 -P 8 eos rm handles ~10k files in minutes, within the recycle-bin etiquette above.What SKILL.md sets; muted values are Claude Code's defaults
4 skills in this plugin
/crabUse when submitting, monitoring or recovering CMS CRAB tasks on EL9: crab-setup and proxy delegation, sandbox size limits, memory/cores and maxJobRuntimeMin, site white/blacklists, crab resubmit vs recovery tasks with a lumiMask, PrivateMC seeds, CRAB as a backend for non-cmsRun payloads (law/dhi combine fits), or decoding CRAB failures such as SUBMITREFUSED, SUBMITFAILED, exit 50660, 50665, 50115, 8021, 8028, 60323, 60326, 60328, "Argument list too long", "A different CMSSW configuration was already cached" or "Problems delegating My-proxy"./lxplus-accessUse when driving lxplus (or cmslpc) over ssh from an agent or script: non-interactive ssh with Kerberos/GSSAPI, lxtunnel jumps and 2FA, pinning an lxplus9NN node, files vanishing from /tmp between calls, nohup or setsid processes killed at logout, expired or non-renewable Kerberos tickets, AFS quota or token problems, apptainer not seeing /eos/user, or errors such as "Permission denied (publickey,gssapi-with-mic)", "Could not resolve hostname lxplus.cern.ch.cern.ch", ".bashrc: Permission denied", "kex_exchange_identification: Connection closed" or "COMPILER: unbound variable"./lxplus-htcondorUse when writing a CERN HTCondor (lxbatch) submit file (.sub) or debugging CERN batch jobs, CPU or GPU: choosing between the standard schedd and EosSubmit, sizing request_memory/request_cpus/request_gpus, picking a +JobFlavour or +MaxRuntime, staging outputs to EOS with xrdcp, jobs sitting idle that never match, held jobs ("FILETRANSFER: plugin for type root not found", HoldReasonCode 12/13), jobs removed by SYSTEM_PERIODIC_REMOVE for wall time or disk, requirements overwritten by the schedd, Kerberos/EOS access inside jobs, DAGMan campaigns, or resubmitting missing outputs.npx claudepluginhub cms-ml/marketplace --plugin af-cern-lxplusOther plugins' skills for the same job