Trying Pinax on your own data
One machine, one filesystem, a first scan, and your first people, in a few minutes.
How to point Pinax at a real filesystem on a laptop or workstation: settings, the first administrator, a scan, labs and people, and prices. It takes a few minutes plus the scan. To install Pinax on a server, with services, scheduled scans, and single sign-on, follow DEPLOYMENT.md; every setting is in CONFIGURATION.md.
What you need
- uv, and this repository with its packages (
uv sync). - fs-inventory:
scripts/install-fs-inventory.shinstalls the pinned release intobin/and checks its SHA-256. - Read access to the filesystem's metadata (directory listings and file attributes) from where you scan it. Folders you cannot read are recorded as scan errors and shown under Storage health; the rest is scanned.
- Disk for the snapshot indexes, about 56 bytes per file (0.6 GB for ten million files), and for the scans, about 40 bytes per entry each. Pinax keeps the six newest indexes of each filesystem and deletes older ones; it never deletes scans (what to keep). Building an index needs room for two to three times its size while it runs.
1. Settings
Settings are PINAX_* environment variables, or a .env file in the folder you run Pinax from. Keep your data apart from the demo's:
cat > .env <<'EOF'
PINAX_ENVIRONMENT=dev
PINAX_VAR_ROOT=data/var
PINAX_SCAN_ROOT=data/scans
EOFPINAX_ENVIRONMENT=dev: this catalog holds real data, sopinax seed, which deletes the catalog to write the demo, refuses to run (it runs only indemo). To go back to the demo, move.envaside, or keep the demo in a separate checkout. Outside the demo, people sign in with a username and a password Pinax keeps, with nothing else to set up; single sign-on is an option a site configures (DEPLOYMENT.md).PINAX_VAR_ROOTholds the catalog (pinax.db) and the snapshot indexes;PINAX_SCAN_ROOTis wherepinax scanwrites scans.data/is ignored by git, so no scan, path, or name is committed by accident.- This replaces any
.envyou have; .env.example lists every setting with its default.
2. The first administrator
Nobody can sign in until someone has a password. Add yourself as a storage administrator; Pinax prints a temporary password, which you change when you first sign in:
uv run pinax user add jdoe@example.org --name "Jane Doe" --email jdoe@example.org --adminIf you may move to single sign-on later, use the usernames it will send (with Entra ID, usually the user principal name, such as jdoe@example.org), so people keep their access.
3. A filesystem and its first scan
Register the filesystem by the root its scans record, with the name people know it by:
uv run pinax filesystem add fast /fh/fast --name FastIf this machine mounts it elsewhere than where people know it (say /mnt/fast for /fh/fast), register the mount and add --display-root /fh/fast. Then scan it and ingest the scan in one step:
uv run pinax scan fastA large filesystem takes a while. To choose how many threads to crawl with, sample it first, and set the result as PINAX_SCAN_THREADS:
bin/fs-inventory probe /fh/fastScans made elsewhere, for example by a job on a storage node, are ingested the same way; Pinax finds the filesystem by the scan's root:
uv run pinax ingest /path/to/scanOr let Pinax ingest each new scan written under a folder, checking every five minutes:
uv run pinax ingest --watch /path/to/scans4. Check the numbers
Each snapshot can be checked directory by directory against fs-inventory rollup, an independent computation. The snapshot's ID is in pinax snapshots:
uv run pinax check 15. Sign in
uv run pinax serveOpen http://127.0.0.1:8001, sign in with the temporary password, and choose your own. As a storage administrator you see every filesystem and folder: All data, the age map, Storage health, and Scans.
6. Labs, people, and folders
Each top-level folder of a filesystem belongs to one lab or department, and its members see it; nobody else does, except storage administrators, auditors, and the heads of its division. Set this up in the app:
- People and access, Labs and departments tab: Add lab or department for each one (a slug, a name, and whether it is a lab or a department).
- People and access, People tab: Add person for each person, with their labs and their role in each (PI or owner, or delegate), then Set a temporary password for them to sign in with.
- Folders and labs: give each top-level folder its owner. Tick Unmapped only to see the ones left.
- Optionally, on a person's page, give site roles: auditor, finance, or head of a division (Site roles).
For many labs and people at once, pinax import reads CSV files and shows every change before making it (IMPORT.md):
uv run pinax import path/to/csv-folderuv run pinax import path/to/csv-folder --apply7. Prices (optional)
To show labs what their storage costs, set a price for each filesystem on Costs, per GB, GiB, TB, or TiB per month, and free tiers for labs and for departments, with exceptions for particular labs. Charges start from the first scan and the first price; labs see theirs under Storage charges, and Chargeback has every lab's, with a CSV statement. The currency is PINAX_CURRENCY (USD by default).
Next
- A server: DEPLOYMENT.md installs Pinax with systemd services, scheduled scans and automatic ingest, an HTTPS proxy for local sign-in, single sign-on with Entra ID or oauth2-proxy, upgrades, sizing, and backups.
- Every setting: CONFIGURATION.md.
- Scripts: API tokens let a script read Pinax, or make changes, with a person's access (API tokens for scripts).
- How it works, and how fast: ARCHITECTURE.md.