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

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
EOF

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 --admin

If 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 Fast

If 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 fast

A 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/fast

Scans 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/scan

Or let Pinax ingest each new scan written under a folder, checking every five minutes:

uv run pinax ingest --watch /path/to/scans

4. 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 1

5. Sign in

uv run pinax serve

Open 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:

  1. 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).
  2. 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.
  3. Folders and labs: give each top-level folder its owner. Tick Unmapped only to see the ones left.
  4. 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-folder
uv run pinax import path/to/csv-folder --apply

7. 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